Skip to Content
0
Jun 29, 2020 at 08:02 AM

Annotation-based OData publishing fails: `Unknown entity 'EBAN' type 'CDS'

714 Views Last edit Jun 30, 2020 at 11:04 AM 2 rev

I am trying to create Odata-service based on CDS view via @OData.publish: true and stuck at this error. Basically these are two dumps that follows in turn: ASSERTION_FAILED and CALL_FUNCTION_REMOTE_ERROR

They goes one after one when I try to activate (by Add service/Get service) in /IWFND/MAINT_SERVICE

@AbapCatalog.sqlViewName: 'ZMD_C_PUR_REQ3'
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Consumption View Purchase Requisition'


@ObjectModel.semanticKey: 'banfn'


@ObjectModel.transactionalProcessingDelegated: true


@ObjectModel.deleteEnabled: true
@ObjectModel.updateEnabled: true


@ObjectModel.entityChangeStateId: 'last_change'


@OData.publish: true
define view ZMD_C_PUR_REQ_03 as select from eban {
    key mandt,
    key banfn,
    key bnfpo,
    statu as status,
    @Semantics.systemDate.lastChangedAt: true
    erdat as last_change
}

What could be the reason of such error?