Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Displaying Lists 

LEAVE TO LIST-PROCESSING

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


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

Addition

... AND RETURN TO SCREEN dynnr

Effect

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 has no effect in the event blocks for reporting events and list events.

The screen of the list dynpro of the list processor replaces the screen shown in the popup level 0. Any modal dialog windows stacked above this are hidden while the list is being displayed. The GUI status set in the dynpro sequence is used. Any list events triggered 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 in both cases with the PBO processing of the dynpro in which the list processor was called.

Addition

... AND RETURN TO SCREEN dynnr

Effect

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.


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.


Continue

Calling Lists from Within Screen Processing - Example