Skip to Content
Author's profile photo Former Member

How to download your ABAP Codes into PDF file?

Normally, when I backup my ABAP codes, I just COPY-PASTE it in a notepad or in a word document. This technique is ok. But now I want to have
a PDF file so I can save it into my mobile phone in order to view it anywhere at any given time.

Well, this is now the solution I discovered which I want to share to everyone.

Steps:

  • At the lower right part of the ABAP editor, you will see this button in yellow. That button is below the vertical scroll bars.
    Click this button to view the different options. Click button found at the bottom right of the editor. (Highlighted in following screenshot)

          /wp-content/uploads/2014/06/1_470784.png

  • From the options, click keyboard. Then select File.ExportPDF from the command list. Please refer from the screenshot below.

          /wp-content/uploads/2014/06/2_470785.png

  • On the input box, New Shortcuts, type SHIFT+BACKSPACE. Then click the button Assign. By the way, the combination of the keys can be
    different from yours as long as it is available. It so happened that this key combinations are available so I used in this tutorial. After clicking the
    Assign button, you will see the keys reflected in the Shortcuts for selected commands textbox. Then click the Save button afterwards.

          /wp-content/uploads/2014/06/3_470813.png

  • Once you save the settings you did above, you will be back into your ABAP editor. Now, in your editor, pressed the key combination you set. In my case, I will press SHIFT+BACKSPACE. Immediately, the Save dialog box will be prompted like this one. Type the filename of your file and locate the directory where you want to save. Finally, click the Save button to create the PDF file.

               /wp-content/uploads/2014/06/4_470814.png

PDF output:

/wp-content/uploads/2014/06/5_470815.png

Assigned Tags

      49 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      What kind of a mobile is capable of displaying pdf and not text/html files?

      Author's profile photo Feiyun Wu
      Feiyun Wu

      Maybe because all the texts in notepad are black but ABAPer like colorful fonts 😛

      Author's profile photo Former Member
      Former Member

      HTML format would be better as it wraps the colorful text beautifully when you zoom-in and zoom-out.

      Btw, my Notepad++ shows colorful code 😛

      Author's profile photo Former Member
      Former Member

      Similar steps can be used to download as RTF (which will launch in Wordpad or MS Word) and download as HTM (which will launch in web browser).

      Ctrl+S saves the program to repository, Ctrl+Shift+S saves it to text file on presentation server.

      Author's profile photo Łukasz Pęgiel
      Łukasz Pęgiel

      This can work for simple programs, I cannot imagine doing a backup of the code of programs /classes with more complicated structure. And what about screens, GUI statuses?

      To do the backup is wiser to use SAPLINK instead.

      Author's profile photo Kripa Rangachari
      Kripa Rangachari

      Good Ones ....Thanks for sharing these info!

      Cheers,

      Kripa Rangachari.

      Author's profile photo Former Member
      Former Member

      Hi,

      when i try to configure it on my sap abap editor i am getting the below error.

      shortcut already assigned to action edit delete back

      Please let me know how i can configure it to download the code into PDF format.

      Thanks,

      Mallikarjuna

      Author's profile photo Sarath Kumar Chippagiri
      Sarath Kumar Chippagiri

      Use Different shortcut... Ctrl + shift + c

      Author's profile photo Former Member
      Former Member

      Hi ,

      I have checked Ctrl + shift + c   still its not working.

      Please let me know if there is any further alternative. i am getting the below information.

      shortcut is already assign to edit. delete back

      Thanks,

      Mallikarjuna

      Author's profile photo Diego Santin
      Diego Santin

      Hi,

      Use other shortcut, any other.

      Click in assign until you use a shortcut that isn't used yet.

      Author's profile photo Diego Santin
      Diego Santin

      Interesting,

      Thanks for sharing.

      Author's profile photo Former Member
      Former Member

      useful doc 🙂

      Author's profile photo Former Member
      Former Member

      Useful post....Thanks for the share 🙂

      Author's profile photo Former Member
      Former Member

      Now who would want to view his/her ABAP code [sic! --> it's singular!, _not_ "codes"] "on my mobile phone in order to view it anywhere at any given time" ?

      I imagine only very nerdy people wanting to view their ABAP code on a mobile phone at any given time. What's the use? Don't you have anything better to do? Perhaps boast with your ABAP code in front of your friends while riding the bus home after work? Or do you get up at 3a.m. in the night to check that the ABAP PDF on your mobile still looks ugly?

      Author's profile photo Ulrich Brenner
      Ulrich Brenner

      I love how you absolutely freaked out reading this very useful blog post and posted that flame after several years of not posting anything! 😀

      Author's profile photo Matthew Billingham
      Matthew Billingham

      Wouldn't it be better to use citrix or some such on your mobile phone, so you can use SAPGui to study your code? Then you could make changes at 3am. 😏

      Author's profile photo Michael Tönnis
      Michael Tönnis

      Sorry, doesn't work

      I can't find this Button in the down right corner.

      Author's profile photo Rafael Sá
      Rafael Sá

      Michael,

      You use the sapgui for windows or java?

      Author's profile photo Matthew Billingham
      Matthew Billingham

      Make sure you're using the new front-end edtior.

      Author's profile photo Former Member
      Former Member

      Great article!

      Exporting in HTML, now I can read the document more often, and easy and then print oto PDF.

      And more, we can export this documment to a Technical Documment or a Blueprint Documment for the clients.

      Very good!

      Author's profile photo Former Member
      Former Member

      Very good!

      Thanks for sharing!

      Author's profile photo Former Member
      Former Member

      Just like Michael Tönnis, I also do not see this button in the lower right-hand corner of my ABAP editor screen.

      What release was this feature made available? 

      Thanks in advance for your advisement...

      Author's profile photo Herbert Duerschke
      Herbert Duerschke

      You have to use the new Frontend Editor

      Best Regards
      Herbert

      Author's profile photo Former Member
      Former Member

      Useful doc.

      Pdf will serve better.

      Thanks

      Author's profile photo Thangam Perumal
      Thangam Perumal

      Nice document...

      Author's profile photo Naimesh Patel
      Naimesh Patel

      This has been around for years and ABAP Guru Rich Heilman has already documented in one of the reply Re: questions regarding the new ABAP editor   way back in 2007. Obviously there are no nice screenshots attached as older SDN didn't allow to attach images.

      I would strongly suggest to do a Search before posting something which had been already there for all the years.

      Regards,
      Naimesh Patel

      Author's profile photo Former Member
      Former Member

      Hi Naimesh,

      Regardless the usability of this specifc feature,

      I don't see any harm in publishing a well documented blog about a subject which was discussed in an hidden old discussion (Which probably no one is aware of).

      Regards,

      Shai

      Author's profile photo Custodio de Oliveira
      Custodio de Oliveira

      Hi Shai,

      I do see a problem with that as if you simply search on SCN for abap, edito and pdf you will find this "hidden" reply from Rich. Here is the search in case you don't believe me: Redirecting...

      This blog post is in my POV absolutely unnecessary and just creates (more) noise. But I have to say I'm really enjoying some comments.

      Cheers,

      Custodio

      Author's profile photo Matthew Billingham
      Matthew Billingham

      Unfortunately, I didn't spot Richard's post before I approved this document. You are absolutely right that there is little added value. However, it would be unfair to reject it now.

      And yes - some of the comments here are... entertaining.

      Author's profile photo Bharathi M
      Bharathi M

      its a good one 🙂

      Author's profile photo Former Member
      Former Member

      it is so good..

      Thanks

      Author's profile photo Rafael Sá
      Rafael Sá

      is there any option for those using sagui for java?

      Author's profile photo Former Member
      Former Member

      Very useful..

      Thanks

      Daniele

      Author's profile photo Former Member
      Former Member

      Very useful

      Thanks for sharing

      Author's profile photo Pascal Bayle
      Pascal Bayle

      Nice !

      Thank you for sharing.

      Author's profile photo Shakeeluddin Khaja
      Shakeeluddin Khaja

      Useful info.

      Thanks for sharing.

      Author's profile photo Former Member
      Former Member

      Very useful tip. I used it to backup a Z programs which are planned to be deleted.

      Author's profile photo Former Member
      Former Member

      Good take away for the day

      Author's profile photo Pavan kumar
      Pavan kumar

      Superb buddy.....Actually i am looking for this kind of solution.Thanks for the simple yet powerful idea 😆

      Author's profile photo Gregory Gotera
      Gregory Gotera

      useful info. ➕

      Author's profile photo Aneel Munawar
      Aneel Munawar

      Thanks for sharing.

      Author's profile photo Former Member
      Former Member

      Powerful idea 😛

      Author's profile photo Former Member
      Former Member

      Thanks for sharing this and so helpful for me.

      Author's profile photo Siddhesh Satghare
      Siddhesh Satghare

      Very Good!!

      Thank you

      Author's profile photo Dipak Khatavkar
      Dipak Khatavkar

      Nice idea.

      Thank you

      Author's profile photo Abijith Chandra P
      Abijith Chandra P

      This is really helpful. Thanks.

      Author's profile photo Pavan Golesar
      Pavan Golesar

      Very Helpful... in many cases i used to do the same orthodox way of copy - paste.

      Anyways thanks for sharing.

      Author's profile photo Vigneshwar DHONAPATI
      Vigneshwar DHONAPATI

      Good One.

      Author's profile photo Richard Harper
      Richard Harper

      "save it in my mobile phone so I can view it anywhere".......

      ummm.......

      Why ???

      The code isn't yours to take if it was developed for a customer,  and if I were to take customers code I would use SapLink.....

      And..... oh - I wouldn't put it on my phone.

      Rich