R3_SEND_SPOOL_REQUEST
Sends an existing spool request.
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=...]
Syntax |
Description/Format |
---|---|
JOBNAME= |
Name of the background job. |
JOBCOUNT= |
Number of the background job. |
STEP= |
Step number. |
SPOOLNR= |
Spool list number. This parameter can be used as an alternative to JOBNAME=, JOBCOUNT= and STEP=. |
RECIPIENT= |
Receiver. |
ADDRESSTYPE= |
Address type. Allowed values: "B" (default) - SAP user |
EXPRESS= |
Sends an express message. Allowed values: "" (default) and "X" "" - No message is sent. |
COPY= |
Sends a copy. Allowed values: "" (default) and "X" "" - No message is sent. |
BLINDCOPY= |
Sends a blind copy. Allowed values: "" (default) and "X" "" - No message is sent. |
NOFORWARD= |
Forwarding is not allowed. Allowed values: "" (default) and "X" "" - Forwarding is allowed. |
LINE_FROM= |
From line. Default value: "0" |
LINE_TO= |
To line. Default value: "0" |
TITLE= |
Mail title (Subject). |
ERROR= |
Handling if an error occurs. Allowed values: "IGNORE" and "ABEND" (default value) "IGNORE" - The AE job continues. |
NOPRINT= |
Printing is not allowed. Allowed values: "Y" and "N" (default) "Y" - Printing is not allowed. |
DELIVER= |
Receipt. Allowed values: "" (default), "A", "E" and "N" "" - As specified in the SAP system |
STATUSBYMAIL= |
Receipt by e-mail. Allowed values: "" (default), "A", "E" and "N" "" - As specified in the SAP system. |
Comments
There are three ways of using this function. You can
- define the spool by using the parameters JOBNAME= and JOBCOUNT=. The parameter STEP= is optional, the default value is 1.
- 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.
The following SAP support packages are required in order to use the parameters NOPRINT=, DELIVER= and STATUSBYMAIL=:
- For 4.6C: SAPKB46C52
- For 6.20: SAPKB62059
- For 6.40: SAPKB64017
- For 7.00: SAPKB70008
Example
R3_SEND_SPOOL_REQUEST JOBNAME='MYJOB',JOBCOUNT=123,RECIPIENT='Smith',ADDRESSTYPE='O'
See also: