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: 

Error message in Me21n tcode

geetha_k
Active Participant
0 Kudos

Hi,

we have developed a user exit to get error message when po value is greater than some amount in me21n tcode. am getting error message when entering all items. But when press SAVE button i want that error message also. But am not getting that error message in that time.How i can write a code for that.

5 REPLIES 5

Former Member
0 Kudos

You can use ME_PURCHDOC_POSTED BADI having method POSTED. Do see the parameters of the method.

former_member320332
Contributor
0 Kudos

Hi Geetha,

It means User Exit you are using doesn't triggeres at SAVE in ME21N. So you have to find another Userexit which will trigger at SAVE , can you let us know whichUser Exit you have used now for existing code. May be you can try with MM06E005 it triggers at SAVE.

Regards,

Pawan

0 Kudos

Hi,

Am using User Exit M06E0004 . When items are giving error message is occuring. But when Enter SAVE button i didnt get it.

I want that error message when SAVE also.

0 Kudos

Hi,

Try to add your validation in the enhancement: MM06E005 and Exit: EXIT_SAPMM06E_012

Hope this helps

Regards

Shiva

0 Kudos

Hi Geetha,

For that requirement you have to code in EXIT_SAPMM06E_012 or EXIT_SAPMM06E_013 MM06E005.

EXIT_SAPMM06E_012 : it will get triggered whenever you press HOLD,CHECK or SAVE button

EXIT_SAPMM06E_013 : it will get triggered just before saving the PO.

Thanks & Regards,

Faheem.