Category Archives for ABAP

ABAP to populate SAP table

As discussed in the previous post there are two basic ways you can add data to an SAP database table, manually using standard SAP transactions or via ABAP code. In that post, we have already discussed

Continue reading

Save layout ALV button missing

If you have implemented your SAP ALV report and all works fine apart from the Save layout ALV button, you can set filters to hide columns etc but you are unable to save this layout as a variant for future

Continue reading

ABAP sorted table insert TABLE_ILLEGAL_STATEMENT SAP error

Remember when doing a sorted table insert you should use the INSERT ABAP statement instead of APPEND, but maybe you have done this but you are getting a TABLE_ILLEGAL_STATEMENT short dump. Even though

Continue reading

ABAP read table with OR condition

​So is it possible to add an OR condition to the key values of the read statement? The simple answer is no, but you can replicate this functionality using one of two methods. Method 1 - Using multiple

Continue reading

Beautify, Change case and Indent your ABAP

I guess you may already know about the pretty print functionality within ABAP development which helps make you code more readable, but did you know you can change the pretty print settings so that

Continue reading

Email ALV PDF using ABAP report of pernrs then email output as attachment

Useful ABAP code example to demonstrate how to display an SAP ALV report which displays alist of PERNR details and then automatically allows the user to email ALV PDF as a document attchement. The code

Continue reading

View SAP Query ABAP program created

When working with SAP queries it is often useful to have a look at the ABAP code it generates. This could be to either use it as a basis for a new report or just to see what is going on. You can also use

Continue reading

Download your ABAP code to a PDF file

Access this fairly hidden feature of the standard SAP GUI to instantly download your ABAP code to PDF document file. Not sure why this feature isn’t more accessible but in order to use the PDF

Continue reading

Compare two ABAP objects using SE39 Split screen editor

Transaction SE39 is useful if you want edit two programs at the same time or if you just want to compare two ABAP objects on one screen. Once you have two objects loaded into the views you can turn

Continue reading

Display URL in SAP ABAP report using class method

*&---------------------------------------------------------------------* *& Report  ZDISPLAY_URL *& *&---------------------------------------------------------------------* *& *&---------------------------------------------------------------------* REPORT  Zdisplay_url.

Continue reading