The SAPEMAILADDR statement emails a copy of the SAP spool file to one or more email addresses upon job completion or failure.
Supported Job Types
This statement is optional for the following job types:
Syntax
This statement has the following format:
SAPEMAILADDR address |'address,address,...'
Specifies the email address of a recipient on a distribution list. The value corresponds to the General data, Spool list recipient button on the Define Background Job dialog.
Limits: Up to 256 valid SAP characters; case-sensitive
Note: To specify multiple email addresses, separate each address with a comma and enclose the entire list of addresses in single quotation marks.
Note: In an SAP R/3 job, you can also use the EMAILADDR statement to email the spool file upon step completion or failure.
Example: Specify an Email List
This example emails the spool output for the SAP job to the user1@example.com and user2@example.com addresses:
SAPJOBNAME SAPTEST SAPEMAILADDR 'user1@example.com,user2@example.com' AGENT SAPHTAGENT SAPUSER J01PRO ABAPNAME BTCTEST VARIANT TEST
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|