2023 Apr 06 8:46 AM
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?
2023 Apr 06 9:05 AM
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).
2023 Apr 06 9:05 AM
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).
2023 Apr 06 9:43 AM