Foreign Key : Is a field in one table ( Foreign Key Table ) that is connected to another table ( Check table ) field via foreign key relation ship and the purpose is to validate the data being entered in foreign key table with a valid set of values from the check table.
Technical requirements(rules) to define a foreign key:
- Foreign key definition is only possible for fields with data elements. Foreign key field should be refer a data element always.
- The domain names of the foreign key field and check table field should be same and it is to make sure that at least the data type and length of the field to check table is same.
Triggering Foreign key : This will be triggered through the GUI only the data will be validated for the input provided through screens only. It will not validated the foreign key relation when you insert the data into foreign key table through open SQL that is the reason SAP always suggest to update the data base tables only through transactions (Screens).
Comments
Post a Comment