Message type: E = Error
Message class: LA - ABAP Language Version: Object Restriction Check
Message number: 021
Message text: &1 &2 is deprecated. Use &3 &4 instead.
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.
For further details, see
<DS:ABEN.ABAP_VERSIONS>ABAP Language Versions</>.
If the edited object uses a formerly released but now deprecated object,
this results in a syntax warning.
Replace the use of deprecated &V1& &V2& by its successor, &V3& &V4&.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message LA021 indicates that a certain functionality, object, or method you are trying to use is deprecated. This means that it is no longer recommended for use and may be removed in future versions of the software. The message typically provides information about what you are currently using (represented by &1 and &2) and suggests an alternative (represented by &3 and &4).
Cause: The cause of this error is that the SAP system has identified that the functionality you are trying to use is outdated and has been replaced with a newer, more efficient, or more secure alternative. This is part of SAP's ongoing efforts to improve their software and encourage users to adopt best practices.
Solution: Identify the Deprecated Elements: Look at the error message to identify what &1 and &2 represent. This will tell you what specific functionality is deprecated. Use the Recommended Alternatives: The message will also provide you
Get instant SAP help. Sign up for our Free Essentials Plan.
LA020 Use of &1 &2 is not permitted.
What causes this issue? In <LB>ABAP for SAP Cloud Platform</>, use of other objects is restricted to objects which were released as API f...
LA015 &1 &2 is part of a deactivated feature. Remove its use.
What causes this issue? In <LB>ABAP for Key Users</>, use of other objects is restricted to objects which were released as API for <ZK...
LA022 &1 &2 is deprecated. See object documentation for replacement.
What causes this issue? In <LB>ABAP for SAP Cloud Platform</>, use of other objects is restricted to objects which were released as API f...
LA023 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 f...
Click on this link to search all SAP messages.