Previous Topic: Defining SAP R/3 JobsNext Topic: Email the Spool File on Step Completion or Failure


Define Recipients for the Job's Output

In an SAP R/3 or an SAP Batch Input Session job, you can define recipients for the job's output (spool file). The recipient can be an email address, an SAPoffice distribution list, or an SAPoffice user.

To define recipients for the job's output

  1. Specify the following statements in the job definition:
  2. (Optional) Specify optional statements to control delivery options:

Example: Send the Spool File to a Distribution List

This example sends the spool file to the users on the payroll distribution list:

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
RECIPIENTTYPE DLI
SPOOLRECIPIENT payroll
ABAPNAME BTCTEST

Example: Send a Carbon Copy of the Spool File to an Email Address

This example sends a carbon copy of the spool file to the address jsmith@company1.com:

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
RECIPIENTTYPE INT
RECIPIENTCC Y
SPOOLRECIPIENT jsmith@company1.com
ABAPNAME BTCTEST

Example: Send the Spool File to an SAP User Using Express Delivery

This example sends the spool file to the SAP user J01Prod using express delivery. If J01Prod is logged into the SAP system, J01PROD will receive a message that the spool file has been sent.

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
RECIPIENTTYPE SU
RECIPIENTEXPRESS Y
SPOOLRECIPIENT J01Prod
ABAPNAME BTCTEST