cancel
Showing results for 
Search instead for 
Did you mean: 

Process chain If then Condition based on days of the week

Former Member
0 Kudos

Hello Experts:

How are you doing. I have created a master process chain which uses an if then condition to run 2 different process chains based off different days of the week. It executes one process chain from Wednesdays to Sundays and executes another one on Mondays and Tuesdays.

The process chain Decision box was created based off as shown below.

For the formula I have used the following conditions for days of the week by using variables "SYST-FDAYW". The pic below shows the formula for deciding if the day of the week is either Wednesday, Thursday, Friday, Saturday or a Sunday. I created a similar formula for Monday and Tuesday with SYST-FDAYW =1 or 2.

I am getting an error when I execute this process chain.

Could you experts help in determining what is wrong  ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sucheta:

Thank you for your inputs. I tried that first but the process chain failed the consistency check since the process chain needs a separate path for error. This was highlighted in other discussions as well.

I figured what was causing the issue based off the following link.

http://scn.sap.com/docs/DOC-51341

The numbering of the days starts from 0 to 6 ie Monday to Sunday whereas in my condition I used the numbering from 1 to 7. So that's what caused the failure on a Sunday.

Thanks

Jagdish

Answers (1)

Answers (1)

Former Member
0 Kudos

You need not have to create Else If part.

Option 1 - If Mon or Tue

Option 2 - Else

Or Handle Erro Part by adding one more node to PC.

Refer below link;