02-26-2014 6:34 AM
Hi Experts,
Background job is back again. Now the requirement is ' Can we add distribution list at job step level'.
I will explain the requirement properly.
I have one job and 4 reports are included in it that means you can say it is 4 step job.
They are in sequence means 1st report then 2nd then 3rd then last one.
Now user wants the output of only 3rd report.
But as far as i know i can add distribution list at job level.
means while creating job i define 'Distribution list',
Can i restrict it for step level.
My job YTEST1 has 4 report YVRD9050, YVRD9051,YVRD9052, YVRD9053.
And job is associated with one distribution list.
so after executing job oviously user will get 4 mails (for all reports output).
but they want mail only for 3rd report i.e YVRD9052.
so How to get this. how to restrict it at job step level.
Regards,
A. Trivedi
02-26-2014 6:49 AM
Hi,
How is mailing of the report output implemented - via SAP Output Device for Printing using E-mail? If so, the output device is assigned pro Job step anyway, and one could create Output Device "Trash" to assign to the Steps whose output is not needed. Or assign an Output Device for normal printing without print immediately, so the output remains in Spool.
cheers,
Janis
02-26-2014 6:49 AM
Hi,
How is mailing of the report output implemented - via SAP Output Device for Printing using E-mail? If so, the output device is assigned pro Job step anyway, and one could create Output Device "Trash" to assign to the Steps whose output is not needed. Or assign an Output Device for normal printing without print immediately, so the output remains in Spool.
cheers,
Janis
02-26-2014 6:57 AM
Thanks for your reply
could not get you Janis.
Output will go to SAP inbox via distribution list.
02-26-2014 7:22 AM
Hi Ashish,
You can follow the suggestion provided by
You can assign printer specification for each step.
Assign a printer for the third step which you are referring.
So whenever the third step is executed, the spool will be available in that printer. You can browse the spool available for a that printer in SP01 tcode.
Thanks,
Karthikeyan
02-26-2014 7:30 AM
02-26-2014 7:36 AM
Hi Ashish,
If you maintain the recipient list as distribution list, then it will be sent as mail to SAP inbox. If you want only the output of 3rd step, you can maintain the printer specification as mentioned. And remove the distribution list.
Of course, by this way you won't get a mail in box. You need to check it manually in SP01.
Thanks,
Karthikeyan
02-26-2014 7:37 AM
Sorry, I misinterpreted the "mail" to be SMTP E-mail. Is it the 'Spool List recipient' Functionality?
If yes, I do not know enough to say definitely, but it looks impossible... I'd consider writing Job scheduling Abap that starts/chains the 4 Steps as individual jobs via Background Processing Events...
02-26-2014 7:45 AM
Hi Karthik,
I want output of 3rd step as mail in SAP inbox. and how can i remove distribution list for different steps because i think dist. lst is defined at job level. please correct me if i am wrong.
02-26-2014 8:45 AM
Hi Janis,
Yes it is Spool List Rec. and distribution list. And mail will go to sap inbox.
02-26-2014 9:06 AM
Yuhuu - never despair, never give up
It's somewhat dirty, but if I set the Pages to be printed to 99999999 in Print Specifications for the Step, I do not receive SAP Mail for that step... The Spool for the step consists of 0 Pages...
Hope this helps you as well and cheers,
Janis
02-26-2014 9:30 AM
02-26-2014 9:49 AM
Thanks Janis,
it worked, but i dont think user will be agree to do it.
i will check with my onsite anchor and will update you.
Request you to follow this post.
If you get anything then please let me know.
Thanks a lot for your time.
Regards,
Ashish
02-26-2014 10:36 AM
Yup, this is a hack that allows to suppress list, and if some key user wants to send the "unimportant" lists to his/her "underlings", you are out of luck again
If it's about having to define Print parameters each time, however, simply suggest they always copy one predefined Job - the Print Parameters will be copied along.
cheers
Janis
02-26-2014 10:39 AM