cancel
Showing results for 
Search instead for 
Did you mean: 

Extend ALV Excel Export to specific column variant

Former Member
0 Kudos

Hi,

the ALV component offers the possibility to export its table contents to Excel.

I would like to implement a second export "variant" that exports only a particular subset of columns of this ALV table.

Can you imagine the right approach, perhaps by adding this "variant" to the original Export button context menu (default button: "Export"-> "Export to Excel")?

Thanks in advance,

@sap1

Accepted Solutions (0)

Answers (1)

Answers (1)

daniel_humberg
Contributor
0 Kudos

I think it will be hard to add another option to the "Export Button".

What you can do is to create a new ALV View. This view will be available in the dropdown "View" next to the button "Export".

In this view, you define which columns shall be available.

Then, the user has to select the ALV view before exporting, so that the right set of columns will be shown.

To enable different views, use


  ir_table->if_salv_wd_std_functions~set_view_list_allowed( abap_true ).