Question:
Hi BW Guru's
We have 2 process chains say , PC1 & PC2. PC1 is weekly and is scheduled on "Friday". PC2 is monthly and is scheduled on 1st of every month.
But when its Friday on 1st of any month, then only monthly chain PC2 should be executed. Due to this overlapping , we are scheduling these chains manually
How can I automize it to skip weekly job if its 1st of a month?
Thanks & regards
SSS
Answer:
One quick fix :
put an abap program at the beginning of chain PC1;
this abap will check if the system date is 1st of the month and abend if this is the case, causing the chain PC1 to fail.
Alternatively, you can create a chain PC3 launching this abap that would then launch PC1 or PC2 depending on the same test.
Ch
Answer:
Hi CHC,
Thanks a lot for these 2 solutions.
Solution 1 is clear , but it will show red status in log. Though there should not be any problem with this red status , I would like to go for 2nd solution.
But how to schedule only one of the two chains , PC1 or PC1 , how can I schedule conditional execution in a chain?
Thanks and regards
SSS
Answer:
You can launch a chain from an abap using RSPC_API_CHAIN_START.
PC3 will launch weekly abap ZLAUNCH.
This abap ZLAUNCH will check wether it needs to launch PC1 or PC2 ; that's all.
Ch
Answer:
Thanks CH,
This will really help me to automize the jobs.
Thanks and regards
SSS