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: 

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

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

former_member755502
Participant
0 Kudos

Hi,

You can handle screen elements' properties through SCREEN table.

Thank you.

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Nandha

I test that.

Former Member
0 Kudos

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

Former Member
0 Kudos

Very good !!

That's work.

Thanks Nandha !

Former Member
0 Kudos

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