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: 

editing of zcustom fields in ME23N on change

Former Member
0 Kudos

i have developed zcustom fields in header lavel in ME23N thru userexit MM06E005.but when i click on change, all fields comes in change mode except those zfields.

how can i sink my zfileds with those standard fields on change?

or how can i put those zfields in change mode on click of change from me23n.

same think haapens on ME22N , after save, all fields turns grey(disable) mode except my zfields.

how can i sink my zfields with standard fileds?

7 REPLIES 7

Former Member
0 Kudos

Hi prem sharma,

I think you have created a screen using screen no : 101. Follow the below steps :

1)Create a variable W_TRTYP LIKE T160-TRTYP in the TOP include "ZXM06TOP".

2) Assign the following W_TRTYP = I_TRTYP in function exit EXIT_SAPMM06E_006.

3)Create a PBO module in the include "ZXM06O01" and make input/display based on the value of W_TRTYP,for example :


*W_TRTYP value describes 
"A   Display

"V   Change

"H   Create
  IF W_TRTYP = 'A'."Display Mode

    LOOP AT SCREEN.

      IF SCREEN-NAME = 'WA_EKKO_CI-ZZBNO'."Say this is the customer field

        SCREEN-INPUT = 0.

        MODIFY SCREEN.

      ENDIF.

    ENDLOOP.

  ENDIF.

Thanks & Regards,

Rock.

0 Kudos

where i will find the this TOP include "ZXM06TOP" to declare the field?

i mean i am not getting this top in my exit? where i will get it?

0 Kudos

Hi,

That include is available in the same Function Group "XM06". Do the following :

Goto SE37>put FM EXIT_SAPMM06E_006>in the Menu "Goto"-->Global data.

Double click on ZXM06TOP. If it is not created then system will ask you whether to create the object, click on Yes and write the code accordingly.

Thanks & Regards,

Rock.

0 Kudos

thanks for reply.

but this code is not working.

when i open me23n and click on change button, my zfields remains in dispaly mode only while others changes to edit mode.

Edited by: prem sharma on Oct 15, 2010 12:29 PM

0 Kudos

OMG, great!. You just copied and pasted the code, you even donot bother what the code is doing?. Write the code for Change & Create mode,wait I dont think you have got what am saying, I will write the code for u:



IF W_TRTYP = 'A'.

    LOOP AT SCREEN.

      IF SCREEN-NAME = 'WA_EKKO_CI-ZZBNO'.

        SCREEN-INPUT = 0.

        MODIFY SCREEN.

      ENDIF.

    ENDLOOP.

ELSE.

    LOOP AT SCREEN.

      IF SCREEN-NAME = 'WA_EKKO_CI-ZZBNO'.

        SCREEN-INPUT = 1.

        MODIFY SCREEN.

      ENDIF.

    ENDLOOP.

ENDIF.

Thanks & Regards,

Rock.

0 Kudos

i have used this code for display, change and create. n i have tried ur this code also.but its not working.

there is no value at runtime for w_trtyp.

i put the breakpoint and checked in debugging mode, w_trtyp is blank in every action.

Former Member
0 Kudos

Done, thanks