‎2011 May 09 1:02 PM
Hello Experts,
I created an email with attachment using CL_BCS. the attachment is an XML file to be opened as XLS. In SOST, i can open it automatically as excel file, but when i received it to the external email, i saw that the attachement is TXT and it is an XML file when i tried opening it. Do you have any clue?
thanks,
zryxel
‎2011 May 10 11:49 AM
Hi Zryxel,
have you already tried to pass the Mime-Type and filename to the attachement?
l_attsubject = 'my.xls'.
lo_document->add_attachment( EXPORTING
i_attachment_type = 'XLS'
i_attachment_subject = l_attsubject
... ).
Regards, Uwe
‎2011 May 10 12:49 PM
Thanks. Yes i tried that. one more thing i noticed is that the attachment title is different from what is in the attachment in SOST. SOST got the correct title and can be opened in Excel but the attachment in external email has concatenated date and time .TXT and if you open it,its XML. any clue?