Skip to Content

Calculated column using workdays_between() not working in SP11

Hi Expert ,

Has nay one faced this issue in SP11 and up.

I am trying to get the Workdays between 2 date range in HANA , using SQL engine, Calculated column feature in HANA SP11.

My SQL is working fine and giving the result.

But my calculated column showing error. Am I missing something? Can someone please help?




Regards,

Chandan

1.jpg (30.5 kB)
2.jpg (112.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 19, 2016 at 07:19 PM

    Hello Chandan,

    Although not well described the documentation mentions that the SQL function usage on Expression Editor is limited:

    Create Calculated Columns - SAP HANA Developer Guide for SAP HANA Studio - SAP Library:


    "[...]

    You can also create an expression by dragging and dropping the expression elements, operators and functions from the menus to the expression editor.

    For expression in SQL language, modeler supports only a limited list of SQL functions.

    [...]"

    Functions add_workadays and workdays_between are within the not implemented list.

    BRs,

    Lucas de Oliveira

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 01, 2016 at 11:56 AM

    Hi,

    Chandan I am having the same problem as you, with the formula

    "workdays_between". I add the neccesary elements in the formula and after the syntax check , the error "...cannot be converted to CS Expression". this is driving me nuts.

    If I use another formula it work. but obviously I need this one.

    This is just so you know not the only one having this problem. sorry I cannot give you the solution for the time being.

    Regards,

    Enrique

    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.