Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

email

Hi all,

I am using SO_NEW_DOCUMENT_ATT_SEND_API1 functional module to sending an email to users.I am hardcoding 3 email address in my program.But my program is sending the attachment to only only one mail address.

My question is how to send the attachment to all at a time.

please give the code.

thanks.

Tags:
Former Member
Former Member replied

Rakesh,

Are you passing all the 3 receivers to the Tables Parameter RECEIVERS?

Do coding like this

DATA: lwa_receivers TYPE somlreci1,

lit_receivers TYPE TABLE OF somlreci1.

lwa_receivers-receiver = '<1st Maild id>'.

lwa_receivers-rec_type = 'U'.

APPEND lwa_receivers TO lit_receivers.

lwa_receivers-receiver = '<2nd Maild id>'.

lwa_receivers-rec_type = 'U'.

APPEND lwa_receivers TO lit_receivers.

lwa_receivers-receiver = '<3rd Maild id>'.

lwa_receivers-rec_type = 'U'.

APPEND lwa_receivers TO lit_receivers.

Pass this internal table lit_receivers to thr TABLES PARAMETER RECEIVERS.

<b>Reward Points for helpful answers</b>

Regards,

Satish

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question