Adding a Custom Node in SPRO – Because ABAPers Are the Real MVPs
21 February 2025 · By Prane Kumar
Let’s be honest: whether you love them or find their code a mystery, ABAP developers are the backbone of the SAP world. You might automate processes,…
abap
Basant Singh · 29 October 2021

Hello Technophiles!!
Welcome to the third part of our blog series on ABAP RAP. In the first two parts, we had discussed various programming models of ABAP, learned about ABAP RAP, devised an approach for our scenario, and divided it into seven steps. We also looked at the first two steps of our solution. If you haven’t gone through our previous blogs, we recommend you to first go through the same, understand the scenario and implement the first two steps as described here.
Not all third parts are bad
Credit: Between two ferns
In this post, we are going to discuss the third and fourth steps:
Please make sure you check the GitHub Repository.
Before looking at the creation of interface views, we need to understand what they mean and what purpose they serve. So here we go!!
In CDS (Core Data Services), interface views are those views that are created on top of database tables It is not supposed to do anything complex. A basic interface view is used to select data from a single database table and does not make any change/calculation on any database table.
Purpose of interface view :
Now that we have learned about interface views, let’s get straight into how we can create one.
Note: There will be three interface views, one for each table we created in earlier blog so that they can be used in the further development.
Now let’s see how one can create a projection view.
Projection view is used to mask unnecessary fields and display only fields which are required. This provides flexibility in the consumption of service as the same business object can be extended.
Projection view are service agnostic, meaning, for different services different projections have to be created. For example, we will create two services, one for HR and another for HR Manager and for each we will have different projection.
Note: There will be four projection views in total for two different database tables.
With this, we come to the end of this blog part. We have completed the third and fourth steps of our solution. Let’s now take a break here and digest these steps better. In this blog post, we implemented two more steps for our hands-on scenario on hiring. We also understood the use and application of interface view and projection view.
In the upcoming parts of our blog, we are going to learn about behavior definition, behavior projection, and behavior implementation. Stay connected and keep learning with us.
That’s it for now, we’ll continue on our journey of learning ABAP RAP soon. Till then, goodbye and happy learning!!
Hold on, did you forget to check out the GitHub repository??
Don’t worry, we won’t let that happen.
Here is the link for you. Just go there, understand each step more clearly and enjoy!!
Similar Posts
21 February 2025 · By Prane Kumar
Let’s be honest: whether you love them or find their code a mystery, ABAP developers are the backbone of the SAP world. You might automate processes,…
2 July 2024 · By Tanisha Gupta
On May 31st, 2024, I had an opportunity to attend SAP Stammtisch Plus in Gurgaon, an event that brought together industry professionals and experts…
7 August 2023 · By Basant Singh
Introduction In the world of development and custom requirement, the ability to customize standard applications without modifying the original source…
Talk to our SAP SuccessFactors, S/4HANA and Workday integration experts about your landscape.