‎2007 May 30 3:12 PM
‎2007 May 30 3:14 PM
Hi,
Welcome to SDN.
Check Table is the dependent table to which the relationship is defined using foreign keys. The contents of the check table field are shown in the input help for the referenced field.
Value Table is the table attached to a field at the domain level, where the entry to the field can be only from the value table. They are not used in the Input Help.
Also please check this link ...
http://www.sap-img.com/abap/difference-between-a-check-table-and-a-value-table.htm
Regards,
Ferry Lianto
‎2007 May 30 3:24 PM
Hi Harish,
A foreign key links two tables T1 and T2 by assigning fields of table T1 to the primary key fields of table T2. Table T2 is then known as the check table of the foreign key.
value table : when you define a domain, you already know that all fields that use the domain will need to be checked against a particular table. You can store this information in the domain definition by specifying a value table.
If you try to define a foreign key for a field that points to this domain, the value table of the domain is proposed as the check table for the foreign key.
Reward if useful.
Thanks
Aneesh.
‎2007 May 30 3:40 PM
Hi,
Difference between a check table and a value table
Value Table :
This is maintained at Domain Level.
When ever you create a domain , you can entered allowed values. For example you go to Domain
SHKZG - Debit/credit indicator. Here only allowed values is H or S.
When ever you use this Domain, the system will forces you to enter only these values.
This is a sort of master check . To be maintained as a customization object. This mean that if
you want to enter values to this table you have to create a development request & transport the
same.
Check table :
This is maintained at field level checking.
For example you have Employee master table & Employee Transaction table.
When ever an employee Transacts we need to check whether that employee exists ,
so we can refer to the employee master table.
This is nothing but a Parent & Child relationship . Here data can be maintained at client level ,
no development involved.
As per DBMS what we call foregin key table, is called as check table in SAP.
ex: scarr table is check table for carrid.
There is 1 more important Difference in Value Table and Check Table is that:
1. The contents of the check will be used as an input help(F4 Help) for a particular field on which a check table is assigned.
But the contents of Value Table are never used in Input Help.
The Heirarchy which decides from where to used the Input Help is:
1. Input help defined explicitly in ABAP Program or Dialog Module.
2. Input Help Attached to the referenced Database Table field.
3. Using the contents of Check Table as an input help if neither (1) or (2) help are there.
4. Input help from Fixed value or Value range given in Domain.
Thanks & Regards,
Shalini
‎2007 May 30 3:47 PM
Hi,
<u><b>Check tables:</b></u>
The ABAP Dictionary allows you to define relationships between tables using foreign
keys. A dependent table is called a foreign key table, and the referenced table is
called the check table. Each key field of the check table corresponds to a field in the
foreign key table. These fields are called foreign key fields. One of the foreign key fields
is designated as the check field for checking the validity of values. The key fields of the
check table can serve as input help for the check field.
<u><b>Value Table:</b></u>
This is maintained at Domain Level.
When ever you create a domain , you can entered allowed values. For example you go to Domain SHKZG - Debit/credit indicator. Here only allowed values is H or S.
When ever you use this Domain, the system will forces you to enter only these values.
This is a sort of master check . To be maintained as a customization object. This mean that if you want to enter values to this table you have to create a development request & transport the same.
Regards,
Bhaskar