Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8419

Strange behavior in Decision step for WORKING_DAY in process chain

$
0
0

Hi all,

 

We are on BW 7.31. I have a process chain with a sub chain where a decision step decides whether it is the second working day or not. If not, the process chain stops and goes to the next sub chain. If it is the second working day, it starts a new sub chain where financial data for the last month is being loaded.

 

The formula for the decision is as follows:

WORKINGDAY_MONTH( SYST-DATUM, 'NL', '' ) = 2

 

The strange thing now is that in the test systems the decision works fine but in production it is showing strange behavior. I've created three situation:

 

Situation 1: the 2nd day of the month is the second working day. So the sub chain starts after the decision. And off course not on the 1st and 3rd day.

calday12345678910
MoTuWeThFrSaSuMoTuWe
workingday12345678

 

Situation 2: the second working day is on monday. What happened in this case, is that the sub chain for financial data also ran during the weekend AND on monday. So as if the weekend days were also set as 2nd working day. This caused problems because of double (triple) requests.

calday27282930123456
MoTuWeThFrSaSuMoTuWe
workingday212223241234

 

So we changed the formula and we put '-'  in the last section (after 'NL', ) so it keeps the last day in memory in case it is not a working day. This was found in the F1 help pop-up in under WORKINGDAY_MONTH in the formula edit screen. So the new formula is:

WORKINGDAY_MONTH( SYST-DATUM, 'NL', '-' ) = 2

 

Situation 3: with the new formula there was a new problem. With working day 2 on friday, the system keeps the value during the weekend so again saturday and sunday was "sort-of-working-day-2".

calday2829301234567
MoTuWeThFrSaSuMoTuWe
workingday22232412345

 

What makes it even more strange is that it only happens on production. I've have checked the tables for factory calendar (TFACD) but they're the same on all systems. Is there another setting which determines the working days or how it keeps them in memory?

 

Hope someone has seen this before or know a simple setting or solution.

 

Thanks!


Best regards,


Daan Boon

The Netherlands


Viewing all articles
Browse latest Browse all 8419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>