Skip to Content

Excel sheet attachment name issue

Hi,

I have created a program to send mails with excel sheet as attachment. Attachment is being sent successfully, I can see in SOST transaction. But the issue is attachment file name is FILENAME_201603129999.222_X.xls.

How can I remove the time stamp which is being added up to both the attachment name and sheet name in excel file? I tried CL_BCS and SO_DOCUMENT_SEND_API1.

I even tried BCS_EXAMPLE_7 program, even this standard program is generating in the same way. How can I set desired filename to the Excel sheet attachment.

Note: This issue is only for EXCEL attachments. Its is working fine for other attachment types.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 22, 2016 at 10:31 AM

    This is not an ABAP problem.

    In fact, the file got the correct name from BCS_EXAMPLE_7 generated mail as you can see

    and choosing to save it

    The time stamp is added by Windows when you try to open the file directly from the 1st screen in sost

    Because windows/excel save a local copy (you find it under "temp" directory) of the file.

    If you try to open it 3 times, one each 10 minutes, the filename changes...


    1.png (13.5 kB)
    2.png (44.3 kB)
    3.png (12.4 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.