Application Development 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: 

How do you add option to save ALV to local file with CL_SALV_TABLE=>FACTORY

former_member498250
Participant
0 Kudos

Looking to add one more feature to sample program used for creating an ALV report of Table field names and attributes ( topic SAMPLE ECC 6.0 program to display table structure ) [https://docs.google.com/document/edit?id=1mhPQ9jj2rUpijHfFh7xjldwc9x3EaPORppPaQd5-kqI&hl=en#] I would like to learn how to add the icon to download the report to a local file. I reviewed the SAP sample program SALV_DEMO_TABLE_COLUMNS but can not fiigure out how to add this feature. Thanks

Edited by: Bob Ackerman on Oct 17, 2010 8:31 PM

3 REPLIES 3

Former Member
0 Kudos

See Sample program SALV_DEMO_TABLE_FUNCTIONS.

0 Kudos

I already looked at sample program SALV_DEMO_TABLE_COLUMNS which has the icon and functionality in it. Sample program SALV_DEMO_TABLE_FUNCTIONS does not have this. I spent hours over the weekend trying to understand this and find the way it is handled.

0 Kudos

I found it. Very simple coding addition

data: lr_functions type ref to cl_salv_functions_list.

  lr_functions = r_grid->get_functions( ).
  lr_functions->set_default( abap_true ).

  lr_functions->SET_EXPORT_LOCALFILE( abap_true ).