Message type: E = Error
Message class:  SADL_GW_DT_CDS - Messages CDS Checks 
Message number: 002
Message text: Calculated field &1 is not allowed.
In the CDS view (consumption view), a calculated field is defined:
e.g.: so.NetAmount + so.TaxAmount as GrossAmount
A field can only be calculated using a calculation exit.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Create an ABAP class (CL_xxx_EXIT) which implements the interface
IF_SADL_EXIT_CALC_ELEMENT_READ where the field is calculated.
Add the annotations to the field in the CDS view (consumption view):
@ObjectModel: { virtualElement : true<(>,<)>
virtualElementCalculatedBy: 'ABAP:CL_xxx_EXIT'
}
cast( 0 as MYAMOUNT ) as GrossAmount<(>,<)>
Contact the corresponding developer of the CDS view to correct the
error.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message SADL_GW_DT_CDS002 indicates that a calculated field is not allowed in the context of the operation you are trying to perform. This error typically arises when working with Core Data Services (CDS) views in SAP, particularly when using the SAP Gateway or when trying to expose CDS views as OData services.
Cause: Calculated Fields: The error occurs because the CDS view contains a calculated field that is not supported in the context of the operation. This can happen if the calculated field is not defined correctly or if it is not allowed to be used in the specific scenario (e.g., in an OData service). OData Service Limitations: Certain calculated fields may not be compatible with the OData service due to the way they are defined or the data types involved. Data Model Constraints: The underlying data model may impose restrictions on the use of calculated fields, especially if they are not
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
SADL_GW_DT_CDS001 Join &1 is not allowed.
What causes this issue?  A join is used in the SELECT statement in the consumption CDS view. This is not allowed.System Response  The system issues an...
SADL_GW_DT_CDS000 CDS Modeling Check (SADL/BOPF)
What causes this issue?  This ATC check evaluates annotations and CDS modelling to prevent unexpected runtime issues Examples: - Transactional consump...
SADL_GW_DT_CDS003 Association &1 is exposed multiple times.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SADL_GW_DT_CDS004 Data source &1 is not a transactional CDS view.
What causes this issue?  The consumption view uses the annotation ObjectModel.transactionalProcessingDelegated<(>,<)> but the underlying C...
Click on this link to search all SAP messages.