Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Email problem - CL_BCS

Former Member
0 Likes
410

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

2 REPLIES 2
Read only

UweFetzer_se38
Active Contributor
0 Likes
366

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

Read only

Former Member
0 Likes
366

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?