ABAP Keyword Documentation → ABAP - Reference → Processing External Data → ABAP Database Accesses → Object Services → transaction service
Checking Agents
A checking agent makes it possible to check the consistency of a persistent object that is to be stored, prior to the update. It is a class that implements the interface IF_OS_CHECK. The interface has a method IS_CONSISTENT with a return value RESULT of type OS_BOOLEAN.
In the simplest case, the interface is implemented in the persistent class itself since all the attributes are known there and can be checked. If an inconsistency is detected, the system tries to repair it or sets the output value to OSCON_FALSE.
The method IF_OS_TRANSACTION~REGISTER_CHECK_AGENT can be used to register the required checking agent for a transaction. This causes the transaction service to call the method IS_CONSISTENT automatically before the update. An exception is raised if a checking agent has the return value OSCON_FALSE.
Other versions:
7.31 | 7.40 | 7.54