Start of Content Area

Function documentation Getting the Initial Screen Run  Locate the document in its SAP Library structure

Use

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:

FORM INIT_D0100.
DATA: INIT_FLAG LIKE SY-INPUT.
  SWL_WIDISP_GET_INIT INIT_FLAG.
  CHECK INIT_FLAG IS INITIAL.
*- Initializations
  [...]