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: 

How to send Mails to 'N' no of DL list in SAP ABAP

former_member219737
Participant
0 Kudos

Hi Team,

I know the process of sending mails to N no of DL List of only one DL name .

https://wiki.scn.sap.com/wiki/display/Snippets/How+to+send+mail+to+a+distribution+list+or+a+group+ID

Can i know , how to send more than one DL List in a single stretch via code level .

I dont want to use loop and send the content to the DL List , which takes more time for the execution .

Scenario :

I have more than one DL List in my scenario where i need to send the content in a single stretch .

Regards.

Karthik S

2 REPLIES 2

pokrakam
Active Contributor
0 Kudos

"I dont want to use loop and send the content to the DL List , which takes more time for the execution ."

Executing a loop uses a very, very, very small amount of time on compared to the time it takes to generate and send the emails. I really wouldn't worry about that.

Sandra_Rossi
Active Contributor
0 Kudos

Calling ADD_RECIPIENT several times, once per distribution list, doesn't fit your requirement?

CALL METHOD send_request->add_recipient
EXPORTING
i_recipient = recipient
i_express = ca_x.