02-18-2011 3:52 AM
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
02-18-2011 4:51 AM
Hi Kavitha,
You can test by writing code in that exit, whether this is the one which will work for you or not.
02-18-2011 5:45 AM
02-18-2011 6:09 AM
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.
02-18-2011 7:53 AM
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
02-18-2011 10:51 AM
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
02-18-2011 12:27 PM
Hi,
If i press enter it triggers to mm06e008..but there i couldnot access tekpo structure which has short text field txz01.
Regards,
kavitha
02-18-2011 12:30 PM
in mm06e012 i am raising error.but there sy-ucomm value while pressing enter is not populated
02-18-2011 2:21 PM
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
02-21-2011 5:34 AM
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 ...
02-21-2011 6:05 AM
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 ...
02-21-2011 8:55 AM
Hi Kavi,
BADI ME_PROCESS_PO_CUST method PROCESS_ITEM
Regards,
Clemens
02-21-2011 11:39 AM
Hello Clemens,
I have tried this badi also..But it does not get triggered when i change the material description.
02-22-2011 5:18 AM
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
02-22-2011 5:37 AM
I don't think so. As Clemens Mentioned, this BADI method get triggered whenever you change the Short text (Material Description).
02-22-2011 5:55 AM
Hi vinod,
Its implemented thrice.will that be the reason for not triggering?
Regards,
Kavitha
02-22-2011 5:59 AM
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.
02-22-2011 7:38 AM
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
02-22-2011 9:47 AM
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?
02-22-2011 10:22 AM
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.
02-23-2011 10:50 AM
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?