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: 

To display the vendor is blocing list are not

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

christophe_hu2
Participant
0 Kudos

Hello,

Please try to use the customer exit EXIT_SAPMM06E_016.

Thank you.

Best regards,

Christophe

JL23
Active Contributor
0 Kudos

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