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

export only selected lines

Former Member
0 Likes
798

Hi,

I have the req to download or export only those lines within ALV which are selected

as excel format instead of complete lines,

Thx in advance for your kindly efforts

Friendly Regards

ertas ilahn

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
709

Hi Ertas,

The approach shoud be :

1. Have one field in your internal table for selection.

2. Make the particular field as a check box for selection in ALV fieldcatlog

3. Have a custom button in toolbar for for export to Excel

4. Once the custom button is presses, loop at the internal table of yours and pick up the selected items and export that to excel sheet using GUI_DOWNLOAD.

Hope this helps you.

Thanks,

Arun

3 REPLIES 3
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
709

Hi,

Try creating a button on toolbar and pass the selected data for a new internal table and then download the same.

Read only

Former Member
0 Likes
709

Hello,

You can follow the below steps:

1. In the output internal table, you can add one more field called as mark.

2. In the gui status add one more button for some action.

Once some lines are selected in the entire ALV output, the mark will be set X.

Now when this button is clicked,

Loop at this internal table where mark = X and output them in the form of excel.

Read only

Former Member
0 Likes
710

Hi Ertas,

The approach shoud be :

1. Have one field in your internal table for selection.

2. Make the particular field as a check box for selection in ALV fieldcatlog

3. Have a custom button in toolbar for for export to Excel

4. Once the custom button is presses, loop at the internal table of yours and pick up the selected items and export that to excel sheet using GUI_DOWNLOAD.

Hope this helps you.

Thanks,

Arun