Application Development and Automation 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: 
Read only

SO_DOCUMENT_SEND_API1 is not sending mail without commit

Former Member
0 Likes
1,389

Hi,

Our requirement is to send a mail for invoice approval with tcode MR90. For this we have developed a layout and print program and assigned in NACE. For mail sending we are using the fm SO_DOCUMENT_SEND_API1. Problem is if we dont use commit in this function module, mail is not sending. If we use Commit then getting Update error. Please suggest alternate way to achieve this.

Thanks,

Sireesha.

4 REPLIES 4
Read only

Former Member
0 Likes
852

Hi

Try to use FM SO_NEW_DOCUMENT_ATT_SEND_API1. be sure you have the right parameter for this.

Read only

Former Member
0 Likes
852

Hi,

Refer this blog.

[Sending mail|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3443] [original link is broken] [original link is broken] [original link is broken];

Regards

HM

Read only

Former Member
0 Likes
852

Hi Sireesha,

Please refer SAP Note : 190669.

FM : SO_DOCUMENT_SEND_API1 & SO_NEW_DOCUMENT_SEND_API1 is not supportive in the updated version.

So refer this note and use BCS_EXAMPLE_# ( # indicates 1 - 8 ).

I have used BCS_EXAMPLE_5 to send the mail with an attachment and my problem is solved.

Hope this note will be helpful for you.

Regards,

Amit Linge.

Read only

0 Likes
852

Thanks for the replies.

With SO_DOCUMENT_SEND_API1 i am able to send a mail attachement by using explicit commit work. But as i am enhancing standard code i need to use implicit commit. I am writing my code in Perform xxx on commit. Please suggest a way to send mail without using commit work.

Thanks,

Sireesha.