SAP-Sending Mail With XLSX Attachments Using CL_DOCUMENT_BCS.

Before sending an email, all the required configuration for SMTP and mail server in the SAP server needs to be in place. Email sending is an existing method of getting the sap job log or report details. People who receive an email in their inbox will do different operations based on the content in it. Email may contain the description alone or with the attached files in it and this is based on the business need. Sending external email in SAP with attachments like XML, DOC, XLS are the common methodology and now SAP users would like to receive the attachments with XLSX, DOCX - formats as this is the format from MS office 2007. We are going to see in details for how to create XLSX (Generally for four digit file extensions) file attachment and this is the slightly different way than how we do for usual binary XLS attachments in sap external email sending. Why slightly different approach for XLSX attachment from XLS ? XLSX for versions since 2007 MS office, but, XLS is from 2003...