09-24-2008 7:08 AM
hi ,
i have displayed data using method set_table_for_first_display of class CL_GUI_ALV_GRID.
not i have a requirement to provide the functionality to save the variant in alvtoolbar to save the variant so that user can display the required fields only.
we have the variant functionality were user can select the required fields but how can we save that variant?
regards
vijay
09-24-2008 7:15 AM
if you provide the following option then you will be able to save the variant.
call method grid->set_table_for_first_display
exporting
is_layout = layout "This is required
is_variant = variant "This is required
i_save = 'U' " X or A also possible "This is required
i_structure_name = 'I_ALV'
changing
it_outtab = i_alv[]
it_fieldcatalog = fieldcat[].
09-24-2008 7:16 AM
ur ques is not clear...
variant can be saved at selection-screen after giving u inputs....
If ur ques is abt layout,after executing the report in the list layout option u can choose the required fields....