on 2004 Mar 24 12:33 PM
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
You can modify the ABAP process type to end with success or failure and use that to branch your process chain.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
63 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.