Minor cleanups
This commit is contained in:
@@ -5,7 +5,6 @@ module.exports = cds.service.impl(function () {
|
||||
|
||||
// https://api.sap.com/event/SAPS4HANACloudBusinessEvents_BusinessPartner/resource
|
||||
this.after('UPDATE', A_BusinessPartner, async data => {
|
||||
console.log(`>>> BusinessPartner updated ${data.BusinessPartner}`);
|
||||
await this.emit("BusinessPartner.Changed", { BusinessPartner: data.BusinessPartner });
|
||||
});
|
||||
});
|
||||
|
||||
@@ -77,9 +77,9 @@ extend projection CatalogService.ListOfBooks with {
|
||||
supplier.name as supplier
|
||||
}
|
||||
|
||||
// Extend S4 service with not modelled event
|
||||
// Extend S4 service with an event (events are not included in EDMX files)
|
||||
extend service S4 {
|
||||
@topic: 'BusinessPartner/Changed'
|
||||
@type: 'sap.s4.beh.businesspartner.v1.BusinessPartner.Changed.v1'
|
||||
event BusinessPartner.Changed {
|
||||
BusinessPartner: String(10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user