The following are prerequisite tasks that must be completed before proceeding with this task:
First of all, we need to install some library with this command only if you're trying this in Local development IDE: ( Not required in BAS)
npm i -g @sap/cds-dk
mkdir db/data
touch db/data/payout-reports.csv
touch db/schema.cds
touch srv/cat-service.cds
namespace payout;
entity reports {
key ID : Integer;
Participant : localized String(111);
Position : localized String(1111);
EarningGroup : localized String(1111);
Period : localized String(1111);
Currency : localized String(1111);
Prior_Balance : Decimal;
Earning : Decimal;
Payment : Decimal;
Balance : Decimal;
Processing_Unit : localized String(1111);
Business_Unit : localized String(1111);
}
using {payout as payout} from '../db/schema';
service Payment@(path : '/srv') {
entity reports as
select from payout.reports {*};
annotate Payment.reports with @UI : {
LineItem : [
{Value : ID, Label : 'ID'},
{Value : Participant, Label : 'Participant'},
{Value : Position, Label : 'Position'},
{Value : Period, Label : 'Period'},
{Value : EarningGroup, Label : 'Earning Group'},
{Value : Earning, Label : 'Earning'},
{Value : Currency, Label : 'Currency'},
{Value : Payment, Label : 'Payment'},
{Value : Business_Unit, Label : 'Business Unit'},
{Value : Processing_Unit, Label : 'Processing Unit'}
]
};
};
Paste your downloaded data from SAP Commissions - Payments Workspace
"cds": {
"features": {
"graphql": true
}
}
npm add graphql express-graphql @graphql-tools/schema
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |