‎2007 Aug 01 10:19 AM
Hi experts,
Is it possible to define a database trigger in an ABAP program, to be triggered when the data from a database table is modified?
Thanks,
Nuno Afonso
‎2007 Aug 01 10:30 AM
I doubt it, but if it's possible, I would NOT use it. Remember the application server assumes the role of the DBMS sometimes, and you will never be absolutely sure if your trigger will be used or not.
You can also define a TRIGGER for your Z-tables using the DBMS, but I will only recommend it if you are using ONLY z-tables. For standard tables, I would look for an alternate method, ie EXITs.
And if it's a Z-Table, you can just control its inputs by permissions (don't allow users to maintain it, just make a dialog to do it, and the dialog program would be the "trigger" guy)