Application Development 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: 

Excel sheet attachment name issue

former_member191296
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

SimoneMilesi
Active Contributor

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...

2 REPLIES 2

SimoneMilesi
Active Contributor

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...

0 Kudos

My bad.

It is working fine.Hence closing the thread.