ABAPLEAVE_LIST-PROCESSING - LEAVE LIST-PROCESSING

Addresses (Business Address Services)   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

LEAVE LIST-PROCESSING

Short Reference



Syntax

LEAVE LIST-PROCESSING.

Effect

This statement immediately exits the list processor. The runtime environment continues the processing with thePBOevent of the screen from which the list processor was called using LEAVETO LIST-PROCESSING or the screen that was set using the AND RETURN TO SCREEN addition to this statement.

If the statement is not executed when the list is displayed by the list processor, it has no effect, except in the event blocks forreportingevents. Here it branches to the end of the program and processing continues as described for the SUBMIT statement.

When the list processor is exited, the list buffer of thescreen sequence is initialized. New output statements describe a new basic list.

Example

This example shows the recommended procedure for displaying lists during screen sequences. A separate screen 500 is defined for calling the list processor. Thescreen does not contain any screen elements and it calls a single PBO module call_list but noPAImodules. The entire basic list, including the GUI status, is defined in the PBO module. When the screenis exited using LEAVE SCREEN, its processing is stopped and the list processor is started. The list events are handled in the same program. When the list processor is exited the screen sequence of screen 500 is ended, because thenext screen 0 is specified when the list processor is called.

PROGRAM demo NO STANDARD PAGE HEADING.

...

MODULE call_list OUTPUT.
  SET PF-STATUS space.
  WRITE 'Basic List'.
  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
  LEAVE SCREEN.
ENDMODULE.

TOP-OF-PAGE.
  WRITE 'Header' COLOR COL_HEADING.
  ULINE.

TOP-OF-PAGE DURING LINE-SELECTION.
  WRITE sy-lsind COLOR COL_HEADING.
  ULINE.

AT LINE-SELECTION.
  WRITE 'Secondary List'.
  IF sy-lsind = 20.
    LEAVE LIST-PROCESSING.
  ENDIF.




PERFORM Short Reference   General Material Data  
This documentation is copyright by SAP AG.


Length: 3463 Date: 20120522 Time: 234947     triton ( 103 ms )