2018 May 29 4:10 AM
Hi Team,
I am trying to calculate the number of working days remaining in a month. Suppose you are passing 2018-02-20 as a prompt. So it should give me the remaining number of working days coming from Tfacs table in that month.
But the substring function is not considering StartDay which is an integer value.
The error is given below.
"Function SUBSTRING: at position 2, only Literals, possibly positive integers allowed"
If I use a hard coded number in place of StartDay, it works fine.
Please help me on this.
Regards,
Shawon
Hi Team,
I am trying to calculate the number of working days remaining in a month. Suppose you are passing 2018-02-20 as a prompt. So it should give me the remaining number of working days coming from Tfacs table in that month.
But the substring function is not considering StartDay which is an integer value.
The error is given below.
"Function SUBSTRING: at position 2, only Literals, possibly positive integers allowed"
If I use a hard coded number in place of StartDay, it works fine.
Please help me on this.
Regards,
Shawon
2018 May 29 6:36 AM
Did you bother to read the syntax error or the documentation?
The function properly works as documented.
2018 May 29 10:00 AM
Hey Horst,
Yes I did. I was looking for a workaround to do this.
Regards,
Shawon
2018 May 29 7:02 PM
I'm curious - are you able to use standard function module DATE_CONVERT_TO_FACTORYDATE? Please see documentation.
Gabriel
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |