There may be a scenario in which a particular user will wants the column to be visible and invisible for certain users. Now let us see how to hide the columns.
This component designed for the ALV with drop down and ALV with button is modified further.
The class for the column contains a method called set visible using which we can set the visibility of the column.This method by default will have the visible property as visible which we have to make none in order to make the column invisible. We have already obtained the object reference to the column button using which I am going to hide the column.
Using the object reference to the column call the method set visible and set the visible property as none.
Test the output:

0 Comments:
Post a Comment