Previous Topic: EMAILADDR Statement—Specify the Email Addresses on a Distribution List (PeopleSoft Jobs)Next Topic: EMAILLOG Statement—Specify Whether to Email PeopleSoft Job Logs


EMAILADDR Statement—Email Spool File on ABAP Completion or Failure (SAP Jobs)

The EMAILADDR statement emails a copy of the SAP spool file to one or more email addresses upon ABAP completion or failure.

Supported Job Type

This statement is optional for the SAP R/3 job type.

Syntax

This statement has the following format:

EMAILADDR address |'address,address,...'
address

Specifies the email address of a recipient on a distribution list.

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.

Notes:

Example: Email the Spool File to Two Addresses on Step Completion or Failure

This example emails the spool output to the user1@example.com and user2@example.com addresses when the BTCTEST ABAP completes or fails:

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
SAPUSER J01PROD
ABAPNAME BTCTEST
   VARIANT TEST
   EMAILADDR 'user1@example.com,user2@example.com'