on 05-28-2023 1:04 PM
Dear All,
I am trying to create a CDS views as "Dimension", this reads the MARC data and below is the code.
i am receiving the below error "- No Assoc. found for Key Field WERKS. Either add Assoc. or remove DataCat #DIMENSION [Analytics]".
@AbapCatalog.sqlViewName: 'YVLAK_ATTR01'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'YLAK_ATTR01'
@Analytics: { dataCategory:#DIMENSION , dataExtraction.enabled:true }
@ObjectModel.representativeKey: ['Matnr','Werks']
define view YLAK_ATTR01 as select from marc {
key matnr as Matnr,
key werks as Werks,
pstat as Pstat,
lvorm as Lvorm
}
What could be the possible fix, please help and what could be the reason.
Hi,
Cds view giving error because of Multiple keys @ObjectModel.representativeKey: ['Matnr','Werks']
Please refer the below blog for fix
https://blog.sap-press.com/how-to-create-a-basic-interface-core-data-services-view-with-abap
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.