Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Home - RAP Managed BO Runtime Implementation

RAP100 - Build Fiori Apps with the ABAP RESTful Application Programming Model (RAP)

Description

This repository contains the material for the hands-on session RAP100 - Building Fiori Apps with the ABAP RESTful application Programming Model (RAP).

Requirements for attending this workshop

^Top of page

In order to participate in this hands-on session, you MUST have installed the latest version of Eclipse and the latest version of the ABAP Development Tools (ADT) in Eclipse.
Please check the following two short documents how to do this if you have not already done it:

You also need a user on SAP BTP ABAP environment – for example, on the SAP BTP Trial.
Please check the following tutorial if you do not have a working account yet:

Overview

This workshop is all about RAP fundamentals; especially about how to use RAP core features when building greenfield implementations.

In this hands-on session we will guide you through the development of the OData service of a SAP Fiori elements based Travel Processng 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:

Travel App

The Fiori elements bases Travel app 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.

Travel 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:

About the ABAP RESTful Application Programming Model

^Top of page

The ABAP RESTful Application Programming Model (RAP) is a set of concepts, tools, languages, and powerful frameworks provided on the ABAP platform. It supports the efficient development of innovative and cloud-ready enterprise applications, as well as the extension of SAP standard applications in an upgrade-stable way in the cloud and on-premise.

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. It is a long-term strategic solution for ABAP development on SAP’s flagship product SAP S/4HANA, cloud and on-premise (as of release 1909) editions, as well as on the SAP BTP ABAP Environment.

Read more: Modernization with RAP

The illustration below shows the high-level end-to-end development stack when working with RAP.

RAP Big Picture

Exercises

^Top of page

Follow these steps to build a RAP-based simple App with a helper class and write various ABAP unit tests for it.

Exercises Estimated time
Getting Started --
Exercise 1: Create Database Table and Generate UI Service --
Exercise 2: Enhance the BO Data Model --
Exercise 3: Enhance the BO Behavior – Numbering --
Exercise 4: Enhance the BO Behavior – Determinations --
Exercise 5: Enhance the BO Behavior – Validations --
Exercise 6: Enhance the BO Behavior – Actions (optional) --
Exercise 7: Enhance the BO Behavior – Dynamic Feature Control (optional) --
Exercise 8: ABAP Unit Testing with the Entity Manipulation Language (optional) --

How to obtain support

^Top of page

Support for the content in this repository is available during the actual time of the online session for which this content has been designed. Otherwise, you may request support via the Issues tab.

Further Information

^Top of page

You can find further information on the ABAP RESTful Application Programming Model (RAP) here:

License

Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.