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
The recipient type can be SU (SAP user), DLI (SAPoffice distribution list), or INT (email address).
You can use multiple SPOOLRECIPIENT statements to specify multiple recipients. Alternatively, you can define a distribution list in SAP and use the DLI recipient type.
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
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|