Question:
Hi,
We have a report/program which is writing with ALV grid format. We want to hide a field in this report. But we don't want to hide this field manuel. How can i hide this field with ABAP coding ..
For example,
DATA :
lt_ffcta TYPE slis_fieldcat_alv OCCURS 0 WITH HEADER LINE
..
..
..
LOOP AT lt_ffcta.
CASE lt_ffcta-fieldname.
....
WHEN 'MATNR'.
lt_ffcta-seltext_l = lt_ffcta-seltext_m = lt_ffcta-seltext_s =
lt_ffcta-reptext_ddic = 'Product No'.
lt_ffcta-currency = swaers.
is there any code like this : lt_ffcta-invisible or lt_ffcta-hide ???
thanks for helping in advance.
Katsumi Noyano.
Answer:
Hi,
FieldCat attribute:
lt_ffcta-no_out = 'X'.
Regards.
Answer:
Or don't add it to Fieldcat in the first place, if you always want to hide it.
br.
Answer:
Hiding? Based on what condition? Is it based on authority?
I'm assuming that it's based on authority. Then check the relevant authority object and get sy-subrc value for that user. keep a flag if sy-subrc is not equal to zero.
in field catalog, dont append field catalog values if the flag is checked. hope this helps.
_________________
Gladiator.