Ansicht
Dokumentation

ABENPROGRAM_CONSTRUCTOR - PROGRAM CONSTRUCTOR

ABENPROGRAM_CONSTRUCTOR - PROGRAM CONSTRUCTOR

BAL_S_LOG - Application Log: Log header data   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Program Constructor

The program constructor can be used to initialize the global data of a program. It is introduced using the statement:

The associated event occurs when a program is loaded into the internal session.

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.
  • 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.





General Data in Customer Master   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 1540 Date: 20240328 Time: 222733     sap01-206 ( 29 ms )