1. Related commands
Leave to list-processing [and return to screen <NNNN>].
Leave list-processing.
2. Instructions for use
3. Recommendation design ideas
Design an empty screen and use the call screen to call the empty screen in the logic flow of the screen to call the list. The next screen of the empty screen is set to 0, and Pai is not required. You only need to design a module in PbO. The specific steps of this module are as follows:
- First, call leave to list-processing and return to screen 0.
- Set GUI status for list; for example, set space or custom.
- Use the following statement to disable empty screen output:
Suppress dialog.
Or
Leave screen.
- List output and processing.
4. Example
Report demo_leave_to_list_processing.
Tables sdyn_conn.
Data: wa_spfli type spfli,
Flightdate type sflight-fldate.
Call screen 100.
Module status_0100 output.
Set PF-STATUS 'screen _ 000000 '.
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 = sdyn_conn-carrid.
Write:/wa_spfli-carrid, wa_spfli-connid,
Wa_spfli-cityfrom.
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.
The sample screen 100 contains only one input field (SDYN_CONN-CARRID), and in the logical stream of screen 100 calls the list processing. The logical stream of screen 100 is as follows:
Process before output.
Module status_0100.
Process after input.
Module cancel at exit-command.
Module user_command_0100.
The module user_command_100 of PAI on screen 100 calls screen 500 using call screen. The logical stream of screen 500 encapsulates all list processing. The logical stream of screen 500 is as follows:
Process before output.
Module call_list_500.
Process after input.
The module call_list_500 of PBO on screen 500 defines list processing.Code. In addition, because the screen stream of screen 500 is set to 0ProgramFrom the returned result of list processing to the call screen 100 Statement of user_command_100 on screen 500.
This program displays a detailed list during list processing. For specific code, see at line-selection, top-of-page, and top-of-page during line-selection event code.