We understand that by BUS2012.RELEASE method we can release PO (passing release code and PO#).
Further, this method uses BAPI_PO_RELEASE function module to release the PO.
I have a custom workflow which is running fine for one year now (hence using comit is ruled out).
We have recently moved new PO document type to production.
All POs with these document type get stuck in release step and need to be released manually using SWPC.
The uniqness about this document type that it has 'Invoicing Plan' in PO.
I'm unable to diagnose reason behind workflow getting stuck in release step.