Hello,
I have 2 databases and a query in my application works on older database and on the new database gives an error.
The diference is in old database the fields are CS_MEMORY_LOB and in the new is just LOB. The older database was created in SAP9 for HANA version, and the new database was created in SAP 9.1 for HANA.
The query is:
SELECT 0 AS "LineType", "U_Target",
'' AS "U_ItemCode", "U_iBpScope", "U_iItemScope", "U_BonusType", "U_RuleType", "U_From", "U_To",
"U_ValidFrom", "U_ValidTo", "U_RuleScope", "U_Bonus", "U_Distribution", "U_MesUnit", "U_LastDate",
"U_NextDate"
, t1."U_CompleteFilter" AS "ItemFilter"
FROM "@RSACM_BC1"
LEFT OUTER JOIN "@RSACM_BC2" t1 ON t1."DocEntry" = "@RSACM_BC1"."DocEntry" AND t1."LineId" = (
CASE
WHEN ifnull("@RSACM_BC1"."U_iItemScope",0) = 1 THEN 3
ELSE "U_iItemScope"
END)
where TO_DATS("U_NextDate")>='20140101'
AND TO_DATS("U_NextDate")<='20150112'
if i remove the red lines the query work fine, with the red lines give me this error:
Could not execute 'SELECT 0 AS "LineType", "U_Target", '' AS "U_ItemCode", "U_iBpScope", "U_iItemScope", ...' in 4 ms 657 µs .
SAP DBTech JDBC: [7]: feature not supported: invalid unicode string (support only CESU-8) at function __cs_field_HybridNCLob__()
The left join returns lines, every line in table "@RSACM_BC1"have a line in "@RSACM_BC2" like the print i an attach shows.
I have tryed change datatype in HANA to test if is the datatypes, but in LOB fields i can't alter database field type.
Anyone know how to solve this problem?
i have no more ideas.