I am using FM "SO_NEW_DOCUMENT_ATT_SEND_API1" for sending mails. I have to write a COMMIT WORK after the FM execution, since the mails are not going unless COMIT WORK is written. I am writing this code in one enhancement, and I feel its risky to write a COMMIT WORK. Is there any other solution to send mail so the COMMIT WORK is avoided.
I tried with class CL_BCS for which also COMMIT WORK is required.
Thanks and regards,
Edited by: madhuri sonawane on Oct 11, 2011 9:25 AM