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)
- From the options, click keyboard. Then select File.ExportPDF from the command list. Please refer from the screenshot below.
- 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.
- 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.
PDF output:
What kind of a mobile is capable of displaying pdf and not text/html files?
Maybe because all the texts in notepad are black but ABAPer like colorful fonts 😛
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 😛
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.
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.
Good Ones ....Thanks for sharing these info!
Cheers,
Kripa Rangachari.
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
Use Different shortcut... Ctrl + shift + c
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
Hi,
Use other shortcut, any other.
Click in assign until you use a shortcut that isn't used yet.
Interesting,
Thanks for sharing.
useful doc 🙂
Useful post....Thanks for the share 🙂
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?
I love how you absolutely freaked out reading this very useful blog post and posted that flame after several years of not posting anything! 😀
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. 😏
Sorry, doesn't work
I can't find this Button in the down right corner.
Michael,
You use the sapgui for windows or java?
Make sure you're using the new front-end edtior.
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!
Very good!
Thanks for sharing!
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...
You have to use the new Frontend Editor
Best Regards
Herbert
Useful doc.
Pdf will serve better.
Thanks
Nice document...
This has been around for years and ABAP Guru Rich Heilman has already documented in one of the reply 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
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
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
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.
its a good one 🙂
it is so good..
Thanks
is there any option for those using sagui for java?
Very useful..
Thanks
Daniele
Very useful
Thanks for sharing
Nice !
Thank you for sharing.
Useful info.
Thanks for sharing.
Very useful tip. I used it to backup a Z programs which are planned to be deleted.
Good take away for the day
Superb buddy.....Actually i am looking for this kind of solution.Thanks for the simple yet powerful idea 😆
useful info. ➕
Thanks for sharing.
Powerful idea 😛
Thanks for sharing this and so helpful for me.
Very Good!!
Thank you
Nice idea.
Thank you
This is really helpful. Thanks.
Very Helpful... in many cases i used to do the same orthodox way of copy - paste.
Anyways thanks for sharing.
Good One.
"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