‎2008 Jan 11 6:48 AM
Hi Experts,
I am working with module pool program using table control.In table control i have values matnr,description,plant and etc.When i click the download button then the content of table control should downloaded in local file as a text.Pls guide me what are the function module i have to use and what i have to declare.
Pls send step by step procedure.
Regards,
Sudhakaran.
‎2008 Jan 11 6:53 AM
Hi Sudhakaran
Please follow the below mentioned steps,
1) You need not have to declare any addditional internal table if you want all the columns to be sent to text file. You can use the same internal table which you are using for display in your table control.
2) In your PAI say for the OK_CODE 'DOWNLOAD', call the FM GUI_DOWNLOAD by passing the internal table data as in STEP1 and the appropriate File path.
~ Ranganath
‎2008 Jan 11 7:01 AM
Thanks Ranganath,
But the path for the filename should be selected by user.Because we give only the tcode of the object.
User can download into their presentation server and own path.
Is it possible?If then pls guide me...
Regards,
Sudhakaran.
‎2008 Jan 11 7:07 AM
Yes Sudhakaran ... This is possible.
Please provide an user with the option of selecting the file path on the screen, based on the path you can download it.
~ Ranganath
‎2008 Jan 11 6:56 AM
Hi,
What ever the data you are passing to the table control is coming through the internal table, use the same internal table to download data by using FM GUI_DOWNLOAD.
Regards,
Satish