.
This commit is contained in:
@@ -1 +0,0 @@
|
||||
using from './srv/mashup';
|
||||
@@ -25,16 +25,8 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"[local-hybrid]": {
|
||||
"messaging": {
|
||||
"kind": "file-based-messaging"
|
||||
}
|
||||
},
|
||||
"[hybrid]": {
|
||||
"messaging": {
|
||||
"kind": "enterprise-messaging-shared"
|
||||
}
|
||||
}
|
||||
"[local-hybrid]": { "messaging": { "kind": "file-based-messaging" }},
|
||||
"[hybrid]": { "messaging": { "kind": "enterprise-messaging-shared" }}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
3261
suppliers/srv/external/API_BUSINESS_PARTNER.edmx
vendored
3261
suppliers/srv/external/API_BUSINESS_PARTNER.edmx
vendored
File diff suppressed because it is too large
Load Diff
10
suppliers/srv/external/API_BUSINESS_PARTNER.js
vendored
10
suppliers/srv/external/API_BUSINESS_PARTNER.js
vendored
@@ -1,10 +0,0 @@
|
||||
const cds = require('@sap/cds');
|
||||
|
||||
module.exports = cds.service.impl(function () {
|
||||
const { A_BusinessPartner } = this.entities;
|
||||
|
||||
// https://api.sap.com/event/SAPS4HANACloudBusinessEvents_BusinessPartner/resource
|
||||
this.after('UPDATE', A_BusinessPartner, async data => {
|
||||
await this.emit("BusinessPartner.Changed", { BusinessPartner: data.BusinessPartner });
|
||||
});
|
||||
});
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 30.
|
1
suppliers/test/index.cds
Normal file
1
suppliers/test/index.cds
Normal file
@@ -0,0 +1 @@
|
||||
using from '../srv/mashup';
|
||||
7
suppliers/test/mocked.js
Normal file
7
suppliers/test/mocked.js
Normal file
@@ -0,0 +1,7 @@
|
||||
let { API_BUSINESS_PARTNER:S4 } = cds.services
|
||||
|
||||
// Mocking event emitter according to:
|
||||
// https://api.sap.com/event/SAPS4HANACloudBusinessEvents_BusinessPartner/resource
|
||||
S4.after ('UPDATE', 'A_BusinessPartner', data =>
|
||||
S4.emit ('BusinessPartner.Changed', { BusinessPartner: data.BusinessPartner })
|
||||
)
|
||||
Reference in New Issue
Block a user