How to compile list reports in SAP Screen

Source: Internet
Author: User

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:

    1. First, call leave to list-processing and return to screen 0.
    2. Set GUI status for list; for example, set space or custom.
    3. Use the following statement to disable empty screen output:

      Suppress dialog.

      Or

      Leave screen.

    4. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.