sapdev logo background
sapdev logo sapdev logo
Comments

SAP LEAVE TO LIST PROC ABEXA documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

Calling Lists from Within Screen Processing
The example shows how to switch from screen processing to list processing.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
In this example, the system branches to list processing while screen 100 is being processed. The screen layout of screen 100 has a single input field, the component CARRID of the structure SDYN_CONN from the ABAP Dictionary. The flow logic of screen 100 is as follows:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE user_command_0100.
In the PAI module user_command_0100 , CALL SCREEN is used to call screen 500. Screen 500 encapsulates a basic list. The flow logic of this screen is as follows:
PROCESS BEFORE OUTPUT.
MODULE call_list_500.
PROCESS AFTER INPUT.
The module call_list_500 defines the basic list and branches to the list display. Since the system branches to the next screen 0 after returning from the list display, screen 500 represents a screen sequence with a single screen only. When list processing is completed, the system returns to after the callpoint in user_command_0100 .
Selecting a line in the basic list creates a details list. The event block for AT LINE-SELECTION has been programmed for this purpose. In addition, the page headers for the basic and details list are defined in the event blocks for TOP-OF-PAGE and TOP-OF-PAGE DURING LINE-SELECTION .
Since only one list system is used in this program, separate control during list event processing is not necessary.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




LEAVE_PROGRAM_UNITS
LEGACY_FILE_GLOSRY




comments powered by Disqus