2012 Sep 01 3:57 PM
I have created 1 ALV report ,for that fieldcatlog has been created from ALV_fieldcatlog_merge
but now i want 1 column to be deleted from fieldcatalog.
I have used
Loop at it_fieldcatlog into wa_fldcat.
When 'ADRNR'.
wa_fldcat-no_out = 'X'.
Modify ......
Endloop.
This w'll hide the column frm ALV grid but w'll be present in selection but i dont want this field in selection also
How to do this????
2012 Sep 02 4:56 AM
Hi,
U have to all the Records of the table then only you can decide to hide or not.
after checking use
IF ( sy-subrc = 0 ).
ls_fcat-no_out = 'X'. " not displayed, but visible in layout
ls_fcat-tech = 'X'. " not displayed, not available in layout
Modify......
ENDIF.
like this
Gourav.
2012 Sep 03 3:00 AM
Did you try below?
Delete it_fieldcatlog where fieldname eq 'ADRNR'.
Anyway. The best method is to use layouts in ALV. - The parameter with i_variant.