Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

leave-to-list processing ?

Former Member
0 Kudos

what is leave-to-list-processing ?why r u using this in reports ?

4 REPLIES 4

naimesh_patel
Active Contributor
0 Kudos

This is used when we directly want to go to LIST from certain point in the report.

Like:

  IF ITAB[] IS INITIAL.
    LEAVE TO LIST-PROCESSING.
  ENDIF.

If you haven't processed any write statment before this LEAVE TO .. statement than control will come back to SELECTION SCREEN.

Regards,

Naimesh Patel

0 Kudos

Hello,

Its also used along with the statement SUPRESS DIALOG when you plan to call list from a dialog program ,

Regards

Saket Sharma

ferry_lianto
Active Contributor
0 Kudos

Hi,

Each screen in a screen sequence has a corresponding list system of twenty levels. You can start this list system using the

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

statement. This statement calls a system program that contains the standard container screen used for lists. This replaces the current screen. On this screen, you can display a basic list and up to 19 detail lists. List processing (reacting to user actions in list events) takes place in the calling program.

You can leave the list system using the

LEAVE LIST-PROCESSING.

statement.

In an executable program, the list system is automatically called after the last reporting event.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi Akash,

LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN scr.

Switches from "dialog processing" (module pool, screens) of the current transaction to "list processing". You can then use all the usual list layout commands ( WRITE , SKIP , ...).

After leaving the current screen, the list formatted in this way is displayed implicitly or explicitly by LEAVE SCREEN . Here, all list programming options are possible, e.g. line selection, F keys , windows.

LEAVE LIST-PROCESSING continues with "Processing Before Output" ( PBO ) of the screen which controls the list processing.

After switching to list processing mode with SET PF-STATUS ... , you are recommended to define a GUI (Graphical User Interface) of type List or List in dialog box .

The AND RETURN TO SCREEN scr will do LEAVE LIST-PROCESSING continues with "Processing Before Output" ( PBO ) of the screen scr.

Using LEAVE LIST-PROCESSING to leave list processing explicitly is only necessary in exceptional cases; normally, the standard F keys (F3 Back and F15 Exit ) are sufficient.

Thanks,

Vinay