Hola estimados foristas, espero me puedas orientar a resolver este inconveniente que tengo al intentar agregar una nueva condición a un SP_TRANSACTION en SAP B1 HANA vía CALL, el error es:
[SAP AG][LIBODBCHDB DLL][HDBODBC] General error;1299 no data found:“SBO_TEST”.“SBO_SP_TRANSACTIONNOTIFICATION”:line 79 col1(at pos 3184):“SBO_TEST”.“SBO_SP_XX13”:line 335 col 2 (at pos 9802):
y este es el SP:
IF ((:transaction_type like ‘A’ OR :transaction_type like ‘U’) AND :docType = ‘I’)
THEN
contador3:= 0;
SELECT DISTINCT COUNT(1)
INTO contador3
FROM "INV1"
INNER JOIN "OWHS" ON INV1."WhsCode" = OWHS."WhsCode"
INNER JOIN "OINV" ON INV1."DocEntry" = OINV."DocEntry"
WHERE INV1."ItemCode" IS NOT NULL
AND INV1."DocEntry" = :docEntry
AND OINV."Series" = '95'
GROUP BY INV1."ItemCode", OWHS."Location", OINV."Series";
IF (IFNULL(:contador3,0) > 1) AND :docType = 'I'
THEN
error_message := 'No pueden existir mismo artículo y localidad.';
END IF;
END IF;
Espero me puedan orientar al respecto,
muchas gracias,