Use the SAP Cloud SDK in the SAP Cloud Application Programming Model
November 18, 2020
Intermediate
40 min.
Create a SAP Cloud Application Programming Model project to call OData services using the SAP Cloud SDK on Cloud Foundry.
You will learn
- How to integrate the SAP Cloud SDK into the SAP Cloud Application Programming Model
- How to write a custom event handler for CAP Java
- How to deploy an application to SAP Cloud Platform Cloud Foundry
- How to create service that reads/writes business partners from S/4HANA and exposes them as SAP Cloud Application Programming Model
Prerequisites
- SAP Cloud Application Programming Model
- Basic knowledge of Spring Boot and Java (optional)
- An account on Cloud Foundry
SAP Cloud Application Programming Model enables you to quickly create business applications by allowing you to focus on your business domain. It offers a consistent end-to-end programming model for full-stack development on SAP Cloud Platform.
However, this raises the question how this interacts and integrates with other SAP frameworks that SAP has introduced over the past year such as the SAP Cloud SDK.
In particular, you will learn how to integrate the SAP Cloud SDK into the SAP Cloud Application Programming Model. And how the SAP Cloud SDK allows you to develop, extend and communicate with other SAP solutions.
Also check out the full documentation on how the Cloud SDK integrates with CAP.
Step 1: Create SAP Cloud Application Programming Model project
Step 2: Define a data model
Step 3: Define a service
Step 4: Integrate SAP Cloud SDK
Step 5: Create Java class for event handler
Step 6: Understanding the read and write methods
Step 7: Run the mock server
Step 8: Run the application
Step 9: Create/read data through Postman
Step 10: Deploy and configure mock server on cloud foundry
Step 11: Deploy application to Cloud Foundry
Navigate tutorial steps
-
Step 1: Create SAP Cloud Application Programming Model project
-
Step 2: Define a data model
-
Step 3: Define a service
-
Step 4: Integrate SAP Cloud SDK
-
Step 5: Create Java class for event handler
-
Step 6: Understanding the read and write methods
-
Step 7: Run the mock server
-
Step 8: Run the application
-
Step 9: Create/read data through Postman
-
Step 10: Deploy and configure mock server on cloud foundry
-
Step 11: Deploy application to Cloud Foundry
- Back to Top