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: 

How to make the custom field enable/disable in ME21n/ME22n/ME23n trans

Former Member
0 Kudos

Hi Experts,

I need help.

I have created one custom field in the transaction ME21n/ME22n/ME23n under customer data 2 tab. But my problem is the field is always in enable (means editable only) even in Display mode. How to make the field is non editable in display mode and editable in change mode.

I have tried by putting some logic to make that field to change alternatively according to change/display button. And it is working fine but if we click any othe button , this field is becoming editable even in display mode.

How to make this field to behave as standard fields?

Please reply me <removed by moderator>

Thank you in advance.

Best Regards,

Divakar.

Edited by: Thomas Zloch on Mar 2, 2012

5 REPLIES 5

Former Member
0 Kudos

Hi Divakar.

Have you tryied change the field characteristic on loop at screen in PBO?

Former Member
0 Kudos

Hi Divakar.

Have you tryied change the field characteristic on loop at screen in PBO?

Former Member
0 Kudos

Hi,

Please use the below link.

<removed by moderator>

Moderator message: please don't post just link(s) without explaining the relevance.

Edited by: Thomas Zloch on Mar 2, 2012

Former Member
0 Kudos

If you have BADI implimented for custom tabs then you can do this in method ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM

lv_changeable = im_header->is_changeable( ).

LOOP AT ch_fieldselection ASSIGNING <fs>

IF lv_changeable IS INITIAL.

<fs>-fieldstatus = '*'. " Display

ELSE.

<fs>-fieldstatus = '+'. " Change

ENDIF.

endloop.

0 Kudos

I have tried this one, but it did no work.