03-23-2015 7:35 AM
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
03-23-2015 7:55 AM
Use BADI ME_PROCESS_PO_CUST OR
Userexit EXIT_SAPMM06E_012 - Check Customer-Specific Data Before Saving
Regards
Sandy
03-23-2015 8:18 AM
Thanks for your response, so, can you tell me the steps to which include i have to put my code ???
03-23-2015 8:27 AM
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
03-23-2015 8:28 AM
Which include??? There is only one include ZXM06U43 in Function module EXIT_SAPMM06E_012
Regards
Sandy
03-23-2015 10:56 AM
it's solved and my messages for vendor expiry was shown, but the include is include ZXM06U36 in Function moduleEXIT_SAPMM06E_006 <<< FYI Sandy .
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
03-23-2015 11:04 AM
Can you close the question with correct and helpful answers.
Regards
Sandy
03-23-2015 11:08 AM
03-23-2015 12:05 PM
Seems you did not check the "Mark this discussion as a question" when creating the discussion...