SAP LEAVE TO LIST-PROCESSING ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID DYNPRO%
• LEAVE TO LIST-PROCESSING ABAP Statement
• AND RETURN TO SCREEN LEAVE TO LIST-PROCESSING

LEAVE TO LIST-PROCESSING
Short Reference

ABAP_SYNTAX
LEAVE TO LIST-PROCESSING $[AND RETURN TO SCREEN dynnr$].

ABAP Addition
... AND RETURN TO SCREEN dynnr

What does it do?
This statement can be executed during PBO and PAI processing. After the current dynpro is processed, this statement interrupts the current dynpro sequence, starts the list processor, and displays the basic list. The basic list consists of any list output of all PBO and PAI modules of the dynpro sequence executed to this point. The statement is ignored in the event blocks for reporting events and list events.
The screen layout of the list dynpro of the list processor replaces the screen layout displayed in the popup level 0. Any modal dialog boxes stacked above this are hidden while the list is being displayed. The GUI status set in the dynpro sequence is used. Any list events raised by user actions in the GUI window of the list dynpro call the event blocks of the current main program . Any details lists created there are displayed by the list processor in the GUI window of the basic list, unless the statement WINDOW is used.
The user can exit the list processor or list display by selecting the functions Back, Exit, or Cancel in the display for list level 0, or by means of a program that uses the LEAVE LIST-PROCESSING statement. By default, the interrupted dynpro sequence resumes by default in both cases with the PBO processing of the dynpro in which the list processor was called.

ABAP Addition

What does it do?
Using the addition AND RETURN TO SCREEN, another dynpro can be specified in dynnr for continuing PBO processing. dynnr expects a character-like data object that contains the number of a dynpro in the current main program.



Latest notes:

If the current dynpro is displayed in a dialog box, the list processor also displays the lists in this window.
If the value 0 is specified in dynnr, the current dynpro sequence is closed after the list processor is exited.
ABAP_HINT_END

ABAP_EXAMPLE_ABEXA
Calling Lists from Dynpro Processing
ABAP_EXAMPLE_END

Return to menu