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: 
Read only

Delete column from basic ALV

Former Member
0 Likes
458

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????

2 REPLIES 2
Read only

gouravkumar64
Active Contributor
0 Likes
418

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.

Read only

Former Member
0 Likes
418

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.