Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Brief Explantion about Value Table and Check Table

Former Member
0 Kudos

Can u help me?

Difference between value table and check table.....

6 REPLIES 6

Former Member
0 Kudos

hi,

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

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.

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

regards,

preet

Former Member
0 Kudos

Hi,

Please go through this.

Value table :

Value table is a domain level checking .In some cases you can see when you define a domain that all the table fields or structure components referring to this domain should be checked against a certain table. This information can be stored in the domain by entering a value table.A check is not implemented by simply entering a value table! The check against the value table only takes effect when a foreign key has been defined

Check table :

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.. While creating a table if you want to be sure that a field can have some values and these are in a certain table, you can give IT this table as CHECK TABLE.

Difference between the 2 is that

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.

Regards,

Srinivas

Former Member
0 Kudos

Hi Senthil,

Check table is like parent table where all the table entries which are present will act like parent entries.

In Value table is like child table where the entries present in check table only can be taken up.

Summary is you cannot add entry in value table which are not there in check table.

Cheers!!

Former Member
0 Kudos

Hi Senthil,

This question has been answered many times on SCN. Please make a search before posting a thread.

Read the Rules of Engagement.

Regards,

Chandra Sekhar

Former Member
0 Kudos

Hi,

Checktable : A foreign key links two tables T1 and T2 by assigning fields of table T1 to the primarykey fields of table T2 . Table T2 is known as the Chectable of the foreign key.

Valuetable : Sometimes when you define a domain, you already know that all fields that use domain will need to be checked against a particular table. You can store this information in the domain definition by specifying a Valuetable.

Regards,

Vijay Kumar Kadarla

Former Member
0 Kudos

if there is a value table given at the domain level. later if the same is attached through a foregin key relationship, then the

"VALUE TABLE WILL BECOME THE CHECK TABLE"