You are on page 1of 8

STEPS TO CREATE A VALUE TABLE

Go to SE11. Give the table name as ZKNA1_CHK.

Click on create. Now give the fields as below. Give the first field as cust_no. Give the data element as zkunnr_ch and press enter.

Create the data element and domain by the same name.

Whenever we are creating the domain, click on the value range tab. Specify the value table as ZKNA1_CH.

Save it, activate it and comeback. Define the second field as below. Field name cust_name Data element zname1.

Save, activate and create 3 records in the table.

Create another table by the name ZKNA1_FK1.

Give the fields as below Fields cust_no, city Data element zkunnr_ch, zcity.

Save and activate. Creating foreign key relation using value table: Go to the foreign key table ZKNA1_FK1. Click on change. Select the field cust_no. and click on foreign key button.

A pop will be raised with the below message.

Click on yes button. A window will be raised as below.

Click on copy button. A foreign key will be created for zknna1_fk1-cust_no. Save, activate and test it. If you give the cust_no. other than the cust_no. in the check table, it will throw an error as below.

You might also like