There are several ways how to get the fixed values of a domain. In this post I present several way including an Object Oriented approachContinue reading
If you ever need to get a super class or all (global) sub-classes of a given ABAP (global) class, you can use the following approach Continue reading
Sometimes you need to find out a transaction code for an IMG activity in SPRO. Continue reading
In this short code snippet I try to get maximum number of a variable typed as packed number and compare it against given amount.
This code can be used to detect possible overflow and let program react accordingly.
In case you need to find out if a BAPI is used by a BOR, or if you need to find out a list of all BAPIs used by a BOR, you can use the following.
When user starts a program/report in SAPGUI, he want’s to have some speicific fields to be pre-filled with fixed values. This is true especially on more complex selection screens. So he must either create a transaction which executes the report with selected variant, or he can start the program directly and choose the variant on the selection screen manually.
But there’s also another option – load the variant dynamically by ABAP coding, during the INITIALIZATION event… Continue reading
FORM get_x_last_chars USING iv_string iv_num_last_chars TYPE i CHANGING cv_result. IF strlen( iv_string ) < iv_num_last_chars. cv_result = iv_string. ELSE. cv_result = substring( val = iv_string off = strlen( iv_string ) - iv_num_last_chars len = iv_num_last_chars ). ENDIF. ENDFORM.
Here you can find a code snippet about how to enable specific fields of your ALV to be F4 responsive with a custom programmed search help. Continue reading
It’s quite common request to show lines of an internal table in form of ALV popup – e.g. some custom log messages after a program execution. Continue reading
If you need to display dynamic text in an e.g. confirmation dialog, in which you need to place several variables (different for each popup) you can use function module POPUP_TO_CONFIRM and the parameter table. Continue reading