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
5 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?
I have a macro to set the date on one window but another window only accepts the date in the mm/DD/YYYY format, how can I ask for one variable and it correctly sets it for both?
Ex Var 1 = 02/02/25
set item 1 = 02/02/25
set item 2 = 02/02/2025
Please sign in to leave a comment.