2013 Sep 27 6:09 AM
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
2013 Sep 27 7:49 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |