Doc flow update for a return PO created
I have a requirement, where I have to create a Purchase order from a return Sales order. This PO must be updated in the document flow of the sales order.
I am currently using BAPI_PO_CREATE1 (Called from MV45AFZZ), the PO is getting generated, but the doc flow isn't. Have used FM SD_DOCUMENT_FLOW_MAINTAIN, but it isn't working. Please suggest a way out.