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

Return Sales Order

Former Member
0 Likes
424

Hello all.

I am trying to create a return sales order from invoce . I was using 'Bapi_CustomerReturn_create'. Can any one please help me , from which table i get the data for filling in this bapi and creating the return sales order . In doc_type what i have to pass , ?? .

Thanks in advance ,

Nitin Kumar Upadhyay

Hello all.

I am trying to create a return sales order from invoce . I was using 'Bapi_CustomerReturn_create'. Can any one please help me , from which table i get the data for filling in this bapi and creating the return sales order . In doc_type what i have to pass , ?? .

Thanks in advance ,

Nitin Kumar Upadhyay

1 REPLY 1
Read only

SujeetMishra
Active Contributor
0 Likes
389

Hi Nitin,

Instead going for BAPI_CUSTOMERRETURN_CREATE, use BAPI_SALESDOCUMENT_COPY, just pass the invoice number that it copies everything correctly and to get some details and to change the order you can use BAPI_SALESORDER_CHANGE.

And if still you want to go with BAPI_CUSTOMERRETURN_CREATE then below us the sample code for it.

http://scn.sap.com/message/7351586#7351586

Regards,

Sujeet