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: 

Multiple recipients in RSNAST00

maria_merino
Active Participant
0 Kudos
638

Hi,

I have a job calling RSNAST00 to send a mail with an invoice list. The user needs to send this list to multiple mails, is it possible?

thanks!

Maria

11 REPLIES 11

Neeraj_Jain
Active Contributor
0 Kudos
487

Hello mariamerino,

Please make a distribution list to assign in your batch job with enhancement of your program to trigger mail to distribution list.

Hope it works for you.

Regards,

Neeraj Jain

Best Regards,
Neeraj Jain

0 Kudos
487

But the distribution list is not always the same. They want to assign some more than one email address to the customer and then send the mail to all those addresses.

0 Kudos
487

Hello mariamerino,

Then what's the problem? You can maintain multiple email addresses in customer master and enhance the print program to trigger the mail.

Regards,

Neeraj Jain

Best Regards,
Neeraj Jain

Ryan-Crosby
Active Contributor
487

Hi Maria,

Several of the SD output programs contain BADIs for dealing with output medium 5 (external send). If the distribution list option that neeraj.jain16 has suggested is not desired, then this option is a possibility. Please note that the distribution list is probably a better option as it requires zero code.

Regards,

Ryan Crosby

0 Kudos
487

My problem es that I didn’t find any badi/user exit to modify the current behavior.
The distribution list is not an option because they want to maintain these mails in the customer master.

0 Kudos
487

mariamerino80 if you cannot find a BADI then your remaining alternatives are the distribution list or copying the standard program and inserting the necessary logic. The future is far cleaner going the former route, and the latter is likely laden with problem after problem.

0 Kudos
487

This fm CONVERT_COMM_TYPE_DATA is the one that returns the mail address in lvs_comm_values, I don't know if it's possible to to add other addresses there.

0 Kudos
487

mariamerino80 if you were to alter that behavior you could break other things in the system that use that function. You would need to look at the distribution list or copying the program so you can decide how you want to handle it. The former option is vastly superior as far as future maintenance goes.

FredericGirod
Active Contributor
0 Kudos
487

What is the logic between the email ? Is there an email for the customer and several emails never changed ? or is it several email for each customer ?

0 Kudos
487

RSNAST00 is the program used to retrigger the output types(to make one more printout of the invoice for example). It is not specific to any application. Hence it can be used for sales order outputs, delivery outputs and invoice outputs.

RSNAST00 can be used only if the output was triggered for the first time in Batch mode(i.e. it is not triggered in immediate mode(4) and triggered in batch mode(1). Those kind of outputs can be triggered n number of times using RSNAST00

maria_merino
Active Participant
0 Kudos
487

Enhancement un function module SBCOMS_SEND_REQUEST_CREATE