‎2011 Jul 04 9:25 AM
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.
‎2011 Jul 04 9:45 AM
Hi
Try to use FM SO_NEW_DOCUMENT_ATT_SEND_API1. be sure you have the right parameter for this.
‎2011 Jul 04 10:04 AM
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
‎2011 Jul 04 10:32 AM
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.
‎2011 Jul 04 11:10 AM
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.