Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2012 at 01:56 PM

    Hi Divakar.

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2012 at 01:56 PM

    Hi Divakar.

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2012 at 01:58 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2012 at 02:55 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.