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: 

hiding a field in ALV

Former Member
0 Kudos

Hi

i have created an ALV with series group 20(domestic) and 21(export).my question is that i need a field NETWRIC when i select the series group 21 in the input field and i dnt need it when i use 20 in series group.i like to know is there any way to hide the field

5 REPLIES 5

Former Member
0 Kudos

hi use ..

if group = 21.

it_fieldcat-no_out = 'X'.

endif.

0 Kudos

HAI VENKAT

WHERE TO USE THOSE

Former Member
0 Kudos

HI,

when u prepare a manual field catalog only u can go for the hiding a field, when ever u r using the group 21 use conditional statement in it use no_out field as 'X' then u will be reciving the desire output

byee

Former Member
0 Kudos

Hi,

try no_out = 'X' or tech = 'X' for permanent hiding.

Former Member
0 Kudos

Hi,

You can do as below :

Once your fieldcatalog is build.



loop at gt_fieldcat into gs_fieldcat.

if  group = 'X'.
if gs_fieldcat-fieldname = 'NETWRIC'.
  gs_fieldcat-no_out = 'X'.
  gs_fieldcat-tech = 'X'. "Using this column will not be displayed in change layout also.
modify gt_fieldcat from gs_fieldcat.
clear : gt_fieldcat, gs_fieldcat.
endif.
endif.

endloop.

Thanks,

Sriram Ponna.