Skip to Content
author's profile photo Former Member
Former Member

Calculate working dates - start routine or characteristic routine?

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 11, 2011 at 11:37 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.