ABAP check table的工作原理

Created by Jerry Wang on Sep 29, 2016

Missing entry in check table will NOT hinder CRUD of host table. This is verified by example below:
I have a host table whose field PROD_ID is linked by check table ZCHECK_REF:

ABAP check table的工作原理
ABAP check table的工作原理

content of check table:

ABAP check table的工作原理

content of host table:

ABAP check table的工作原理

As a result, I could see both in value help:

ABAP check table的工作原理

Now I would like to insert a new entry with key = Z3. This key does not exist in check table ZCHECK_REF. Will this creation be successfully done?

ABAP check table的工作原理

Yes.

ABAP check table的工作原理

The only defect is, when you try to create a new entry in host table, by clicking F4 for PROD_ID, you can only see Z1 and Z2, still Z3 is not in check table.

ABAP check table的工作原理

Read & Update:

ABAP check table的工作原理

Test ok.

ABAP check table的工作原理

Delete:

ABAP check table的工作原理

Test also ok.

ABAP check table的工作原理

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
ABAP check table的工作原理