I am creating a return sales order using the Billing document as reference. I need the data like header data, item data and conditions details from the billing document side and pass it to the new sales order creation.
I tried with the FM's - SD_SALESDOCUMENT_CREATE, BAPI_CUSTOMERRETURN_CREATE. I have passed the billing document in the ref_doc, refobjkey and refobjtype as VBRK but still the conditions and other data are not populating from Billing Document.
Let me know how to handle this situation.