on 11-19-2015 6:49 PM
Hi, i am working on a requirement to send spool by email to recipients. I have created the job but email is getting sent without spool attachment. Below is the script i used.
<html>
<body>
<p>This is an automatic notification to inform you that certain client invoices from your office that did not properly transfer to the FM Module/General Ledger.
Please see the attached file for the invoice listing. </p>
</p>
</body>
</html>
[Attachments]
# Attach the Error Log
error.txt=Step 1, Job 1:stderr.log
[Headers]
# set the subject
subject= VFX3 output for Company Code XXX as on ${RunEnd}
[Body]
# set the content-type to be HTML
Content-Type=text/html; charset=UTF-8
This script i have created as a job and when ever the SAP job completes this email job gets triggered through event handling which is also working good and sending notification but missing attachment.
I am having two problems in this, one is sending the spool as attachment and another one is in the subject i want to put the job run time which i used with runend date parameter which is also not working.
I also tried using http://scn.sap.com/ but that one also is not working.
Please suggest and if possible plz correct the script. Happy to share any more information if needed.
Thank you,
Arun
I recommend you go through the admin guide for complete understanding.
Here is what i found:
thanks
Nanda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nanda,
Thanks for your all replies, i have come up another issue with this job setup. Actually this job is sending email even if there is no attachment that means even if the step-1 did not generate any spool, it still send email.
Is there any way we can control this job from sending email if there is no spool generated by step 1 SAP job.
Thank you,
Arun
Hello,
You are attaching only stderr.log, not the spool file, that is called something like step1/spool1.log
Regards Gerben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.