The function CHETAB compares database field values with specified values to check database updates after transactions. You can also check with CHETAB whether a particular table entry exists. You can also check customizing table entries.
CHETAB requires specification of the complete key.

If the key is not completely specified, those key fields which are not specified take the initial value for their type (spaces for CHAR, "0" for NUM).

In those exceptional cases where you need to select by non-key fields, you can call appropriately programmed function modules in test cases, with the function
Proceed as follows:
1. Enter CHETAB in the Funct. column, and the table name in the Object field.
2. Position the cursor on this line and double-click. You go to the field contents maintenance detail screen. At first only the key fields are listed.
3. Assign values to all the key fields (ARG). You can use constant values, or variables and parameters which already contain values.
4. Choose Display all fields to list the function part fields as well.
5. Enter the function field (FKT) target values, for which a target/actual comparison should be made.

Database table values must be input in the fields in internal format. Values which fail the target/actual comparison are output as errors in the log.

If the CHETAB function does not find any entries for the specified values in the corresponding table in special cases, because e.g. an account has not yet been updated, an error occurs, because CATT assumes that this is an error. You can avoid this by reading the corresponding table entry with the function SETVAR<table>. If the entry does not exist, SY-SUBRC <> 0, and this can be tested in a condition.