cancel
Showing results for 
Search instead for 
Did you mean: 

send mail to sapinbox and Lotusnotes (External mail) though the workflow-

Former Member
0 Kudos

HI friends,

I need to write the logic in MB_DOCUMENT_BADI badi before saving the goods movement document.

I am calulating one value in BADI, once that calculated I need to send mail to user SAP INbox and his external mail.

I wrote all logic for calucuate the price...After i need to trigger workflow to send email to both places.

should i use the FM SWE_EVENT_CREATE to trigger the work flow. ? should i create new business object? please help me in this.

regards,

Ajay

Accepted Solutions (1)

Accepted Solutions (1)

former_member554978
Active Contributor
0 Kudos

If its just about sending mails then you dont need to create workfow....

You can send mails using this FM: SO_NEW_DOCUMENT_SEND_API1

If you want to send some workitems...Then create a workflow

And in that workflow include the mal step and triggere the workflow based on the FM you said.

Former Member
0 Kudos

Hi swami,.

Thanks for your quick response .

SO_NEW_DOCUMENT_SEND_API1 with this FM, can we send the email to Both SAP inbx and External mail?

regards,

Ajyreddy

bpawanchand
Active Contributor
0 Kudos

Yes you can send for both SAP inbox and Externla mail address y simply populating the receivers parameter and the field REC_TYPE

If REC_TYPE = 'B' then this will send mail to SAP user inbox.

If REC_TYPE = 'U' then this will send mail to external address

former_member554978
Active Contributor
0 Kudos

Yes you can send ...

Please read the Documentation which is available in the FM itself.

vijy_mukunthan
Active Contributor
0 Kudos

Hi Ajyreddy

Yes you can send mail to both SAP inbox and to external with this FM. In the receiver paramater REC_TYPE = 'U' for external and REC_TYPE = 'B' for SAP inbox.

Regards

vijay

Former Member
0 Kudos

Hi ,

Thanks Swami , Pavan and Vijay.

regards,

Ajay reddy

Answers (0)