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

Customer Screen (Not grey when we are not in modification)

Hi,

I have a customer screen for me23N ( SAPLXM06 - 0111 )

The field in this customer is always modifiable.

How can i do, for disable the modification in this field when we are not in modification please?

Thanks for your help and your reply.

Spawnrad

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 08:02 AM

    Hi,

    Here

    'EKPO_CI-PAUTH'

    is custom field. U can replace u r field here.

    and i_aktyp variable is PO change indicator

    i_aktyp = 'A'

    means indicator for display PO .

    Regards,

    Nandha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 07:38 AM

    Hi,

    You can handle screen elements' properties through SCREEN table.

    Thank you.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 07:52 AM

    Hi,

    Use such logic like below

    Export the change variable from user exit FM EXIT_SAPMM06E_016

    EXPORT i_aktyp TO MEMORY ID sy-uname.

    and import the variable and validate in screen 111 PBO like below

    *&---------------------------------------------------------------------*
    *&      Module  STATUS_0111  OUTPUT
    *&---------------------------------------------------------------------*
    *       text
    *----------------------------------------------------------------------*
    module STATUS_0111 output.
    IF ( ( sy-tcode = 'ME21N' ) OR
         ( sy-tcode = 'ME21' )  OR
         ( sy-tcode = 'ME22N' ) OR
         ( sy-tcode = 'ME22' ) OR
         ( sy-tcode = 'ME23' ) OR
         ( sy-tcode = 'ME23N' ) ).
     CLEAR i_aktyp.
     IMPORT i_aktyp FROM MEMORY ID sy-uname.
      LOOP AT SCREEN.
        IF screen-name = 'EKPO_CI-PAUTH'.
         IF i_aktyp = 'A'.
              screen-input = '0'.
              MODIFY SCREEN.
         ENDIF.
        ENDIF.
      ENDLOOP.
    ENDIF.
    endmodule.                 " STATUS_0111  OUTPUT

    Try this .it is working fine.

    Regards,

    Nandha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 07:54 AM

    Thanks Nandha

    I test that. 😉

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 08:04 AM

    Very good !!

    That's work.

    Thanks Nandha !

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 09:06 AM

    Hi,

    In order to disable the fields in the additional data tab .

    write login in the include ZXM06O01 as shown below

    if sy-tcode = 'ME23N'.

    LOOP AT SCREEN.

    IF screen-name = 'EKPO-custom field'.

    screen-input = 0.

    ENDIF.

    MODIFY SCREEN.

    ENDLOOP.

    Put break point and check the status.U will be able to see the field in disable mode. for tcode me23n.

    Thanks,

    Venu

    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.