Element &1 of CDS view &3 is deprecated. Use element &2 instead.

Message type: E = Error

Message class: LA - ABAP Language Version: Object Restriction Check

Message number: 023

Message text: Element &1 of CDS view &3 is deprecated. Use element &2 instead.



What causes this issue?

In <LB>ABAP for SAP Cloud Platform</>, use of other objects is
restricted to objects which
were released as API for <ZK>Use in SAP Cloud Platform</> or
are in the same software component as the edited object.
IF &[SWITCH]S4H_DOCU_ON_PREMISE& = 'X'.
For further details, see
<DS:ABEN.ABAP_VERSIONS>ABAP Language Versions</>.
ENDIF.


System Response

If the edited object uses a formerly released but now deprecated CDS
view element, this results in a syntax warning. This CDS view element
can either be a field or a public association.


How to fix this error?

Replace the use of deprecated CDS view element &V1& by its successor
&V2&.


Procedure for System Administrators


Error message extract from SAP system. Copyright SAP SE.