Hi Shravan,
Just a suggestion, but you can:
- Query table CRMD_ORDERADM_H to get the documents based in your criterias
- Using function module CRM_ORDER_READ to read document flow for your selected orders, and selected the orders you need to fix
- Use function modules BINARY_RELATION_CREATE_COMMIT and BINARY_RELATION_DELETE_COMMIT to make the changes you want to do regarding document flow
There are more options, but check it this can help you to get an idea.
Kind regards,
Garcia