How does ABAP check table work

110 阅读1分钟

Created by Wang, Jerry, last modified on Jan 06, 2017

Should we redirect all usage of check table from COMM_PRODUCT to MARA for codeployment?
clipboard1
clipboard2
No!
But why?
Reason: 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:
clipboard3
clipboard4
content of check table:
clipboard5
content of host table:
clipboard6
As a result, I could see both in value help:
clipboard7
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?
clipboard8
Yes.
clipboard9
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.
clipboard10
Read & Update:
clipboard11
Test ok.
clipboard12
Delete:
clipboard13
Test also ok.
clipboard14