‎2009 Dec 29 12:11 PM
Hi,
We are sending attachments by email using set of cl_document_bcs -> methods.
When we try to send 2007 document files as attachment,i.e docx,xlsx files.The file type is getting truncated.
The reason is that the attribute of this method i_attachment_type is of type SOODK-OBJTP of length 3 chars only.
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = v_extension_type
i_attachment_subject = v_attachname
i_att_content_hex = it_content_binary.
Any suggestions to overcome this issue.
Thanks for your help.
Regards,
Keerthi
‎2009 Dec 29 12:39 PM
Even i have tried the same. Try using the 2003 formats only. Is 2003 format not working for you???
Regards,
Lalit Mohan Gupta
‎2009 Dec 29 12:42 PM
‎2010 Aug 18 5:32 PM
Have a look at note 1459896 - BCS: Support for four-digit file name extensions
https://service.sap.com/sap/support/notes/1459896
it has sample source code.
‎2011 Aug 01 5:12 PM
Hello, I just pas through that problem.
1. I applied note 1433744, to allow to have file name with the proper extension "XLSX".
2. When using the method add_attachment, the parameter i_attachment_type = 'EXT'.
3. Be sure to have the parameter I_ATTACHMENT_SIZE setproperly
Doing so, I have been able to have the right filename as attachment and been able to open the file without error in the Excel 2007.
Regards
dstj
‎2020 Oct 29 10:37 PM
Hi ,
How do you calculated the I_ATTACHMENT_SIZE . Can you share your sample program . I am having a similar issue with .
regards
Sanjib