08-13-2015 8:39 AM
Hi all,
My requirement is blocking on vendor in XK05 t-code, that vendor used to created the purchase order in ME21N, that time am save the
po, to the display the error message 'This vendor is not created the purchase order, it is contain block list''.
How to implemention this scenario.
Thanks
Achuth
08-13-2015 9:04 AM
If you lock the vendor with XK05, ME21N should already raise an error during input of vendor id. Could you elaborate your scenario ?
Hint: For non standard behavior, classic solution is adding your check in an implementation of BAdI ME_PROCESS_PO_CUST (for vendor use methods PROCESS_HEADER (at input) and/or CHECK (at save).
Regards,
Raymond
08-13-2015 9:04 AM
If you lock the vendor with XK05, ME21N should already raise an error during input of vendor id. Could you elaborate your scenario ?
Hint: For non standard behavior, classic solution is adding your check in an implementation of BAdI ME_PROCESS_PO_CUST (for vendor use methods PROCESS_HEADER (at input) and/or CHECK (at save).
Regards,
Raymond
08-13-2015 9:10 AM
Hi Achuth kumar,
You can select SPERM(Pur. block POrg) field from LFM1(Vendor master record purchasing organization data) table to check if vendor is blocked for that purchase organization in ME_PROCESS_PO_CUST badi in IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER method. If SPERM is not initial then give the error message so that PO will not get create and will give error message.
Regards,
Pravin
08-13-2015 9:10 AM
Hello,
Please try to use the customer exit EXIT_SAPMM06E_016.
Thank you.
Best regards,
Christophe
08-13-2015 9:18 AM
Raymond is right, if the SPERM field has a X then SAP automatically issues messages in purchase order creation
If the X is in LFA1-SPERM then you get the message ME 022
if the X is in LFM1-SPERM field then you get the message ME 023