Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Define distribution list at Job Step Level

former_member212705
Active Participant
0 Kudos


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

1 ACCEPTED SOLUTION

Private_Member_7726
Active Contributor
0 Kudos

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

13 REPLIES 13

Private_Member_7726
Active Contributor
0 Kudos

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

0 Kudos

Thanks for your reply

could not get you Janis.

Output will go to SAP inbox via distribution list.

0 Kudos

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

0 Kudos

Hi KP,

That means mail will not trigger for first two steps???


0 Kudos

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

0 Kudos

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...

0 Kudos

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.

0 Kudos

Hi Janis,

Yes it is Spool List Rec. and distribution list. And mail will go to sap inbox.

0 Kudos

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

0 Kudos

Thanks . I am checking

0 Kudos

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

0 Kudos

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

0 Kudos

hmm ok, lets c. will let you know.