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: 

User exits for t-code ME21N

Former Member
0 Kudos

Dear Experts,

During my searching in user exit for t-code ME21N and i have requested a warning message when i enter qualification expired vendor number, which is the user exit that work effectively for vendor number entering not saving in t-code ME21N ??

Best Regards  

8 REPLIES 8

SandySingh
Active Contributor
0 Kudos

Use BADI ME_PROCESS_PO_CUST  OR

Userexit EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving

Regards

Sandy

Former Member
0 Kudos

Thanks for your response, so, can you tell me the steps to which include i have to put my code ???

0 Kudos

Hi

Use the BADi -BADI ME_PROCESS_PO_CUST , Method - PROCESS_HEADER.


Go to SE19, then create an implementation for  the above BADI and in the method PROCESS_HEADER you can write your code.



DATA :  lw_header TYPE mepoheader.


CALL METHOD im_header->get_data

           RECEIVING

             re_data = lw_header.


* check lw_header-lifnr for vendor details and write your code warning message


INCLUDE mm_messages_mac.


mmpur_message  'W'

                              < Message Class>

                               < Message No>

                               < Additional Info>

                                 < Additional Info>.

Let us know, if it helps

0 Kudos

Which include??? There is only one include  ZXM06U43 in Function module EXIT_SAPMM06E_012


Regards

Sandy

Former Member
0 Kudos

it's solved and my messages for vendor expiry was shown, but the include is include ZXM06U36 in Function moduleEXIT_SAPMM06E_006 <<< FYI Sandy .


Atul Mohanty


For this Badi to be honest i didn't try because i don't work by using Badi, if you have any documentation to how to use it and bush messages it will be new knowledge.


Thanks Gents..



Best Regards     

0 Kudos

Can you close the question with correct and helpful answers.

Regards

Sandy

Former Member
0 Kudos

The icon is not show.. strange

0 Kudos

Seems you did not check the "Mark this discussion as a question" when creating the discussion...