‎2007 May 21 1:04 PM
Hi experts,
what is the diff between check table and value table.
Thanks
‎2007 May 21 1:09 PM
Hi ahammad,
1. This concepts come into picture
only when we have to define
FOREIGN KEY RELATION SHIP
Between Two Tables.
2. If primary values in some table (A)
needs to be validated/checked against
some master table (B)
then this master table (B) is called the CHECK TABLE.
3. Now,
Instead of SELECTING this check table,
the system automatically proposes
this check table,
if the primary key data element
has a 'VALUE Table' attached to it.
(This Value Table is JUST FOR DEFAULTING
/ PROPOSING THE CHECK TABLE, AND NOTHING ELSE)
regards,
amit m.
‎2007 May 21 1:05 PM
hi shaik,
check is used when we r trying to use a table as a foreign key relationship... as it will allow any other new entries
if it is a value table -- Entering a value table does not implement a check.
With Regards,
S.Barani
Message was edited by:
S BHARANIDARAN
‎2007 May 21 1:08 PM
HI,
Difference between a check table and a value table
<b>Value Table</b>
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.
<b>Check table</b>
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.
<b>There is 1 more important Difference in Value Table and Check Table is that</b>:
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.
For more info check this URL.
http://www.ask.com/web?q=Differencebetweenchecktableandvaluetable&qsrc=1&o=333&l=dir
http://www.allinterview.com/showanswers/757
<b>Reward if it useful.</b>
Regards,
<b>Jackie...</b>
Message was edited by:
Jackie Chan
‎2007 May 21 1:09 PM
Hi ahammad,
1. This concepts come into picture
only when we have to define
FOREIGN KEY RELATION SHIP
Between Two Tables.
2. If primary values in some table (A)
needs to be validated/checked against
some master table (B)
then this master table (B) is called the CHECK TABLE.
3. Now,
Instead of SELECTING this check table,
the system automatically proposes
this check table,
if the primary key data element
has a 'VALUE Table' attached to it.
(This Value Table is JUST FOR DEFAULTING
/ PROPOSING THE CHECK TABLE, AND NOTHING ELSE)
regards,
amit m.
‎2007 May 21 1:09 PM
HI,
The 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.
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.
The 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.
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.
rewards if useful
regards,
nazeer