Application Development 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: 

Hide a column in ALV

former_member220801
Participant
0 Kudos
108

How can I programmatically default a column to be hidden in ALV? But user can choose the field to be shown when he/she changes the layout of grid display.

Thanks!

1 ACCEPTED SOLUTION

Former Member
0 Kudos
80

hi

check for the hide field in the field cat.

U would have to set

wa_fieldcat-no_out = 'X'.

This will help achieve your requirement.

Deepak

4 REPLIES 4

Former Member
0 Kudos
81

hi

check for the hide field in the field cat.

U would have to set

wa_fieldcat-no_out = 'X'.

This will help achieve your requirement.

Deepak

Former Member
0 Kudos
80

in the fieldcatalog try this

wa_fieldcatalog-no_out = 'X'.

Former Member
0 Kudos
80

in the fieldcatalog structure there is one field NO_OUT pass 'X' to that field.

wa_fcat-row = 1.

wa_fcat-....

wa_fcat-....

<b>wa_fcat-no_out = 'X'.</b>

append wa_fcat to it_fcat.

Ramesh.

Former Member
0 Kudos
80

hi gundam,

what happened to my answer , i gave the answer before Deepak, he gave the wrong answer first???