Skip to Content

Conditional execution inside process chains

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 😊

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 25, 2004 at 01:21 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 01, 2004 at 02:54 AM

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

    Add comment
    10|10000 characters needed characters exceeded