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
Author Archives: Spider
ABAP – Get all sub-classes of a super-class
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
ABAP – Find out TCode for SPRO activity
Sometimes you need to find out a transaction code for an IMG activity in SPRO. Continue reading
ABAP – Get max value of variable type as PACKED number
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.
ABAP – How to find out if a BAPI is used in BOR
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.
ABAP – Load user-specific selection screen variant during program initialization
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
ABAP – Get X last characters of a string
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.
ABAP – ALV with custom F4 field
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
ABAP – Very simple ALV
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
ABAP – POPUP_TO_CONFIRM with dynamic text
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