R3_SEND_SPOOL_REQUEST
Use the R3_SEND_SPOOL_REQUEST script element to send an existing spool request.
There are three ways of using this function:
- Define the spool by using the parameters JOBNAME= and JOBCOUNT=. The STEP= parameter is optional.
- Directly specify SPOOLNR=
- Use none of the above parameters. In this case, the spool of the job that has last been executed via the AE job is used. You can specify a step number.
Transaction: SP01
Interface: AE
Syntax
R3_SEND_SPOOL_REQ[UEST]
[JOBNAME=...]
[,JOBCOUNT=...]
[,STEP=...]
[,SPOOLNR=...]
[,RECIPIENT=...]
[,ADDRESSTYPE=...]
[,EXPRESS=...]
[,COPY=...]
[,BLINDCOPY=...]
[,NOFORWARD=...]
[,LINE_FROM=...]
[,LINE_TO=...]
[,TITLE=...]
[,ERROR=...]
[,NOPRINT=...]
[,DELIVER=...]
[,STATUSBYMAIL=...]
Parameters
-
R3_SEND_SPOOL_REQ[UEST]
Sends an existing spool reques - JOBNAME=
(Optional) Name of the background job
Format: script literal - JOBCOUNT=
(Optional) Number of the background job
Format: script literal - STEP=
(Optional) Step number
Format: number
Default value: 1 - SPOOLNR=
(Optional) Spool list number. You can use this parameter cas an alternative to JOBNAME=, JOBCOUNT= and STEP=.
Format: script literal - RECIPIENT=
(Optional) Receiver
Format: script literal - ADDRESSTYPE=
(Optional) Address type
Format: script literal
Allowed values:- B (default)
SAP user - C
General distribution list - D
X.500 address - F
Fax number - G
Organization object/ID - H
Organization department/position - J
SAP object - L
Telex number - O
SAP office user - P
Personal distribution list - R
SAP user in a different SAP system - U
Internet address - X
X.400 address
- B (default)
- EXPRESS=
(Optional) Sends an express message
Format: script literal
Allowed values:- "" (default)
No message is sent - X
An express message is sent
- "" (default)
- COPY=
(Optional) Sends a copy
Format: script literal
Allowed values:- "" (default)
No copy is sent - X
An copy is sent
- "" (default)
- BLINDCOPY=
(Optional) Sends a blind copy
Format: script literal
Allowed values:- "" (default)
No blind copy is sent - X
A blind copy is sent
- "" (default)
- NOFORWARD=
(Optional) Forwarding is not allowed
Format: script literal
Allowed values:- "" (default)
Forwarding is allowed - X
Forwarding is not allowed
- "" (default)
- LINE_FROM=
(Optional) Starting from line
Format: Number
Default: 0 - LINE_TO=
(Optional) To line
Format: Number
Default: 0 - TITLE=
(Optional) Title of the mail (Subject)
Format: Script literal - ERROR=
(Optional) Handling if an error occurs
Format: Script literal
Allowed values:- ABEND (default)
The AE job ends abnormally - IGNORE
The AE job continues
- ABEND (default)
- NOPRINT=
(Optional) Printing is not allowed
Format: Script literal
Allowed values:- NO (default)
Printing is not allowed - IGNORE
Printing is allowed
- NO (default)
- DELIVER=
(Optional) Receipt
Format: Script literal
Allowed values:- "" (default)
As specified in the SAP system - A
Always - E
Only in error case - N
Never
- "" (default)
- STATUSBYMAIL=
(Optional) Receipt by email
Format: Script literal
Allowed values:- "" (default)
As specified in the SAP system - A
Always - E
Only in error case - N
Never
- "" (default)
Example
R3_SEND_SPOOL_REQUEST JOBNAME='MYJOB',JOBCOUNT=123,RECIPIENT='Smith',ADDRESSTYPE='O'
See also:
seealso