I am trying to create Sales Order return with reference toContract, but although the
order gets created, it does not contain reference document information.
The BAPI I am using is BAPI_SALESORDER_CREATEFROMDAT2.
Would someone know which parameters I have to populate and what additional information needs to be sent to BAPI or have any other suggestion
how to accomplish my task?