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

hide ALV field

Former Member
0 Likes
4,890

can we hide a field in ALV...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,883

hi,

set this filed <b>

no_out

</b> as <b>

'X'

</b> in field catlog.

Rgds

Reshma

can we hide a field in ALV...

5 REPLIES 5
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,883

Hi,

Yes you have to use the filed catalog for that. In the strucutre( of type LVC_S_FCAT) you have somthing called NO_OUT you just need set it to 'X' to make the filed dissappear. Check out the exapmles in the package SLIS.

Best Regards,

Sesh

Read only

Former Member
0 Likes
1,883

have a look at these:

ALV using OOPS:

ALV using REUSE* FMs:

Sudha

Read only

Former Member
0 Likes
1,883

chk these 2 options in fieldcatalog

<b>NO_OUT</b>

If you set this field, you hide the relevant column in the list. Nevertheless, the column is available in the field selection and can be interactively selected by the user as a display field. The ALV displays the contents of hidden fields on the detail screen for a row in the grid control.

wa_fieldcat-no_out = 'X'.

<b>TECH</b>

If this field is set, the relevant field is not displayed on the list and cannot be shown interactively. The field is only known in the field catalog. (For example, it must not be specified as a sorting criterion).

wa_fieldcat-tech = 'X'.

Message was edited by:

Chandrasekhar Jagarlamudi

Read only

Former Member
0 Likes
1,883

Hi,

Once u have created the field catalog using LVC_FIELDCATALOG_MERGE function, u can write the following piece of code:

LOOP AT T_FIELDCAT (this is ur fieldcatalog table)

IF T_FIELDCAT-FIELDNAME = 'MATNR'.

T_FIELDCAT-NO_OUT = 'X'.

MODIFY T_FIELDCAT INDEX sy-tabix.

ENDLOOP.

Regards,

Himanshu.

Read only

Former Member
0 Likes
1,884

hi,

set this filed <b>

no_out

</b> as <b>

'X'

</b> in field catlog.

Rgds

Reshma