on 09-05-2017 11:48 AM
Hi,
I copied the CDS view I_GLACCOUNTINCHARTOFACCOUNTS and created a new one Z2I_GLACCOUNTINCHARTOFACCOUNTS. The intention is to create the same master data without the hierarchy association, but i get the error "no representative key element".
Where is the error? the CDS view is exactly the same as the original but i cannot correct the error and i dont know how to correct the problem.
I have the following CDS definition:
@EndUserText.label: 'G/L Account In Chart Of Accounts'
@Analytics: {dataCategory: #DIMENSION, dataExtraction.enabled: true} @VDM.viewType: #BASIC @AbapCatalog.sqlViewName: 'ZZZIFIGLAcc' @ObjectModel.representativeKey: 'GLAccount2c'
//@AccessControl.authorizationCheck: #CHECK
@AbapCatalog.buffering.status: #NOT_ALLOWED @ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #MASTER @ObjectModel.usageType.serviceQuality: #A
@ClientHandling.algorithm: #SESSION_VARIABLE @Metadata.ignorePropagatedAnnotations: true
//@AccessControl.authorizationCheck: #CHECK
and the key fields:
@ObjectModel.foreignKey.association: '_ChartOfAccounts' //Inserted by VDM CDS Suite Plugin
key ska1.ktopl as ChartOfAccounts,
@ObjectModel.text.association: '_Text'
// @ObjectModel.Hierarchy.association: '_GLAccountHierarchyNode'
key ska1.saknr as GLAccount2c,
Try adding a representative key via annotation:
@ObjectModel.representativeKey: '<fieldname>'
Regards,
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.