Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 2.35 KB

File metadata and controls

31 lines (17 loc) · 2.35 KB

Exercise 6 - Create Calculation View and Expose via CAP (SAP HANA Cloud)

In this exercise we will learn how to combine HANA native artifacts, like calculation views, with SAP Cloud Application Programming Model (CAP).

Perform all the steps in 👉 tutorial: Create Calculation View and Expose via CAP (SAP HANA Cloud)

Summary

You've now experienced Calculation View development in the Business Application Studio. For some of you this might have been a big change from HANA Studio. For others coming from SAP Web IDE, the difference isn't really all that great.

But perhaps more importantly you now know how to create a CAP proxy entity to import an existing database artifact into CAP (and therefore also use it in the service layer). This can be done for database tables that weren't modeled in CAP or that come from another schema/container as well as SQL Views.

Questions for Discussion

  1. This was a very basic Calculation View and perhaps everyone in the room is already familiar with Calculation Views; but if new to the topic -- what is a Calculation View and how is it different from a SQL View?

  2. Why did we change from a namespace to a context in steps three?

  3. What is @cds.persistence.exists doing?

  4. What is @cds.persistence.calcview doing?

Further Study

Next

Continue to 👉 Exercise 7 - Create HANA Stored Procedure and Expose as CAP Service Function (SAP HANA Cloud)