use prefix

This commit is contained in:
D065023
2019-12-16 20:22:12 +01:00
parent 8f11de5430
commit dfea19334d
2 changed files with 5 additions and 2 deletions

View File

@@ -18,7 +18,10 @@
"API_BUSINESS_PARTNER": {
"kind": "odata",
"model": "srv/external/API_BUSINESS_PARTNER",
"credentials": { "destination": "cap-api532" }
"credentials": {
"destination": "cap-api532",
"prefix": "sap/S4HANAOD/c532/BO"
}
},
"messaging": {
"kind": "enterprise-messaging"

View File

@@ -32,7 +32,7 @@ const _queriesToUpdateDifferences = (ownAddresses, remoteAddresses) =>
})
.filter(el => el)
bupaSrv.on('sap/S4HANAOD/c532/BO/BusinessPartner/Changed', async msg => {
bupaSrv.on('Changed', 'BusinessPartner', async msg => {
console.log('>> Message:', msg.data)
const BusinessPartner = msg.data.KEY[0].BUSINESSPARTNER