cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate working dates - start routine or characteristic routine?

Former Member
0 Kudos

Dear all

I need to fill key figure with number of working dates in transformation

There is a key figure START_DATE in and I need to populate WORK_DAYS like CURRENT_DATE - START_DATE excluding holidays and weekends

I checked this thread and read some sample code:

/message/10006808#10006808 [original link is broken]

But where I need to add sample code of working days calculation - in start routine and characteristics routine or only at characteristic routine?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello there,

In the characteristic routine.

start routine will be executed before the characteristic assignment, and is better for instance to add records or remove records, etc. The characteristic assignment comes after with characteristic routines, and for each record this assignment and characteristic routine is done. If you have already the START_DATE and CURRENT_DATE you can proceed with the calculation on each record (with the characteristic routine assignment).

Hope this helps,

Regards,

Diogo