You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: All events are imported, not just the ones you're interested in.
Solution
Create an own external service where you only include the events you're interested in.
Reference this model in your external service. For the example above:
using { sap.s4.beh.businesspartner.v1.BusinessPartner.Created.v1asCreated } from'./CE_BUSINESSPARTNEREVENTS';
serviceOwnExtSrv {
eventBPCreated:projectiononCreated;
}
cds import
cds import <asyncAPI-file> [--as cds]
.srv/external/<someModel>.cds
, which contains all the Events, not just those of interest.cds.requires.<externalSrv>
that references this model.Example:
Business Partner Events from S/4HANA: https://api.sap.com/event/CE_BUSINESSPARTNEREVENTS/overview
cds import ~/Downloads/CE_BUSINESSPARTNEREVENTS.json --as cds
Will create
and
Problem: All events are imported, not just the ones you're interested in.
Solution
Create an own external service where you only include the events you're interested in.
Reference this model in your external service. For the example above:
By checking the service definition of all external services (i.e. remote services in
cds.requires
), ORD can statically scan for all consumed events.The text was updated successfully, but these errors were encountered: