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.