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: 

minimum order quantity issue while creating purchase order

Former Member
0 Kudos

Hello Experts,

If the order quantity is less than the minimum order quantity system is raising a error message while creating a purchase order for ME21N and other.

But we don't want this error while creating the purchase order with transaction WRP1.

in system messages we changed the message warning to error.

Kindly suggest.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

So you could revert back to warning message by default, and execute the check in BAdI ME_PROCESS_PO_CUST in a method like IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM to raise an error message if SY-TCODE is not WRP1 ?

Regards,

Raymond

5 REPLIES 5

madhu_vadlamani
Active Contributor
0 Kudos

Hi Avnesh,

Please check the configuration of this messages from where it is picking.Other option is try with badi

me_porcesss_po_cust and make sure trigger for only me21n.

Regards,

Madhu.

raymond_giuseppi
Active Contributor
0 Kudos

So you could revert back to warning message by default, and execute the check in BAdI ME_PROCESS_PO_CUST in a method like IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM to raise an error message if SY-TCODE is not WRP1 ?

Regards,

Raymond

0 Kudos

thanks for your reply's.

Solved by self.

By using enhancement option i restricted the t-codes without entering into that piece of code.

Regards,

Anvesh

0 Kudos

Hi Avnesh,

Good.It will be good if you mention which enhancement point you used.If some one get the same issue will be useful.

Regards,

Madhu.

0 Kudos

Hi Madhu,

Actually it is warning message in SPRO customization.But functional changed it to Error.

So i restricted in the program by using implicit enhancement for the transaction WRP1 and ME59n

in standard program.

Many thanks,

Anvesh