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: 

me21n transaction short text edit

Former Member
0 Kudos

Hi,

in Me21n transaction,if we change the material description(short text),it should give the warning message.can i use exit_sapmm06e_012.is that right?

if anybody have any idea please help me out.

Regards,

Kavitha

20 REPLIES 20

Former Member
0 Kudos

Hi Kavitha,

You can test by writing code in that exit, whether this is the one which will work for you or not.

0 Kudos

Hi,

I have tried that user exit.its not working..any idea?

0 Kudos

Hi,

Did you assign the enhancement MM06E005 to project and activated the enhancement in the project? This is mandatory. Also dis you place break point in the exit and see if the exit is being triggered or not?

Check out the BADI ME_PROCESS_PO_CUST method PROCESS_ITEM also.

Thanks,

Vinod.

0 Kudos

hello,

after changing short text field in me21n,i am displaying error message,if i press enter it should bring the old values that is from material master.how to reset this field?please help me if u know.

Regards,

Kavitha

0 Kudos

Hi kavitha,

Place the breakpoint in enhancement MM06E005 of "EXIT_SAPMM06E_008" or EXIT_SAPMM06E_012.

check which one is trigger @ time of short text enter.

also check that enhancement is activated in project.

In this Exit, you store old value in one local variable and also place the error message

then assign old value to short text field.

Regards,

Kunjan

0 Kudos

Hi,

If i press enter it triggers to mm06e008..but there i couldnot access tekpo structure which has short text field txz01.

Regards,

kavitha

0 Kudos

in mm06e012 i am raising error.but there sy-ucomm value while pressing enter is not populated

0 Kudos

Check BADI ME_PROCESS_PO_CUST method PROCESS_ITEM. If I remember right, it is called 2 times, at PBO and PAI so that you can do what you want.

Implement the BADi, check in debugger .

Regards,

Clemens

0 Kudos

Hi,

Thanks everybody.

I coded in exit 012 to raise the error...its working..after showing the error if i press enter short text field is not cleared.if i clear and give another matnr it brings short text corretly.

my req is if i press enter after showing error it should bring short text which i edited before(i raise the error for editing short text ie it should not be edited).

if i clear short text and press enter it goes to exit 007..there i have a value in my local variable..i could not pass it to me21n screen short text field ...

0 Kudos

Hi,

Thanks everybody.

I coded in exit 012 to raise the error...its working..after showing the error if i press enter short text field is not cleared.if i clear and give another matnr it brings short text corretly.

my req is if i press enter after showing error it should bring short text which i edited before(i raise the error for editing short text ie it should not be edited).

if i clear short text and press enter it goes to exit 007..there i have a value in my local variable..i could not pass it to me21n screen short text field ...

0 Kudos

Hi Kavi,

BADI ME_PROCESS_PO_CUST method PROCESS_ITEM

Regards,

Clemens

0 Kudos

Hello Clemens,

I have tried this badi also..But it does not get triggered when i change the material description.

0 Kudos

Hi Kunjanshah,

In Exit 012.it has tekpo structure in tables parameters.i have raised the error message by putting code there.i have short text value in my local variabe.if i move to tekpo-txz01,its not updating in me21n screen.i think i should write this move stmt in exit which has tekpo structure as changing parameter,am i right?is there any user exit available for this particular thing?

Regards,

Kavitha

0 Kudos

I don't think so. As Clemens Mentioned, this BADI method get triggered whenever you change the Short text (Material Description).

0 Kudos

Hi vinod,

Its implemented thrice.will that be the reason for not triggering?

Regards,

Kavitha

0 Kudos

This BADI cannot be implemented Multiple times.(See the option "Multiple Use" in SE18 is not selected). You may have to incorporate your code in the existing active implementation.

0 Kudos

Hello vinod,

By using this badi i got the error.may i know which methos will trigger while pressing save button.i tried by putting break point in all the methods in this badi..please help me if u know

0 Kudos

Hi,

if i changes anything in short text i am getting error.its working fine..and i passed original value to short text field by using set data method.but this error is still remains in status field in me21n.anybody know how to remove the error from status field in me21n?

0 Kudos

How you are populating the Error/Warning message ? You should use Macros "mmpur_message_forced" (for Creating messages) & "mmpur_remove_messages_by_id" (For removing messages). To use these macros, you should add the include in the BADI implementation.

include mm_messages_mac.

See the Sample code of the BADI method from transaction code SE18.

0 Kudos

if i press enter after giving the correct value the error still there in error log.i tried that macros..i wrote the macros to remove messages in process_item method..if i press enter after giving the correct value this badi is not getting triggerede...any idea?