If you need to develop an abap program to send an email with an attachment, the problem is that when you use the function SO_DOCUMENT_SEND_API1 or the method CREATE_DOCUMENT of class CL_DOCUMENT_BCS, the attached document name is limited to 50 because of the data element SO_OBJ_DES.
I don’t think there is a solution using the function SO_DOCUMENT_SEND_API1, but there is a very simple solution using the class CL_DOCUMENT_BCS :
Juste use the parameter i_attachement_header of the method add_attachment. You ave just to add a line in this table, and to move the document name in this title.
This document was generated from the following discussion: The specified item was not found.