Question:
how can i hide a column in alv
from displaying it in the alv grid
through program.
thanks in advance.
Answer:
Hello,
You can make the TECH field in the fieldcatalog as 'X'.
For example:
Suppose, in your field catalog you have 2 fields as A and B and column B you want to hide. Then your code should be something like this:
If lst_fieldcatalog-fieldname = 'B'.
lst_fieldcatalog-tech = 'X'.
endif.
Reg,
Pankaj
Answer:
TECH means you cannot subsequently re-display it.
NO_OUT allows for re-display.
My personal faves are:-
ls_fieldcat-do_sum
ls_fieldcat-outputlen
ls_fieldcat-hotspot
ls_fieldcat-coltext
ls_fieldcat-no_merging
ls_fieldcat-icon
ls_fieldcat-emphasize
ls_fieldcat-tech
ls_fieldcat-no_zero
ls_fieldcat-no_out
ls_fieldcat-key
_________________
The Doc
Magna Grand Docot of the Tuly Idiot Order
2007 Basic Rules