Hola buen día amigos del foro.
Alguien me puede apoyar o decirme donde esta mi error al convertir este query de sql server a Hana:
SQL SERVER:
IF @transaction_type IN ('A') AND @object_type IN ('4')
BEGIN
IF((SELECT "U_ts_sic_estatus" FROM OITM WHERE "ItemCode"=@list_of_cols_val_tab_del) = 'P')
BEGIN
UPDATE OITW
SET "U_TS_SIC_Estatus"='P'
FROM OITW
WHERE "WhsCode" IN (SELECT "WhsCode" FROM OWHS WHERE "U_TS_SIC_CodExt" IS NOT NULL);
END;
END;
HANA STUDIO:
IF (:transaction_type='A') AND (:object_type='4') THEN
BEGIN
IF((SELECT
"U_ts_sic_estatus"
FROM OITM
WHERE
"ItemCode"=:list_of_cols_val_tab_del) = 'P') THEN
END;
END IF;
BEGIN
UPDATE OITW
SET
"U_TS_SIC_Estatus"='P'
FROM OITW
WHERE
"WhsCode"
IN (SELECT
"WhsCode"
FROM OWHS
WHERE "U_TS_SIC_CodExt"
IS NOT NULL);
END;
END IF;
ERROR: