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 to change a private atribute of class CL_GUI_ALV_GRID

Former Member
0 Kudos

I would like to influence attribute"M_DISABLE_SAVE" in this class.

Is it possible? If so, how can I do it.

Thanks.

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please let us know the actual requirement...

Thanks

Naren

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

If you don't want the user to be able to save a layout of the grid, then make sure to pass "SPACE" to the I_SAVE parameter of the SET_TABLE_FOR_FIRST_DISPLAY method of the class CL_GUI_ALV_GRID.

CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
           I_SAVE                 = space    "<--- do not allow to save layout
      CHANGING
           IT_OUTTAB       = I_ALV[]

Regards,

Rich Heilman