$ cds import API_BUSINESS_PARTNER.edmx
using { API_BUSINESS_PARTNER as abp } from './external/API_BUSINESS_PARTNER.csn';
service BusinessService {
entity A_BusinessPartner as projection on abp.A_BusinessPartner {
key BusinessPartner, Customer, BusinessPartnerFullName, BusinessPartnerGrouping, BusinessPartnerUUID, OrganizationBPName1
}
}
const cds = require('@sap/cds');
module.exports = cds.service.impl(async function() {
const bp = await cds.connect.to('API_BUSINESS_PARTNER');
this.on('READ', 'A_BusinessPartner', async req => {
return bp.run(req.query);
});
});
"cds": {
"requires": {
"API_BUSINESS_PARTNER": {
"kind": "odata-v2",
"model": "srv/external/API_BUSINESS_PARTNER",
"credentials": {
"url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER"
}
}
}
}
$ cds watch
"credentials": {
"url": "https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER",
"headers": {
"APIKey": "<api-key>"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |