Category Archives for ABAP

Email ABAP report PDF

The below code to demonstrates how to email ABAP report PDF. It generates an ALV output of personal numbers (PERNRS) and then converts this to a PDF document. Its then sends an external email with the

Continue reading

Use logical database selection screen ABAP Code

Simple ABAP code to demonstrate how to manipulate a logical database selection screen which is assigned and setup within menu option Goto->properties. This example SAP ABAP HR report implements the

Continue reading

CL_SALV_TABLE example

Using CL_SALV_TABLE class to create a very simple ABAP ALV report that selects data from database table SFLIGHT and displays it to the user as an ALV grid via the cl_salv_table=>factory method. This

Continue reading

ABAP SUBMIT to execute second SAP report

Below is example code snippet to use the ABAP SUBMIT statement within your SAP report programs so that you can execute a second report with the required values. And control whether the process flow then

Continue reading

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