2009 Oct 09 4:32 AM
Hi,
I use this FM to send e-mail in VA01 for a certain output type. I passed a parameter, COMMIT_WORK with an 'X'. But then when creating sales order upon saving, i got an update terminate. Studying the dump error, it is an error of COMMIT_IN_POSTING. The error explains that is is the invalid commit_work in an update function module. This function module is SO_DOCUMENT_SEND_API1. When I tried to delete the parameter, COMMIT_WORK, i can save the order but then cannot send the e-mail when executing the output type to send e-mail. But the message to be sent is still no entry in queue when checking in transaction SOST.
Please help me in analyzing the cause.
Can you please provide the alternate solution that you have used? Is it through BCS API
2009 Oct 09 4:36 AM
remove commit and use this code:
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.[Send external email from within ABAP program |http://wiki.sdn.sap.com/wiki/x/-dc]
2009 Oct 09 4:48 AM
Thanks for the tip but then I still got a dump, POSTING_ILLEGAL_STATEMENT because of the submit syntax. I put this FM inside a print program.
2010 Feb 02 3:59 AM
This is already solved. I use an alternative solution not this FM.
2011 Feb 22 9:59 AM
Can you please provide the alternate solution that you have used? Is it through BCS API
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |