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

table control

Former Member
0 Likes
398

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.

4 REPLIES 4
Read only

Former Member
0 Likes
381

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

Read only

0 Likes
381

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.

Read only

0 Likes
381

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

Read only

Former Member
0 Likes
381

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