Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Exposing CDS View entity in SEGW

amehta_123411
Newcomer
0 Kudos
717

Hi, Trying to expose CDS view entity with parameters in SEGW as Data model-->Reference--> Data Source and getting error "

CDS-Entity '&1' has parameter without types"

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

)

1 REPLY 1

Jelena_Perfiljeva
Active Contributor
0 Kudos
615

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.