Show TOC

Function documentationGetting the Initial Screen Run Locate this document in the navigation structure

 

If you use this macro, the user-defined tab page can determine whether an initial PBO run is involved. This enables you to distinguish the first run of the PBO module from all other PBO runs.

Depending on the return code of this macro, you then branch either to an INIT module or to a STATUS module.

Features

The relevant macro is:

SWL_WIDISP_GET_INIT

It returns 'X' for the initial run and ' ' (space) for all other runs.

The macro could be implemented as follows:

Syntax Syntax

  1. FORM INIT_D0100.
    DATA: INIT_FLAG LIKE SY-INPUT.
      SWL_WIDISP_GET_INIT INIT_FLAG.
      CHECK INIT_FLAG IS INITIAL.
    *- Initialisierungen
      [...]
    
End of the code.