Application Development and Automation 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 collumn from CL_SALV_TABLE

warcsi
Participant
0 Kudos
1,496

Hello

I have an ALV table that needs a lot of additional data to make the selection but I dont want to display all data

how can I go about hiding certain collumns?

1 ACCEPTED SOLUTION

Tomas_Buryanek
Active Contributor
1,428

Little bit of chaining 🙂

lo_salv->get_columns( )->get_column( columnname = 'MATNR' )->set_visible( abap_false ).

If you want to hide many columns, then I suggest to call get_columns once, and from that object get separate columns. So you do not repeat get_columns many times (bit better performance).

-- Tomas --
2 REPLIES 2

Tomas_Buryanek
Active Contributor
1,429

Little bit of chaining 🙂

lo_salv->get_columns( )->get_column( columnname = 'MATNR' )->set_visible( abap_false ).

If you want to hide many columns, then I suggest to call get_columns once, and from that object get separate columns. So you do not repeat get_columns many times (bit better performance).

-- Tomas --

1,428

Thank you kindly

Have a nice day.