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: 

Save a fine in local PC without giving filename.

Former Member
0 Kudos
136

Hello All,

I know that we can save file in Local sys bye using cl_gui_frontend_services=>file_save_dialog and FM GUI_DOWNLOAD.

Now looping a customer table saving a file in local sys by giving file name. In this case I need to enter the file name for every custoemr and involved manual interaction.

Is it possible that, it will take a customer number as file name and save in local sys path which I will give in first pop-up.

Means, we will give file path in first pop-up for 1st customer and for all customers it should take cust No. as file name.

Pls suggest is this possible and how??

Thanks in advance.

2 REPLIES 2

SuhaSaha
Advisor
Advisor
0 Kudos
64

Instead of selecting the file, use the directory browse popup using CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE.

Once you've the directory with you, simply use the customer name as filename concatenate with the directory & then download the file.

Hope you understand.

BR,

Suhas

rajesh_akarte2
Active Participant
0 Kudos
64

Hi,

you can prepared the filename using concatenate statement.l

e.g.

CONCATENATE filename1 custno into filename.

your filename1 can be 'c:\custfiles\'

Regards,

Rajesh Akarte