Get Example source ABAP code based on a different SAP table
ARTICLE
Screens, Status Icons This example illustrates status icons on screens.
ABAP_SOURCE_CODE ABAP_EXEC
ABAP_DESCRIPTION The static next screen number of screen 100 is 100. It is a status field named status_icon created with a visible length of 16 and a defined length of 26. The status icon and the space for a text are indicated by symbols in the Screen Painter. The screen flow logic is as follows: PROCESS BEFORE OUTPUT. MODULE set_icon. PROCESS AFTER INPUT. MODULE cancel AT EXIT-COMMAND. MODULE change. Depending on the value field local in the program, the dialog module set_icon passes different values to the function module ICON_CREATE. The status field status_icon is filled with its export parameter result. This displays the corresponding icon including the text and quick info on the screen. If the Continue button is chosen, the field value is changed at PAI so that a different icon is defined at PBO.