Home - Workshops about the ABAP RESTful Application Programming Model (RAP)
This repository contains the material for the hands-on session RAP100 - Building Fiori Apps with the ABAP RESTful Application Programming Model (RAP).
Table of Content
- Requirements for attending this workshop
- Overview
- Exercises
- Recordings
- Solution Package
- Known Issues
- How to obtain support
- About the ABAP RESTful Application Programming Model (RAP)
- Further Information
To complete the practical exercises in this workshop, you need the latest version of the ABAP Development Tools for Eclipse (ADT) on your laptop or PC and the access to a suitable ABAP system - i.e. SAP BTP ABAP Environment, SAP S/4HANA Cloud Public Cloud, or at least release 2022 of SAP S/4HANA Cloud Private Edition and SAP S/4HANA.
The ABAP Flight Reference Scenario must be imported into the relevant system - e.g. SAP BTP ABAP Environment Trial.
Click to expand!
The requirements to follow the exercises in this repository are:
- Install the latest Eclipse platform and the latest ABAP Development Tools (ADT) plugin
- Create an user on the SAP BTP ABAP Environment Trial (Read exception below)
- Create an ABAP Cloud Project
- Adapt the Web Browser settings in your ADT installation
⚠ Exception regarding SAP-led events such as "ABAP Developer Day" and "SAP CodeJam":
→ A dedicated ABAP system for the hands-on workshop participants will be provided.
→ Access to the system details for the workshop will be provided by the instructors during the session.
This workshop is all about RAP fundamentals; especially about how to use RAP core features when building greenfield implementations.
Click to expand!
In this hands-on session we will guide you through the development of the OData service of a SAP Fiori elements based Travel Processing App with RAP, using the managed business object (BO) runtime implementation with semantic key and internal unmanaged early numbering. We will give you more details on the scenario in the different exercises.
The resulting app will look like this:
The OData service you are going to implement is based on the ABAP Flight Reference Scenario. To set the business context, the scenario is the following: The department responsible for managing worldwide Travels for multiple Agencies is requesting you to build a new Fiori app with draft capabilities for processing (i.e. creating, updating and deleting) Travels.
Below is the simplified data model underlying the app.
Please note:
The purpose of the different exercises is to show you how to implement the different RAP core features - and less on having the perfect business scenario. To remove a certain complexity in the implementation, we will use a very simplified data model with only one BO node, the Travel entity.
For implementation examples with more than one BO node, you can have a look at:
- Workshop DEV260
- RAP Development Guide on the SAP Help Portal: Develop Applications
Follow these steps to build an OData service on top of a draft-enabled RAP Business Object (BO) to develop a transactional, draft-enabled Fiori elements List Report app from scratch using RAP. You will also write an ABAP unit test for it and explore the Entity Manipulation Language (EML).
The exercises below are based on the exercise 1 to 5 from the Beginner Level section.
The following exercises are based on the Exercises 1-9 from the Beginner and Intermediate Level sections.
However, you can perform these exercises in the given order already after Exercise 1 if you want to test the result of the following exercises directly in the real SAP Fiori elements-based Travel app instead of using the ADT preview.
Watch the replay of the virtual workshop on RAP held SAP TechEd in 2022. It contains a compact introduction to RAP and a demonstration of the exercises 1 to 7.
📹 Build and Extend Apps with the ABAP RESTful Application Programming Model
You can import the solution package
ZRAP100_SOL
into your system*.(*) The supported ABAP systems are SAP BTP ABAP Environment, SAP S/4HANA Cloud Public Edition, or at least the release 2022 of SAP S/4HANA Cloud Private Edition and SAP S/4HANA. The ABAP Flight Reference Scenario must available in the system before importing the solution package.
Follow this instructions to import the solution:
- Install the abapGit plugin in your ABAP Development Tools (ADT) for Eclipse if you have not already done so.
- In ADT, create the ABAP package
ZRAP100_SOL
in your system. - Open the abapGit Repositories view in ADT and follow the steps below.
- Create a link to the repository using the Link abapGit Repository window.
📤 Git repository URL: https://github.com/SAP-samples/abap-platform-rap100 - Now pull/import the solution implementation using the context menu Pull....
- Activate the imported development objects (Ctrl+Shift+F3).
No known issues.
Create an issue in this repository if you find a bug or have questions about the content.
For additional support, ask a question in SAP Community.
The ABAP RESTful Application Programming Model (RAP) is at the heart of the ABAP Cloud development model (ABAP Cloud) for implementing transactional scenarios.
ABAP Cloud is the new ABAP development model for building innovative and cloud-ready business apps, services, and extensions that adhere to the principles of clean core extensibility on all SAP S/4HANA editions, both in the cloud and on-premise, as well as on the SAP Business Technology Platform (SAP BTP).
Click to expand!
The ABAP RESTful Application Programming Model (RAP) is an enabler for improving the user experience and innovating business processes in ABAP-based SAP solutions by leveraging SAP Fiori, SAP HANA, and the cloud.
RAP offers a set of concepts, tools, languages, and powerful frameworks for efficiently building cloud-ready, transactional SAP Fiori apps, web APIs, and local APIs in the cloud and on-premise. It is a long-term strategic solution for ABAP development on SAP’s flagship product SAP S/4HANA, in the cloud and on-premise (as of release 1909), as well as on the SAP BTP ABAP Environment.
The illustration below shows the high-level end-to-end development stack when working with RAP.
Learn more: Modern ABAP Development with the ABAP RESTful Application Programming Model (RAP)
You can find further information on the ABAP RESTful Application Programming Model (RAP) here:
- State-of-the-Art ABAP Development with RAP | SAP Community page
- Modernization with RAP (Blog post)
- Most frequently asked questions: ABAP Cloud FAQ | RAP FAQ
- RAP100 Tutorials Mission on SAP Developers Center | SAP Developers' Center
Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.