Day 1:Introduction to SAP CAP(Cloud Application
Programming Model)
Table of Contents
Introduction to SAP CAP(Cloud Application Programming Model) .......................... 1
Getting Started with BTP and BAS ..................................................................................1
Exercise 1 Introduction to CAP ......................................................................................2
Step 1: Go to hana trial account ....................................................................................................... 2
Step 2:Click SAP Business Application Studio and Create dev space (Service should be running) .... 3
Step 3: Click capb2p ........................................................................................................................ 3
Step 4: Create project ....................................................................................................................... 4
Step 5: Select CAP project from the project template ....................................................................... 4
Step 6: Provide the project name ...................................................................................................... 5
Step 7: Check if your project name added into workspace ................................................................ 5
Step 8:Create a new file under DB folder .......................................................................................... 6
Stpe 9: Add incident code ................................................................................................................. 6
Getting Started with BTP and BAS
• Get a trial or free tier account on SAP BTP
• Set up SAP Business Application Studio
Why I'm Learning SAP CAP as an ABAP Developer?
As an ABAP developer, I’ve always believed in the power of staying ahead of the
curve. With the tech landscape evolving rapidly, it’s crucial for us to adapt and grow.
• The world of SAP is moving towards cloud solutions, and CAP is at the
forefront. Learning CAP ensures that our skills remain relevant and in-
demand, opening doors to exciting new opportunities.
• CAP introduces you to modern languages like JavaScript and frameworks like
Node.js. It’s not just about adding new tools to your kit; it’s about expanding
your thinking and problem-solving approaches.
Let’s embrace the future together. By learning CAP, we not only enhance our
individual careers but also contribute to the overall growth and innovation within the
SAP community.
SAP ABAP RAP Vs SAP CAP
Target Audience:
• RAP is more suited for traditional ABAP developers and those focusing on SAP
S/4HANA, whereas CAP is aimed at developers looking to leverage modern
cloud-native technologies and languages.
Development Environment:
• RAP maintains a strong ABAP-centric development environment, while CAP
adopts a more diverse environment, utilizing JavaScript/TypeScript and
Node.js.
• Deployment Scenarios: RAP offers flexibility for both on-premise and cloud
deployments, while CAP is optimized for cloud-first scenarios.
Integration:
• RAP integrates deeply with SAP S/4HANA, making it ideal for enhancing and
extending existing SAP solutions. CAP, on the other hand, is built for seamless
integration with various cloud services, providing more versatility in a multi-
cloud landscape.
Both RAP and CAP have their unique strengths and are designed to cater to different
needs within the SAP ecosystem. Choosing between them depends on your specific
requirements, existing infrastructure, and development expertise.
Exercise 1 Introduction to CAP
Step 1: Go to hana trial account
https://cockpit.hanatrial.ondemand.com/trial/#/home/trial
Step 2:Click SAP Business Application Studio and Create dev space
(Service should be running)
Step 3: Click CAP BTP
You will land up in the initial screen
Step 4: Create project
Step 5: Select CAP project from the project template
Step 6: Provide the project name
Step 7: Check if your project name added into workspace
Step 8:Create a new file under DB folder
File name should be “data-model.cds”
Step 9: Add incident code
Code for Add incidents
namespace incidents.mgt;
entity Incidents {
key ID : UUID;
title : String;
Sample code Screenshot
Note:
I'm excited to share more insights on SAP Cloud Application Programming (CAP) with
you. However, due to a busy schedule with office work and German classes, I'll need to
continue our series in the next post.
Thank you for your understanding, and I look forward to diving deeper into CAP with you
soon. Keep an eye out for the upcoming updates!
Day 2:
Teched 2023 :Reference Material
https://github.com/SAP-samples/teched2023-AD264/tree/main
Reference
https://cap.cloud.sap/docs/get-started/learning-sources