SAP SUBMIT - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for SUBMIT

SUBMIT

ABAP Reference
ABAP Code Snippet


ABAP Syntax SUBMIT {rep|(name)}

[USING SELECTION-SCREEN dynnr]
[VIA SELECTION-SCREEN]
[USING SELECTION-SET variant]
[USING SELECTION-SETS OF PROGRAM prog]
[WITH SELECTION-TABLE rspar]
{ [WITH sel1 { {{EQ|NE|CP|NP|GE|LT|LE|GT} dobj [SIGN sign]}
| {[NOT] BETWEEN dobj1 AND dobj2 [SIGN sign]}
| {IN rtab} }]
[WITH sel2 { {{EQ|NE|CP|NP|GE|LT|LE|GT} dobj [SIGN sign]}
| {[NOT] BETWEEN dobj1 AND dobj2 [SIGN sign]}
| {IN rtab} }]
... }
[WITH FREE SELECTIONS texpr]
[LINE-SIZE width]
[LINE-COUNT page_lines]
{ [EXPORTING LIST TO MEMORY]
| [TO SAP-SPOOL SPOOL PARAMETERS pri_params
[ARCHIVE PARAMETERS arc_params]
WITHOUT SPOOL DYNPRO] }
[[USER user] VIA JOB job NUMBER n]
[AND RETURN].
ABAP Code Snippet

What does it do? Calls an executable program.

ABAP Addition {rep|(name)}
Specifies the program statically as rep or dynamically in name.
USING SELECTION-SCREEN dynnr
Specifies the selection screen dynnr to be accessed. If nothing is specified, the standard selection screen is called.
VIA SELECTION-SCREEN
Displays the selection screen called. If nothing is specified, selection screen processing takes place in the background.
USING SELECTION-SET variant
Supplies the selection screen with values for a variant variant.
USING SELECTION-SETS OF PROGRAM prog
Specifies a program prog whose variants are used.
WITH SELECTION-TABLE rspar
Supplies the selection screen with values from an internal table rspar of the row type RSPARAMS or RSPARAMS_255.
WITH sel1 ... WITH sel2 ...
Supplies individual parameters and selection criteria sel1, sel2, ... on the selection screen:

{EQ|NE|CP|NP|GE|LT|LE|GT} dobj [SIGN sign] - Passes a single value dobj with relational operators and a specification for the SIGN column in the selection table.

[NOT] BETWEEN dobj1 AND dobj2 [SIGN sign] - Passes an interval from dobj1 to dobj2 with an optional operator NOT and a specification for the SIGN column in the selection table.

IN rtab - Passes a ranges table rtab.
WITH FREE SELECTIONS texpr
Supplies the dynamic selection for the selection screen on a logical database with values from an internal table texpr of type RSDS_TEXPR from type group RSDS .
LINE-SIZE width
Sets the line width in the basic list for the program accessed to width characters.
LINE-COUNT page_lines
Sets the page length in the basic list for the program accessed to page_lines lines.
EXPORTING LIST TO MEMORY
Stores the basic list for the program accessed as an internal table of the row type ABAPLIST in the ABAP Memory. Can only be used together with AND RETURN.
TO SAP-SPOOL
Creates a spool request for the basic list in the program accessed with the following parameters:

SPOOL PARAMETERS pri_params - Spool parameters in a structure pri_params of the type PRI_PARAMS.

ARCHIVE PARAMETERS arc_params - Archiving parameters in a structure arc_params of the type ARC_PARAMS.

WITHOUT SPOOL DYNPRO - Suppresses the spool dialog box.
[USER user] VIA JOB job NUMBER n
Schedules execution of the program accessed as a background task with the number n in the background request job. Can only be used together with AND RETURN. A user name for the background task can be specified in user.
AND RETURN
Once program access is completed, program execution is continued after the SUBMIT statement. Otherwise, the calling program is terminated.

Return to menu