I have a requirement to change the requirment type(VBAP-BEDAE) of the Sales order item to be changed to custom requirment type, when ever the item quantity is changed.
I have used the function module 'RV_SCHEDULING_TYPE_DETERMINE' to determine the scheduling type and then passed the same to xvbap-bedae to update the same for the sales order item in the user exit USEREXIT_SAVE_DOCUMENT_PREPARE.
But as soon as the control is out of the user exit, the value is defaulted to the previous value.
Can any body suggest me as to how to update the VBAP-BEDAE field for a sales order.
Thanks in Advance.