The following works:
SQL
Code:
SET($[$12.0.DATE]|SQL: SELECT CONVERT(VARCHAR(10), GETDATE(), 120))
So this should also work:
Code:
Set ($[$12.0.DATE]|SQL: SELECT CONVERT(VARCHAR(10), DateAdd(DD,30,GETDATE()),120));
The main reason is that the date has to be in format YYYY-MM-DD
HANA
Code:
Set($[$12.0.DATE]|SQL:SELECT TO_VARCHAR(CURRENT_DATE, 'yyyy-mm-dd') FROM DUMMY);
Comments
4 comments
HANA:
@STORE1 = SQL(SELECT TO_VARCHAR(T0."DocDueDate", 'yyyy-mm-dd') FROM "ORDR" T0 WHERE T0."DocNum" = 972);
SET($[$12.0.DATE]|@STORE1);
Hi,
I need the below to say IF ($[$BOYX_5.0.0] > yesterday:
What is the correct logic please?
IF ($[$BOYX_5.0.0] > getdate() -1
Hello,
This does not work when attempting to set a date field on a UDT that is handled through the UDT Handler. Image below. Am I missing something here?
Please sign in to leave a comment.