How can we assign a Value Contract to a Sales Order created with reference to a Quotation? I was unable to assign Value Contract to Sales Order and hence assigned it to Quotation. How can we update release amount in Value contract if the amount is changed in sales order? Can anyone please help me with this.
The solution to this is as follows: We got this working for a Value contract > quotation > sales order = S135 update on sales order save.
SAP uses a program called RMCSS135 which does the update of S135 when a sales order is placed.
There are 4 critical fields that SAP uses during Contract to Sales order for S135 in this program RMCSS135
VBAP-WKTNR Value contract no.
VBAP-WKTPS Value contract item number
VBKD-WKWAE Value contract currency
VBKD-WKKUR Exchange rate in value contract currency
If these fields are BLANK on your sales order then the Value contract doesnt get updated.
Create your copy control between your value contract and quotation and your quotation and order
SAP will pass the above field values from your contract into your quotation, as per standard.
What wont happen is these four field values being passed from the quotation to order (as it's not a contract as the originator document)
Do the following:
In a copy control routine pass the values from the quote to the order for the two VBAP fields
Use MV45AFZZ userexit_Move_field_to_vbkd to pass through the values for the two VBKD fields from the quotation to the sales order
Now RMCSS135 has the values in the sales order and on save, you get the update to S135
I have to create a Sales Order with reference to a Quotation and then assign Value Contract to the Quotation. The Document flow is Value Contract -> Quotation -> Sales Order. Can we update the release amount in Value Contract when the amount in Sales Order is changed? I have checked that value contract release amount is stored in table s135. Can we update table s135 in user exit/program.
Your explanation is not clear. In standard, system will allow you to have copy control between Contract and Sale Order and not sure, how your system settings is. If your expectation is if you update any data / value in the subsequent document (sale order), the same should copy to preceding document (Value Contract) which is not possible. Perhaps, you need to explain what is the business requirement.