How to programatically run a process chain synchronously:
To dynamically control some processes, I have a master process chain consisting of 2 "Execute ABAP Programs" in series. Both steps are configured to run a custom program Synchronously. The program looks up a flag in a config table and if set, calls "RSPC_API_CHAIN_START" with i_synchronous = 'X'. However, the call immediately returns (before the subsequent chain has finished running) and the next step runs. This results in both sub-chains running in parallel, and object locks occur.
Is there something broken with RSPC_API_CHAIN_START?
Or do I need to configure something else/extra in the sub-chain to ensure it blocks the RSPC_API_CHAIN_START from returning prematurely?
Version info:
Component | Release | SP-Level |
---|---|---|
SAP_BASIS | 740 | 13 |
SAP_ABA | 740 | 13 |
SAP_UI | 740 | 15 |
SAP_BW | 740 | 13 |