Do you have any question about this error?
Message type: E = Error
Message class: ESH_ENG_CDSVAL_ES - ES-CDS/ABAP: Validation of domain @EnterpriseSearch
Message number: 003
Message text: Annotation &1 is obsolete; use &2
Meanwhile, the semantics formerly expressed by annotation &V1& of domain
@EnterpriseSearch is available in a general, non-proprietary way as
annotation &V2&. The first one is now obsolete; the latter is to be
used.
The obsolete annotation is nevertheless evaluated and works as wont.
There is no immediate impact on the use of the view in form of an
Enterprise Search connector.
Replace the obsolete annotation by &V2&.
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.
ESH_ENG_CDSVAL_ES003
- Annotation &1 is obsolete; use &2 ?The SAP error message ESH_ENG_CDSVAL_ES003 indicates that a certain annotation in your Core Data Services (CDS) view is obsolete and suggests using an alternative annotation instead. This typically occurs when SAP has updated its data model or annotations, and the older ones are no longer supported.
Cause:
- Obsolete Annotation: The annotation you are using in your CDS view has been marked as obsolete in the latest version of SAP.
- Version Mismatch: You may be using an older version of a CDS view or an outdated annotation that has been replaced in newer releases.
- SAP Notes: Sometimes, SAP releases notes that deprecate certain features or annotations, which can lead to this error if you are still using them.
Solution:
- Update the Annotation: Replace the obsolete annotation with the recommended one as indicated in the error message. The message will specify the old annotation (&1) and the new one (&2) that you should use.
- Check Documentation: Refer to the latest SAP documentation or release notes for the specific CDS view you are working with. This will provide insights into the changes made and the correct annotations to use.
- Adjust Your CDS View: Modify your CDS view definition to remove the obsolete annotation and include the new one. This may involve changing the syntax or structure of your CDS view.
- Test the Changes: After making the changes, activate the CDS view and test it to ensure that it works as expected without any errors.
Related Information:
By following these steps, you should be able to resolve the error and update your CDS view accordingly.
Get instant SAP help. Start your 7-day free trial now.
ESH_ENG_CDSVAL_ES002
Parameter &1: No fitting @Environment.systemField-annotation
What causes this issue? It does not make sense to use view parameters in general with search views; they are used in a generic application which cann...
ESH_ENG_CDSVAL_ES001
'enabled' must be annotated at a view
What causes this issue? @EnterpriseSearch.enabled can be annotated at view level only.System Response The system issues an error message and will no...
ESH_ENG_CDSVAL_ES004
'expand' must be annotated at an association
What causes this issue? @EnterpriseSearch.expand can be annotated at an association only.System Response The system issues an error message and will...
ESH_ENG_CDSVAL_ES005
'key' must be annotated at an element
What causes this issue? @EnterpriseSearch.key can be annotated at a view element only.System Response The system issues an error message and will no...
Click on this link to search all SAP messages.