cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional execution inside process chains

RiccardoEscher
Active Participant
0 Kudos

Has anybody a solution for implementing an "if ... else" inside a process chain?

Explanation:

we have about 50 process chains with very complex interdependencies which are triggered by an external job control system; we use therefore chains which contain local chains ("meta-chains");

we need the possibility to execute inside one chain some processes depending on the calendar (end of period processing), i.e. we need the possibility of a branch inside a chain, something like "if file 'flag_end_of_month' exist, execute this step else skip to next process"

We have investigated following possibilities:

- maintain start process with start by calendar (but this is not possible inside a meta-chain, you have to start the local chain with "Start Usind Meta Chain or API" which doesn't offer calendar conditions)

- use an abap which contains calendar processing (but the process type "abap" ends always unconditionally)

- use an external command (quirks!) (this offers a branch, but in the failure case the return code propagates to the rc of the hole chain, which is not good for our job scheduling system.

- create an own process type (has anybody already done something like this

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You can modify the ABAP process type to end with success or failure and use that to branch your process chain.

Former Member
0 Kudos

Hi Riccardo

You could implement an ABAP process raising an event using the function 'RSSM_EVENT_RAISE' with two different parameters dependent of the calendar condition.

This would then trigger the start of one of the two sub chains.

BR

Mikkel