on 01-06-2016 1:05 PM
Hi,
According to the docs, using '5' on second argument of component would five you the minutes. You're probably looking at '2' instead:
Date Functions - SAP HANA Modeling Guide for SAP HANA Web Workbench - SAP Library
component | component(date, int) | The int argument may be int the range 1..6, the values mean year, month, day, hour, minute, second, respectively. If a component is not set in the date, the component function returns a default value, 1 for the month or the day, 0 for other components. You can also apply the component function to longdate and time types. |
So you're probably need to change that to component("PO_CREATION_DATE",2). Give it a try.
BRs,
Lucas de Oliveira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lucas,
Can you help me with syntax to get only "year & Month" from Date ?
Thanks,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.