ABAP performance analysis with SAT transaction

Every once in a while, you will encounter ABAP programs taking too long to run. Your duty, as an ABAP developer, is to find the bottleneck. Sometimes it is as easy as debugging the program just once, or even just looking at the code. Sometimes not.. This is where SAT comes in. It is a […]

Experiment on performance: SELECT SINGLE vs FOR ALL ENTRIES

When all business requirements are met in a development, customer complaints always come down to performance. “Can’t this run any faster?” we always hear. Performance, in a technical point of view, is a broader concept that not just includes execution time, but also optimal use of system resources like memory and network load.  But powerful […]

ABAP by numbers: Length of decimal type

Inequality between length and maximum digit count of packed decimal type causes great confusion even among seasoned developers. ABAPDOCU explains the relation with a fairly complicated formula: Depending on the field length len and the number of decimal places dec, the following applies to the value range: (-10^(2len-1) +1) / (10^(+dec)) to (+10^(2len-1) -1) /(10^(+dec)) […]

Obligatory selection screen parameters

Almost every ABAP developer comes to a point where they require obligatory parameters along with user command logic in their selection screens. As you might already know, that’s a problem. Because obligatory parameters demand input on every action of user and interfere with user command logic, which results in a broken selection screen. Let’s see […]

ERROR_MESSAGE: Predefined exception for function modules and methods

No matter how many times mentioned before (thanks to Rahul Gopinath, Amit Behera, Srinivas Dummu and Mike), I still see sy-subrc check after a function module call without exceptions.

This is so wrong. According to ABAP keyword documentation: If no exception is raised, a call sets sy-subrc to 0. So in the above example, sy-subrc will always be equal to […]

Hello ABAP world!

Greetings to fellow SAP ABAP developers from around the world. I have just decided to start a new ABAP blog (yes, yet another) and this first post is here just to share my excitement. So why another ABAP blog? Of course I know there are already many ABAP blogs and tutorial sites who are actually […]