Professional Documents
Culture Documents
Step 1.
Create a Calculation view in HANA STUDIO for your requirement.
Step 2.
In HANA Studio, open perspective and choose SAP HANA Development.
Step 3.
a) Click on File and choose New Project.
d) Click on Add Workspace, choose HANA system and give your Workspace Name and
click Finish.
Step 4.
Right click on the project and select New XS OData File. Give file name as
ARAgingODataService and click on Finish.
Step 5.
Write code in .xsodata file and Activate it by Right click -> Team ->Activate.
service {
"A_KIM/CV_AR_AGING_CAT_V1.calculationview" as "AR_Aging_oData"
keys generate local "KEYDT"
aggregates always (SUM of "ZTOTAL_AR");
}
annotations
{
enable OData4SAP;}