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: 

Hide Column in alv grid of factory method

Ravialter
Participant
0 Kudos

Hi All,

I have alv grid using factory method with classes salv* . In grid multiple coloumn and rows .

I want to hide my coloumn which has zero value .

In my grid all column and rows comes dynamically . Now my problem is how to find which column has zero value .

Once i got column with zero value , i know how to hide (using properties false ) .

Pl share if any idea .

thanks in advance .

Regards,


Alter

3 REPLIES 3

Ravialter
Participant
0 Kudos

Hi All,

I think we don't have any direct method .

Now as per my requirement i have done logically to identity value of field when final internal table has been created and  get count that have no -zero for column in  a seperate table .

then go use setting property of column with getting field catalog and hide column .

Regards,

Alter

former_member1716
Active Contributor
0 Kudos

Hi ravi,

The command below helps you in hiding the column during display,

      go_column->set_visible( if_salv_c_bool_sap=>false ).


Before this you have to add the check to find the zero value in the column to satify your requirement.


Regards,

Satish

0 Kudos

hi Satish ,

I alreay mention in question i know about visible .

I am looking any method or FM or direct way rather than writing core logic .

Regards,

Alter