Hi all,
I have requirement to send mails from BADI.For that i used following function modules-SO_NEW_DOCUMENT_SEND_API1
and
SO_NEW_DOCUMENT_ATT_SEND_API1,
Both of these two function module requires to use COMMIT WORK statement.
But if we use COMMIT WORK statement in BADI a run time error is occuring as its not allowed in BADI.
Can anybody provide solution for this or provide another function module.
Thank you.