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

Using FM GUI_DOWNLOAD

Former Member
0 Likes
1,346

Hi all,

I have developed a custom report which outputs an excel file on the user desktop who executes that report.Now i need to create an additional (second) excel file with almost the same data as the first file.

Im using the FM GUI_DOWNLOAD to create the file.Now if i call the FM twice ,will it create the second file or overwrite the existing one.The file path is same for both files.

BR,

SRM Tech

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
984

Hi,

As said previously, you should name it diferently in order not to overwrite the previous. Your FILENAME consists of the path + name of the file.

Regards,

Bruno

Hi all,

I have developed a custom report which outputs an excel file on the user desktop who executes that report.Now i need to create an additional (second) excel file with almost the same data as the first file.

Im using the FM GUI_DOWNLOAD to create the file.Now if i call the FM twice ,will it create the second file or overwrite the existing one.The file path is same for both files.

BR,

SRM Tech

7 REPLIES 7
Read only

Former Member
0 Likes
984

So long as the filename is different in both cases, you should have no problem.

Rob

Read only

Former Member
0 Likes
984

Hi,

If second file name is same as first file name it will over write other wise it will create a new one

if you want to ask confirmation for over writing you can pass 'X' to confirm_overwrite for GUI_DOWNLOAD

Regards

Krishna

Read only

0 Likes
984

Hi,

The file name means the parameter FILENAME rt?As i said,Im passing the file path is the same,but if i give diffrent file names e.g. C:\Pcard\Output1 and C:\Pcard\Output2 then 2 different files can be downloaded rt?

Read only

0 Likes
984

Hi,

Yes, two different files will be downloaded

Regards

Krishna

Read only

0 Likes
984

Thanks a lot guys!

Read only

0 Likes
984

>

> Hi,

>

> The file name means the parameter FILENAME rt?As i said,Im passing the file path is the same,but if i give diffrent file names e.g. C:\Pcard\Output1 and C:\Pcard\Output2 then 2 different files can be downloaded rt?

Yes.

Rob

Read only

Former Member
0 Likes
985

Hi,

As said previously, you should name it diferently in order not to overwrite the previous. Your FILENAME consists of the path + name of the file.

Regards,

Bruno