Ansicht
Dokumentation
ABAPSUBMIT_LIST_OPTIONS - SUBMIT LIST OPTIONS
CPI1466 during Backup CPI1466 during BackupThis documentation is copyright by SAP AG.
SUBMIT, list_options
... $[LINE-SIZE width$]
$[LINE-COUNT page_lines$]
${ $[EXPORTING LIST TO MEMORY$]
$| $[TO SAP-SPOOL spool_options$] $} ...
Additions
1. ... LINE-SIZE width
2. ... LINE-COUNT page_lines
3. ... EXPORTING LIST TO MEMORY
4. ... TO SAP-SPOOL spool_options
Effect
These additions modify the basic list of the called program. While LINE-SIZE and LINE-COUNT affect the formatting, the other two additions determine the output type of the list.
EXPORTING LIST TO MEMORY saves the list to the
ABAP memory
and TO SAP-SPOOL sends it to the SAP spool system as a spool list. If these additions are not specified, the basic list is preset as a screen list.
Note
The additions only work the first time the called program is executed. If a
selection screen
is displayed in the called program, the runtime framework calls the program again after it ends and
ignores the additions list_options. This applies in particular to the addition TO SAP-SPOOL,
because the basic list is displayed as a screen list and not as a spool list when the program is called
again. For this reason, it is not advisable to use the addition VIA SELECTION-SCREEN when using list_options.
Addition 1
... LINE-SIZE width
Addition 2
... LINE-COUNT page_lines
Effect
These additions define the line width and page length of the basic list. They have the same effect as
the additions of the same name in the program-initiating statement for the called program. If the called
program has the same additions in the program-initiating statement, these overwrite the values specified for SUBMIT.
Example
Program call in the executable example program DEMO_PROGRAM_SUBMIT_LINE.
SUBMIT (name) LINE-SIZE width LINE-COUNT length AND RETURN.
Program Calls, Modifying the Basic List
Addition 3
... EXPORTING LIST TO MEMORY
Effect
This addition stores the basic list for the called program in the ABAP Memory. It can only be used together with the addition AND RETURN.
The list is stored in the ABAP Memory as an internal table of the line type ABAPLIST, ABAPLIST being a structured data type in the ABAP Dictionary.
The calling program can access the list stored, once the program has been called, using function modules belonging to the function pool SLST.
- The function module LIST_FROM_MEMORY loads the list from the ABAP memory to an internal table of the line type ABAPLIST.
- The function module WRITE_LIST inserts the content of an internal table of the line type ABAPLIST in the current list.
- The function module DISPLAY_LIST displays the content of an internal table of the line type ABAPLIST in a separate list dynpro.
- The function module LIST_TO_ASCI converts the content of an internal table of the line type ABAPLIST to ASCII representation.
Note
The addition can only work if the function key Enter is not linked to a function code in the GUI status last defined for the called program.
Example
Once the program report has been called, the list stored there in the ABAP Memory is read using function modules and inserted in the current list.
Addition 4
... TO SAP-SPOOL spool_options
Effect
If this addition is specified, a new spool list level is opened in the
internal session of the called program and the first output statement for the basic list of this program creates a new
spool request. All list output for the called program is passed page by page to the
SAP spool system as a
spool list. The
additions spool_options are used to define the spool and archive parameters of the spool request.
Note
It is not possible to switch from the spool list to the screen list in the called program. The statement
NEW-PAGE PRINT OFF does not affect a spool list level created using SUBMIT TO SAP-SPOOL.
Example
Call of an executable program and creation of a spool request. When the name of the called program is passed to the input parameter REPORT of the function module GET_PRINT_PARAMETERS, the information about the line width and page length of the spool list is taken from the program-initiating statement.
DATA: print_parameters TYPE pri_params,
archi_parameters TYPE arc_params,
valid_flag TYPE c LENGTH 1.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
report
= 'SUBMITABLE'
archive_mode = '3'
IMPORTING
out_parameters = print_parameters
out_archive_parameters = archi_parameters
valid
= valid_flag
EXCEPTIONS
invalid_print_params = 2
OTHERS = 4.
IF valid_flag = 'X' AND sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
ARCHIVE PARAMETERS archi_parameters
WITHOUT SPOOL DYNPRO.
ENDIF.
General Material Data SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 8869 Date: 20240419 Time: 085622 sap01-206 ( 104 ms )