on 2018 Jan 19 6:45 PM
Hello!
I'm trying to edit a query to get a variable condition, but, dont matter what i try, i always get:
"1). [SAP AG][LIBODBCHDB32 DLL][HDBODBC32] Syntax error or access violation;257 sql syntax error: incorrect syntax near "T0": line 8 col 6 '' (SWEI) (at pos 160)"
Original query (No error):
SELECT
T0."DocNum", T0."U_UPItmCod", T0."U_UPItmNam", T0."U_UPQtdPla", T0."U_UPDatFch", T0."U_UPWhsCod"
FROM
"SBO_HELSTEN_PROD"."@UPR_OWOR" T0
WHERE
T0."U_UPOPSbTy" = 'R'
"New" query:
SELECT
T0."DocNum", T0."U_UPItmCod", T0."U_UPItmNam", T0."U_UPQtdPla", T0."U_UPDatFch", T0."U_UPWhsCod"
FROM
"SBO_HELSTEN_PROD"."@UPR_OWOR" T0
WHERE
T0."U_UPOPSbTy" = 'R'
and T0."U_UPDatLan" =[%0]
How can i make that last sintax work?
Thanks!
PS: SAP B1 running on Hana, 9.2.
Field "U_UPDatLan" is "Date" type.
Hi,
Try this,
SELECT
T0."DocNum", T0."U_UPItmCod", T0."U_UPItmNam", T0."U_UPQtdPla", T0."U_UPDatFch", T0."U_UPWhsCod"
FROM
"SBO_HELSTEN_PROD"."@UPR_OWOR" T0
WHERE
T0."U_UPOPSbTy" = 'R'
and T0."U_UPDatLan" = '[%0]'
Regards,
Nagarajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Nagarajan,
Thanks for the answer!
I tried that query, but i receive "(SWEI) error.
Thank you.
User | Count |
---|---|
102 | |
8 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.