Do you have any question about this error?
Message type: E = Error
Message class: DD_MT_SHARING_CHK - DDIC Multi Tenancy Sharing: Messages
Message number: 021
Message text: &1 direct usage(s) in HANA native objects found (probably uncritical)
Write access from HANA native objects (for example<(>,<)> function or
trigger) to shared tables is forbidden. HANA calculation views do not
work with shared tables.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
DD_MT_SHARING_CHK021
- &1 direct usage(s) in HANA native objects found (probably uncritical) ?The SAP error message DD_MT_SHARING_CHK021 indicates that there are direct usages of certain objects in HANA native objects, which may not be critical but still require attention. This message typically arises during the transport or activation of objects in the SAP HANA environment, particularly when dealing with database views, tables, or other database objects.
Cause:
The error is triggered when the system detects that there are direct references to certain database objects (like tables or views) in HANA native objects (like calculation views or other database artifacts). This can happen due to:
- Direct Usage: The object is being directly referenced in a HANA native object, which may not be the best practice as it can lead to dependencies that complicate future changes or transports.
- Object Changes: If the underlying object has been modified or is being transported, it may lead to inconsistencies or issues in the dependent objects.
- Transport Issues: When transporting objects between different systems (e.g., from development to production), direct references can lead to problems if the referenced objects are not present or are different in the target system.
Solution:
To resolve this issue, consider the following steps:
Review Direct Usages: Identify the objects that are being directly referenced. You can use tools like the HANA Studio or SAP HANA Database Explorer to analyze the dependencies.
Refactor Code: If possible, refactor the HANA native objects to avoid direct references. Instead, consider using views or other abstraction layers to minimize direct dependencies.
Check Object Availability: Ensure that all referenced objects are available and consistent in the target system where the transport is being applied.
Documentation: Document the direct usages and their implications for future reference. This can help in understanding the impact of changes in the future.
Consult SAP Notes: Check for any relevant SAP Notes or documentation that may provide additional context or solutions specific to your version of SAP HANA.
Testing: After making changes, thoroughly test the affected objects to ensure that they function correctly without the direct references.
Related Information:
By addressing the direct usages and ensuring that your database design follows best practices, you can mitigate the risks associated with this error message and improve the maintainability of your SAP HANA environment.
Get instant SAP help. Start your 7-day free trial now.
DD_MT_SHARING_CHK020
Internal Error when retrieving hana native usages for table &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
DD_MT_SHARING_CHK019
Internal Error calling function module &1 (sy-subrc = &2)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
DD_MT_SHARING_CHK022
&1 direct usage(s) in HANA native objects found (probably critical)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
DD_MT_SHARING_CHK023
View requires sharing type T as base table is of sharing type T or S
What causes this issue? If a table has sharing type T or S, writable views that reference this table must have sharing type T.System Response The sy...
Click on this link to search all SAP messages.