2023 Nov 14 8:17 PM
Hi, Trying to expose CDS view entity with parameters in SEGW as Data model-->Reference--> Data Source and getting error "
Any insights will be helpful. Below is the view:
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Cube for ARDR Category'
@Metadata.ignorePropagatedAnnotations: true
@VDM.viewType: #CONSUMPTION
@Analytics.dataCategory: #CUBE
@OData.publish: true
@ObjectModel.usageType:{
serviceQuality: #X,
sizeCategory: #M,
dataClass: #MIXED
}
define view entity ZCD_FI_C_ARDR_CATEGORY
with parameters
key_date : audat,
bukrs : bukrs,
audat : audat
as select from ZCD_FI_TF_ARDR_CATEGORY
( clnt:$session.client,
key_date : $parameters.key_date,
bukrs : $parameters.bukrs,
audat : $parameters.audat
)
2023 Nov 21 7:50 PM
It's not going to work but I also have to ask why are you doing this? This specific view is defined as a CUBE, so it is clearly not meant to be used in such a way.
There is a good question with some insights about CDS views with parameters, hope it helps to understand more about how it works.