sales order quantity control
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
joan mas replied
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.