1. ... LINE-SIZE col
2. ... LINE-COUNT lin
3. ... TO SAP-SPOOL
4. ... VIA SELECTION-SCREEN
5. ... AND RETURN
6. ... EXPORTING LIST TO MEMORY
7. ... USER user VIA JOB job NUMBER n
8. ... Various additions
for parameter transfer to rep
9. ... USING SELECTION-SETS OF PROGRAM prog
Calls the report rep . Leaves the active program
and starts the new report rep .
... LINE-SIZE col
Prints the report with the line width col .
... LINE-COUNT lin
Prints the report with lin lines (per page).
... VIA SELECTION-SCREEN
Displays the selection screen for the user. In this
case, the selection screen is redisplayed after return from the report
list display - the user's entries are retained.
... AND RETURN
Returns to the calling transaction or program after the
called program has been executed. SUBMIT ... AND RETURN creates
a new internal mode .
... EXPORTING LIST TO MEMORY
Does not display the output list of the called report,
but saves it in SAP memory and leaves the called report immediately.
Since the calling program can read the list from memory and process it
further, you need to use the addition ... AND RETURN . Also,
since the called report cannot be requested for printing, the addition
... TO SAP-SPOOL is not allowed here. You can read the saved
list from SAP memory with the function module 'LIST_FROM_MEMORY'
and then (for example) store it in the database with
EXPORT . You can process
this list further with the function modules 'WRITE_LIST' ,
'DISPLAY_LIST' ... of the function group "SLST" .
... USER user VIA JOB job NUMBER n
Schedules the specified report in the job specified by
the job name job and the job number n . The job runs under
the user name user and you can omit the addition USER
user . The assignment of the job number occurs via the function
module JOB_OPEN (see also the documentation for the function
modules JOB_CLOSE and JOB_SUBMIT . This addition can only
be used with the addition ...AND RETURN .
When scheduling a report with the SUBMIT ... VIA JOB
job NUMBER n statement, you should always use the addition ...TO
SAP-SPOOL to pass print and/or archive parameters. Otherwise,
default values are used to generate the list and this disturbs
operations in a production environment.
... USING SELECTION-SETS OF PROGRAM prog
Uses variants of the program prog when executing
the program rep .
The programs prog and rep must have the same
PARAMETER s. Otherwise, variants of
the program prog may be destroyed.
When using this addition, the specified variant
vari of the program prog is taken in
USING SELECTION-SET vari . On
the other hand, all variant-related actions on the selection screen of
rep (Get , Save as variant , Display ,
Delete ) refer to the variants of prog .
USING SELECTION-SET 'VARIANT1'
USING SELECTION-SETS OF PROGRAM 'REPORT00'
Executes the program REPORT01 with the variant
VARIANT1 of the program REPORT00 .
LOAD_PROGRAM_NOT_FOUND : The specified program was not found.
SUBMIT_WRONG_TYPE : The specified program is not a report.
SUBMIT_IMPORT_ONLY_PARAMETER : Only one value passed to a
SUBMIT_WRONG_SIGN : Invalid value passed to a selection with
the addition SIGN .
SUBMIT_IN_ITAB_ILL_STRUCTURE : Table passed to a selection with
WITH sel IN itab had an unexpected structure.
© SAP AG 1996