How to send SAP Spool by Email

Document ID : KB000074515
Last Modified Date : 10/05/2018
Show Technical Document Details
Issue:
We are trying to schedule jobs in WAAE Autosys which can send the SAP Spool to the outlook email id of users.
 
We used the below settings in our job definition, but we are not able to send the SAP spool by email.
 
insert_job: job12
job_type: SAP
sap_release_option: A
sap_step_parms: variant=….,sap_maillist="destination@domain",dest="MAIL",banner_page=N,copies=1,release=N,prt_arc_mode=PRINT,print_imm=Y,new_spool=Y,format="X_65_132",footer=N
 
We also tried to add the “sap_recipients” attribute to the job definition with recipient=destination@domain with no quotes as in the below example:
 
sap_recipients: no_print=n, no_forward=n, blind_copy=n, express=n, rcp_type=int, recipient=destination@domain, copy=n
 
 
Then in the “sap_step_parms” attribute we removed the sap_maillist
 
sap_step_parms: variant…..,dest="MAIL",banner_page=N,copies=1,release=N,prt_arc_mode=PRINT,print_imm=Y,new_spool=Y,format="X_65_132",footer=N
 
But this solution did not allow to send the SAP spool by email.
 

 
Environment:
WA Agent 11.3 + SAP plugin
Resolution:
Please add the following parameters in the “agentparm.txt” file of your Agent:
 
sap.use.BAPI_XBP_JOB_SPOOLLIST_READ=true
 
smtp.server=<host name of the mail server>
 
Then restart the Agent for this modification to be taken into account.
 
This solution allowed to send successfully the job spool file by email as requested.