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

Problem with BAPI_CUSTOMERRETURN_CREATE

Former Member
0 Likes
1,950

Dear All,

I have created a program to create Sales Return Oder by calling this BAPI_CUSTOMERRETURN_CREATE and it creates a Sales Order Return succesfully, my problem is that, quantiy is always Zero '0'. I tried to debug and check the content of RETURN_ITEMS_IN-target_qty before it calls the BAPI, it has a quantity. What would be the problem why am I getting zero quantity on the SO created.

Please help.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,197

Hi,

For updating the quantity,

Use REQ_QTY in structure return_schedules_in to update the quantity

and pass item number to the field ITM_NUMBER

Set 'X' to the field REQ_QTY in structure return_schedules_inx

and pass item number to the field ITM_NUMBER

Hope it helps.

Sujay

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,197

The OSS [Note 366265 - How should I fill the BAPI parameters?|https://service.sap.com/sap/support/notes/366265] may help you.

Regards,

Raymond

Read only

Former Member
0 Likes
1,198

Hi,

For updating the quantity,

Use REQ_QTY in structure return_schedules_in to update the quantity

and pass item number to the field ITM_NUMBER

Set 'X' to the field REQ_QTY in structure return_schedules_inx

and pass item number to the field ITM_NUMBER

Hope it helps.

Sujay

Read only

Former Member
0 Likes
1,197

Hi,

Pass the quantity the schedule lines as well. REQ_QTY = '10.000'.

For ur convinience:
item_sl-ITM_NUMBER= '000001'.
item_sl-SCHED_LINE = '0001'.
item_sl-target_qty = '10.000'.
item_sl-REQ_DATE = sy-datum

APPEND item_sl.

May it helps you.

Regards,

DS.