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: 

saving variant in ALV

Vijay
Active Contributor
0 Kudos

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

2 REPLIES 2

former_member188685
Active Contributor
0 Kudos

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[].

Former Member
0 Kudos

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....