‎2011 Feb 24 11:28 AM
Hi everybody,
I am using BAPI_CUSTOMERRETURN_CHANGE to reduce the quantity of an item.
Reason / example:
I have a return document with a few items. i.e. item 280 as quantity 8, but only 2 of them are delivered, so I have to eliminate 6 of the 8 parts of this item.
I can't use the schedule_lines because I don't want to add parts to the item. But when I set TARGET_QTY of the item to 2, the RETURN-Table says that's all ok, but the quantity has not been changed. No, I did not forget to set the 'X' in the x-flag-table
Thanks for helping me
Ralf
‎2011 Feb 24 11:58 AM
Bapi does not change the quantity if you pass the values only in RETURN_ITEMS_IN & RETURN_ITEMS_INX Structures. It updates the values based on field REQ_QTY in table structures SCHEDULE_LINES & SCHEDULE_LINESX.
‎2011 Feb 24 12:17 PM
You got my problem - but I don't have schedule lines for the 6 parts which I have too much in the item. So: How I can REDUCE the quantity of an item?
Thanks, Ralf
Edit: Ooops, updateflag in schedule line = 'U' - solved.
Edited by: Ralf Wenzel on Feb 24, 2011 3:01 PM
Edited by: Ralf Wenzel on Feb 24, 2011 3:01 PM
‎2011 Feb 24 2:25 PM