Skip to Content
0
Jan 20, 2020 at 06:10 AM

How to resolve Error reading InfoProvider for CDS view?

407 Views

Hello Experts,

I am getting error reading Info Provider for CDS view while compling , you can see my CDS consumption view code below.

@AbapCatalog.sqlViewName: 'ZCPRCNDS'

@AbapCatalog.compiler.compareFilter: true

@AbapCatalog.preserveKey: true

@AccessControl.authorizationCheck: #CHECK

@EndUserText.label: 'Consumption View'

@VDM.viewType:#CONSUMPTION

@Analytics.query: true

define view ZP_CO_PRICING_CONDITIONS as select from ZP_BO_PRICING_CONDITIONS {

@EndUserText.label: 'Sales org'

key sales_org,

@EndUserText.label: 'Dis Channel'

key distribution_channel,

@EndUserText.label: 'Customer'

key customer,

@EndUserText.label: 'Material'

key material,

@EndUserText.label: 'Material Text'

material_text,

@EndUserText.label: 'Material Group'

material_group,

@EndUserText.label: 'Material Group Text'

material_group_text,

@EndUserText.label: 'Purchase Cost (PB00)'

@Semantics.amount.currencyCode: 'curr_purchase_cost'

@DefaultAggregation: #SUM

purchase_cost,

@EndUserText.label: 'Purchase Cost Currency'

@Semantics.currencyCode: true

curr_purchase_cost,

@EndUserText.label: 'Sales Price (PR00)'

@Semantics.amount.currencyCode: 'curr_sales_price'

@Aggregation.default: #SUM

sales_price,

@EndUserText.label: 'Sales Price Currency'

@Semantics.currencyCode: true

curr_sales_price

}

Actually i would like to create live data model using this CDS view but i am not able to do that. i am getting info provider errors as shown in below screenshot.

Can any one please help me out from this problem.

Attachments

livedatamodel.png (133.3 kB)