I have a requirement where while creating return sales order with reference system should propose total delivered quantity instead of quantity in original sales order.
I tried to copy routine 151 in VOFM but after the changes proposed quantity in return sales order is appearing as addition of original sales order quantity and total delivered quantity.
Original sales order is having quantity = 100
total delivered quantity = 45.
default proposed return sales order(with reference) quantity = 100 (here system should propose 45 not 100)
In copy routine if I change VBAP-KWMENG to 45 then in return sales order system is proposing 45 + 100 = 145 but I need system should only propose 45.
I had searched the community but no where I found the solution.