2010 Aug 06 10:46 AM
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.
2010 Aug 06 10:52 AM
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
2010 Aug 06 10:53 AM
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