Hello guys,
I need some support. I have created on scenario what is based on sap hana trigger and fired after all insert on the custom table. We have SLT replication in the picture to what is pushing the data from the ECC into HANA DB.
I have a problem that in case the procedure is failing due to missing data, mainly business data issue, then the trigger is not executed properly and the entire replication is stopped as long as I do not remove the trigger in HANA.
Do you know any way to handle the procedure failure inside of the trigger and let the system to process the next item although the procedure failed for the previous item.
My trigger look like this at the moment
CREATE TRIGGER "SCHEMA_NAME"."ZTABLE_INSERT" AFTER INSERT ON "SCHEMA_NAME"."ZTABLE" REFERENCING NEW ROW ZTABLENEWROW FOR EACH ROW
BEGIN
call "SCHEMA_NAME"."DEV.PROCEDURES.SPA::SPA_SO_ITEM_ALLOCATION"(
:ZTABLENEWROW.MANDT,
:ZTABLENEWROW.VBELN,
:ZTABLENEWROW.POSNR
);
END
;
Thanks for any advice
BR
Tamas