Previous Topic: SPOOLFILE Statement—Specify the Full Path to the Spool FileNext Topic: SQL Statement—Specify SQL to Run Against a Database Table


SPOOLRECIPIENT Statement—Specify SAP Spool Recipient

The SPOOLRECIPIENT statement specifies the recipient for the SAP spool. The recipient receives the spool upon job completion or failure.

This statement is optional for the following job types:

Syntax

This statement has the following format:

SPOOLRECIPIENT recipient
recipient

Specifies the SAP user, SAPoffice distribution list, or email address that receives the spool.

Limits: Up to 240 valid SAP characters; case-sensitive

Notes:

Example: Specify an Email Address

This example sends the spool to the address user1@example.com upon job completion:

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
RECIPIENTTYPE MAIL
SPOOLRECIPIENT user1@example.com
ABAPNAME RSPARAM

Example: Specify an SAP User

This example sends the spool to the SAP user J01Prod upon job completion:

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
RECIPIENTTYPE SU
SPOOLRECIPIENT J01Prod
ABAPNAME BTCTEST

Example: Specify an SAPoffice Distribution List

This example sends the spool to the payroll distribution list upon job completion:

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
RECIPIENTTYPE DLI
SPOOLRECIPIENT payroll
ABAPNAME BTCTEST