on 2019 Feb 18 9:10 AM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.