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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.