10-18-2010 1:30 AM
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
10-18-2010 7:59 AM
10-18-2010 3:00 PM
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.
10-18-2010 3:20 PM
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 ).