Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
35,755

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:

49 Comments
Former Member
0 Kudos

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

Former Member
0 Kudos

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.

ŁukaszPęgiel
Contributor
0 Kudos

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.

former_member182877
Participant
0 Kudos

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

Cheers,

Kripa Rangachari.

Former Member
0 Kudos

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

sarath_chip
Advisor
Advisor
0 Kudos

Use Different shortcut... Ctrl + shift + c

former_member192023
Active Participant
0 Kudos

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

Former Member
0 Kudos

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 :razz:

Former Member
0 Kudos

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

0 Kudos

Interesting,

Thanks for sharing.

0 Kudos

Hi,

Use other shortcut, any other.

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

Former Member
0 Kudos

useful doc :smile:

Former Member
0 Kudos

Useful post....Thanks for the share :smile:

Former Member
0 Kudos

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?

0 Kudos

Sorry, doesn't work

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

Former Member
0 Kudos

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!

Former Member
0 Kudos

Very good!

Thanks for sharing!

Former Member
0 Kudos

Just like michael.tnnis, 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...

0 Kudos

You have to use the new Frontend Editor

Best Regards
Herbert

Former Member
0 Kudos

Useful doc.

Pdf will serve better.

Thanks

ulrich_brenner2
Participant
0 Kudos

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

thangam_perumal
Contributor
0 Kudos

Nice document...

naimesh_patel
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Bharathi_M
Explorer
0 Kudos

its a good one :smile:

Former Member
0 Kudos

it is so good..

Thanks

RJSA
Active Participant
0 Kudos

Michael,

You use the sapgui for windows or java?

RJSA
Active Participant
0 Kudos

is there any option for those using sagui for java?

custodio_deoliveira
Active Contributor
0 Kudos

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

matt
Active Contributor
0 Kudos

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. 

matt
Active Contributor
0 Kudos

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

matt
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Very useful..

Thanks

Daniele

Former Member
0 Kudos

Very useful

Thanks for sharing

former_member196686
Participant
0 Kudos

Nice !

Thank you for sharing.

former_member188005
Contributor
0 Kudos

Useful info.

Thanks for sharing.

Former Member
0 Kudos

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

viswanathappa
Participant
0 Kudos

Good take away for the day

former_member183908
Active Contributor
0 Kudos

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

gregorygotera
Explorer
0 Kudos

useful info.

aneel_munawar
Participant
0 Kudos

Thanks for sharing.

Former Member
0 Kudos

Powerful idea :razz:

Former Member
0 Kudos

Thanks for sharing this and so helpful for me.

0 Kudos

Very Good!!

Thank you

dipak_khatavkar
Participant
0 Kudos

Nice idea.

Thank you

former_member196651
Contributor
0 Kudos

This is really helpful. Thanks.

Pavan_Golesar
Active Participant
0 Kudos

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

Anyways thanks for sharing.

vigneshwar_reddy
Active Participant
0 Kudos

Good One.

former_member182550
Active Contributor
0 Kudos

"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

Labels in this area