SAP PROGRAM CONSTRUCTOR



Get Example source ABAP code based on a different SAP table
  



Program Constructor
The program constructor can be used to initialize the global data of a program. It is introduced using the statement:
LOAD-OF-PROGRAM
The associated event occurs when a program is loaded into the ABAP_ISESS .



Latest notes:

Class pools do not have a program constructor, since the static constructor from the global class defined in the class pool can be used instead.
NON_V5_HINTS
The program constructor should only be used according to its purpose to initialize global program data. It should not be used to call sophisticated processes, where the program flow cannot be controlled by the caller. This includes especially those that involve user interactions. Especially for executable programs, the event block INITIALIZATION, that is executed as part of processing such a program, is preferable for use cases that involve user interactions.
ABAP_HINT_END