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: 

ALV OO set_table_for_first_display how to add save layout and choose layout buttons

ronaldo_aparecido
Contributor
0 Kudos
503

Hello community

I'm creating an alv with two containers:

I have the button to modify layout:

But I don't have the buttons to select layout and save layout:

Does anyone know how to add these two buttons already with their respective functions?

Thanks

1 ACCEPTED SOLUTION

Eduardo-CE
Active Participant
427

Hello,

Did you add this parameters?

    CALL METHOD g_grid->set_table_for_first_display
EXPORTING
is_variant = gv_variant
i_save = 'X'
4 REPLIES 4

Eduardo-CE
Active Participant
428

Hello,

Did you add this parameters?

    CALL METHOD g_grid->set_table_for_first_display
EXPORTING
is_variant = gv_variant
i_save = 'X'

0 Kudos
427

+ need to fill gv_variant with program name

427

Worked .

Thanks eduardo.cardona2 and sandra.rossi

Sandra_Rossi
Active Contributor
0 Kudos
427

ALV OO is not very clear, I guess you mean CL_GUI_ALV_GRID.