Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

sales order quantity control

Dear Guru's

kindly help me in solving below requirement from client.

we have sales order creation with reference to quantity contract.In Quantity contract ,100 quantity is given and with reference to contract at the time of sales order creation if user changes quantity from 100 to 150 or more than 100 then system is giving Information message and allowing user to create sales order. so kindly guide me how to control it and is there  any standard solution for this.

Target qty of reference: 100.000 B31 (total referenced: 150.000 B31)

Message no. V1501

Thanks to Guru's.

Thanks & Regards


va01.png (66807 B)
va41.jpg (96620 B)
Former Member


my previous reply would only work for value contract ... for quantity contract you can´t change warning message V1501 to error message as it is hardcoded (oss note 1486547) unless you change standard code which is not a good approach.

If, at the end, what you want is prevent users from creating sales ordes as per your requirement, use userexit MV45AFZZ form USEREXIT_SAVE_DOCUMENT_PREPARE to control quantities and send error message when required. Ask for the help of an abaper.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question