Skip to Content

SADL Model Type DDIC differ from expected type CDS

Dear SAP OData Experts,

I am trying to create an OData referenced from a CDS View with association

@AbapCatalog.sqlViewName: 'ZDDL_PO_DATA'
@ObjectModel.modelCategory: #BUSINESS_OBJECT
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'PO Data with Association'
define view ZCDS_PO_DATA as select from ekko
association [1] to lfa1 as _ekko_lfa1
    on ekko.lifnr = _ekko_lfa1.lifnr 
association [*] to ekpo as _ekko_ekpo
    on ekko.ebeln = _ekko_ekpo.ebeln 
association [*] to eket as _ekko_eket
    on ekko.ebeln = _ekko_eket.ebeln
{
    key ekko.ebeln,
    ekko.lifnr,
    _ekko_lfa1, // Make association public
    _ekko_eket, // Make association public
    _ekko_ekpo  // Make association public
} 

Then I created an OData definition is SEGW, then right click on data model, then reference

Then I pick the CDS

What could be wrong? I searched that specific message in google but I can't find an exact match.

Best Regards

Andre Julius

1.png (10.7 kB)
2.png (15.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers