Do you have any question about this error?
Message type: E = Error
Message class: DI - Dictionary messages: Indexes
Message number: 795
Message text: Predecessor table & for base table & does not follow this in hierarchy
Each secondary table of a lock object must be connected to a base table
above it in the hierarchy with a join condition.
The preceeding table specified for the secondary table named occurs
after it in the hierarchy of base tables.
The action is cancelled.
Build the hierarchy of the lock object correctly. Observe the
<DS:TX.DDDOK_ENQU_REQUIREMENTS>requirements for the join conditions of
a lock object</>.
Error message extract from SAP system. Copyright SAP SE.
DI795
- Predecessor table & for base table & does not follow this in hierarchy ?The SAP error message DI795 typically indicates an issue with the hierarchy of data in a predecessor table and its corresponding base table. This error often arises in the context of data modeling, particularly when working with master data or hierarchical structures in SAP systems.
Cause:
The error message DI795 occurs when there is a mismatch or inconsistency in the hierarchical relationship between the predecessor table and the base table. This can happen due to several reasons, including:
- Incorrect Data Relationships: The data in the predecessor table does not correctly reference the base table, leading to a violation of the expected hierarchy.
- Missing Entries: There may be missing entries in either the predecessor or base table that are required to maintain the hierarchy.
- Data Integrity Issues: Data integrity constraints may not be met, such as foreign key relationships that are not properly defined or maintained.
- Configuration Errors: Incorrect configuration settings in the data model or hierarchy settings can lead to this error.
Solution:
To resolve the DI795 error, you can take the following steps:
Check Data Relationships: Review the relationships between the predecessor and base tables. Ensure that all entries in the predecessor table correctly reference existing entries in the base table.
Validate Data Integrity: Use transaction codes like SE11 (Data Dictionary) or SE16 (Data Browser) to check the integrity of the data in both tables. Look for any missing or inconsistent entries.
Review Hierarchy Configuration: Check the configuration settings related to the hierarchy in the SAP system. Ensure that the hierarchy is correctly defined and that all necessary settings are in place.
Data Correction: If you find any discrepancies, correct the data in the predecessor or base table as needed. This may involve adding missing entries or updating existing ones to ensure they conform to the expected hierarchy.
Testing: After making corrections, test the changes to ensure that the error no longer occurs. You may need to refresh or reprocess the data to see the effects of your changes.
Consult Documentation: If the issue persists, consult SAP documentation or support resources for more specific guidance related to your version of SAP and the particular data model you are working with.
Related Information:
By following these steps, you should be able to identify and resolve the underlying cause of the DI795 error in your SAP system.
Get instant SAP help. Start your 7-day free trial now.
DI794
Predecessor table & for base table & is not a base table
What causes this issue? Each secondary table of a lock object must be connected to a base table above it in the hierarchy with a join condition. For ...
DI793
No valid join conditions found for secondary table &
What causes this issue? Each secondary table of a lock object must be connected to a base table above it in the hierarchy with a join condition. For ...
DI796
Lock field &-& does not have a character-like type
What causes this issue? The field named was identified as <DS:TX.DDDOK_ENQU_FIELD>lock field</> of the lock object. However, its ABAP typ...
DI797
Inconsistent join of basis table & to predecessor table & (check field &)
What causes this issue? Each secondary table of a lock object must be connected to a base table above it in the hierarchy with a join condition. This...
Click on this link to search all SAP messages.