Category Archives for ABAP

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

SAP Vendor master table data relationships and tcode

There are a number of tables related to SAP vendor master table data with the main ones being LFA1, LFBK, LFB1. You can see these below and how they are related to each other and to other tables within

Continue reading

ABAP read table with OR condition in SAP

​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 code automatically using SAP Pretty Print

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

SAP Function Module tables parameter

Using the tables parameter is obsolete and SAP does not really support this any more. You can add a table type parameter to the changing or exporting section which should work fine but this method is

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

Payroll control record PA03

The payroll information displayed via transaction PA03 is stored within tables T569V, T549A and T549Q. They can also be retrieved using Function module PA03_PCR_READ Another useful function module could

Continue reading