cancel
Showing results for 
Search instead for 
Did you mean: 

Triggers in HANA in SAPABAP1-ERP-Tables gives issues to the running of ERP System

regysm21
Active Participant
0 Kudos
1,103

Hi Experts,


I created recently some triggers in the SAP HANA DB, more specifically in the SAPABAP1-Schema so that I capture automatically the changes that happen to the productive SAP ERP-Tables. The issues that I encountered was that the trigger was working correctly, but then the SAP System was generating a lot of errors for the Transaction-Codes and its Tables where the triggers were created. I haven't changed anything in the actual sap erp tables(where the trigger looks for changes). I have created a copy of those tables in the same schema SAPABAP1. After I deleted the triggers from the SAPABAP1-Schema, then everything was working fine from the ERP side.

Is this issue a common one? Can I create triggers on SAPABAP1-Schema to capture changes in the ERP Tables directly in the hana db? If not, then, is it possible to create triggers and its tables in another HANA-Schema and with it to capture the changes that happen in the SAPABAP1 (Schema)? I tried to create in another schema the Trigger and also the Copy of the orginial ERP-Tables where the changes would be stored, and the system did not allow me.

Best Regards,

Regys

Accepted Solutions (1)

Accepted Solutions (1)

andreas_baldauf
Active Participant
0 Kudos

Hi Regys,

You mentioned that table ZPROJ_TRG_CCV is copy of table PROJ (with 2 additional fields for CURRENT_TIMESTAMP and CURRENT_USER).

Please ensure that table ZPROJ_TRG_CCV has no primary key and no secondary unique index and that all columns of PROJ and ZPROJ_TRG_CCV have the same type and length.

In addition, please check if the INSERT statement of the trigger specifies all columns in the correct sequence.

You should also check the system log (SM21), the work process trace file (SM50) and the HANA diagnosis files (DB02). Maybe, you can find additional information about the error there.

Best regards
Andreas

Answers (0)