Do you have any question about this error?
Message type: E = Error
Message class: E2 - DE Data Dictionary
Message number: 190
Message text: Foreign key does not exist in include and will be deleted
You created a foreign key for a field in an include, but set the
'Inherited from include' flag. The system tries to copy the definition
of the foregin key from the include, but the foreign key is not defined
in the include.
The foreign key was deleted.
You may not set the 'Inherited from include' flag when creating the
foreign key for this field.
Error message extract from SAP system. Copyright SAP SE.
E2190
- Foreign key does not exist in include and will be deleted ?The SAP error message E2190, which states "Foreign key does not exist in include and will be deleted," typically occurs during the activation of a data dictionary object, such as a table or a view, when there is a foreign key relationship defined that does not correspond to an existing primary key in the referenced table or include structure.
Cause:
- Missing Foreign Key Definition: The foreign key defined in the table does not point to a valid primary key in the referenced table or include.
- Changes in Table Structure: If the structure of the referenced table has changed (e.g., the primary key was removed or modified), the foreign key relationship may become invalid.
- Inconsistent Data Dictionary: There may be inconsistencies in the data dictionary where the foreign key is defined but not properly linked to an existing primary key.
Solution:
- Check Foreign Key Definition: Go to the table definition where the error occurs and check the foreign key settings. Ensure that the foreign key is correctly defined and points to an existing primary key in the referenced table.
- Verify Referenced Table: Check the structure of the referenced table or include to ensure that the primary key exists and is correctly defined.
- Adjust or Remove Foreign Key: If the foreign key is no longer valid, you may need to either adjust it to point to a valid primary key or remove it if it is not needed.
- Re-activate the Object: After making the necessary changes, try to activate the data dictionary object again to see if the error persists.
- Transport Requests: If this issue arises in a transport request, ensure that all related objects are included in the transport to maintain consistency.
Related Information:
If the problem persists after following these steps, it may be beneficial to consult with your SAP Basis or ABAP team for further investigation and resolution.
Get instant SAP help. Start your 7-day free trial now.
E2189
Foreign key &-& was deleted
What causes this issue? The definition of the specified foreign key was deleted.System Response Information messageHow to fix this error? No action...
E2188
Foreign key &-& is consistent
What causes this issue? The foreign key check showed that the foreign key is consistent, i.e. the foreign key definition contains no errors.System Re...
E2191
Constant must be enclosed in apostrophes
What causes this issue? You did not enclose the constant in apostrophes.System Response The system issues an error message and will not allow you to...
E2192
Field assignment for foreign key &-& ambiguous (check proposal)
What causes this issue? The structure of the foreign key definition is ambiguous. When creating the foreign key, all the key fields of the check tabl...
Click on this link to search all SAP messages.