Application Development and Automation 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: 
Read only

leave list processing

Former Member
0 Likes
1,195

hi to all sdn people

i know the functionality of the leave list processing

and leave to list processing . but tell how to use them in the screen programs ?pls give

one sample screen program .

4 REPLIES 4
Read only

Former Member
0 Likes
800

Hi

Without rewarding points how do you expect people to ANSWER YOU WITH CODES of each program.

It is the good practice in SDn to reward for the useful answers.

Do you think that the people who are answering are idle to answer you.

Hope you know the rules and regulations of SDN.

When You wants to leave to List (report) from the module pool program/transaction

you use this command.

LEAVE TO LIST PROCESSING

and the cursor comes out of the transaction to the report and you can write the

WRITE statements after this command.

Reward Points if useful

regards

Anji

Read only

abdul_hakim
Active Contributor
0 Likes
800

Hi

Check the Sample Programs for the same in the transaction ABAPDOCU.

Cheers,

Hakim

Read only

Former Member
0 Likes
800

LEAVE TO LIST-PROCESSING

Basic form 5

LEAVE TO LIST-PROCESSING.

Addition:

... AND RETURN TO SCREEN scr.

Effect

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.

Note

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.

Please consult Data Area and Modularization Unit Organization documentation as well.

Addition

... AND RETURN TO SCREEN scr.

Effect

LEAVE LIST-PROCESSING continues with "Processing Before Output" (PBO) of the screen scr.

Note

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.

Refer the following code:

REPORT demo_leave_to_list_processing .

TABLES demo_conn.

DATA: wa_spfli TYPE spfli,
      flightdate TYPE sflight-fldate.

CALL SCREEN 100.

MODULE status_0100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.

MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.

MODULE user_command_0100.
  CALL SCREEN 500.
  SET SCREEN 100.
ENDMODULE.

MODULE call_list_500 OUTPUT.
  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
  SET PF-STATUS space.
  SUPPRESS DIALOG.
  SELECT  carrid connid cityfrom cityto
    FROM  spfli
    INTO  CORRESPONDING FIELDS OF wa_spfli
    WHERE carrid = demo_conn-carrid.
    WRITE: / wa_spfli-carrid, wa_spfli-connid,
             wa_spfli-cityfrom, wa_spfli-cityto.
    HIDE: wa_spfli-carrid, wa_spfli-connid.
  ENDSELECT.
  CLEAR: wa_spfli-carrid.
ENDMODULE.

TOP-OF-PAGE.
  WRITE text-001 COLOR COL_HEADING.
  ULINE.

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

AT LINE-SELECTION.
  CHECK NOT wa_spfli-carrid IS INITIAL.
  SELECT  fldate
    FROM  sflight
    INTO  flightdate
    WHERE carrid = wa_spfli-carrid AND
          connid = wa_spfli-connid.
    WRITE / flightdate.
  ENDSELECT.
  CLEAR: wa_spfli-carrid.

Read only

0 Likes
800

<b>LEAVE LIST-PROCESSING</b>

Basic form

LEAVE LIST-PROCESSING.

Effect

Returns from list processing and re-processes the return screen (LEAVE TO LIST-PROCESSING).

Note

LEAVE LIST-PROCESSING is not required if you use the standard F keys in list processing ( F3=Back and F15= Exit).