Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_CUSTOMERRETURN_CHANGE - **reducing** Quantity

Former Member
0 Likes
789

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

3 REPLIES 3
Read only

Former Member
0 Likes
663

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.

Read only

0 Likes
663

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

Read only

Former Member
0 Likes
663

Self-answered....