Thursday, 15 October 2020 08:03

ABAP RESTful Application Programming Model (RAP) – FAQ

Written by Carine Tchoutouo Djomo
Rate this item
(0 votes)
“© 2020. SAP SE or an SAP affiliate company. All rights reserved.” “Used with permission of SAP SE”

This document answers the most frequently asked questions around the ABAP RESTful Application Programming Model (RAP) which offers a standardized programming model to efficiently build enterprise OData-based SAP Fiori UI services and Web APIs optimized for SAP HANA in the cloud as well as on-premise.

General

When should I use RAP?

RAP supports the efficient development of enterprise OData-based SAP Fiori UI services and Web APIs intrinsically optimized for SAP HANA on SAP Cloud Platform ABAP environment as well as on SAP S/4HANA, regardless of whether you want to start from scratch (greenfield implementations) or reuse existing business logic (brownfield implementations).

Where is RAP available ?

RAP is available in the cloud on SAP Cloud Platform ABAP Environment and on-premise on SAP S/4HANA starting with edition 1909.

Which E2E scenarios are supported?

Following end-to-end scenarios can be developed with RAP:

  • SAP Fiori UI services
  • Web APIs
  • Service Consumption (only available in the cloud)

Advantages of RAP in comparison to previous programming models?

In comparison to the ABAP Programming Model for SAP Fiori or the code-based implementation with SEGW, RAP provides a programming model …

  • … as a strategic long-term solution for ABAP development
  • … for the efficient development of SAP Fiori apps and Web APIs, both from scratch (greenfield implementations) and through the integration of legacy code (brownfield implementations)
  • … offering an end-to-end development experience with
    • Standardized architecture and development flow
    • Native testability, documentability and supportability
    • Best practices & development guides
    • High development efficiency
  • … supporting the product qualities
    • User experience: SAP Fiori and SAP HANA
    • Cloud: Scalability out-of-the-box extensibility & verticalization
    • Flexibility: Breakouts for non-standardized implementations

You can find more information in the blog Evolution of the ABAP Programming Model.

Is BOPF part of RAP?

No, the Business Object Process Framework (BOPF) is not part of RAP.

How do I get started with RAP?

The openSAP course “Building Apps with the ABAP RESTful Application Programming Model (RAP)” is a good starting point.

Various getting started materials – such as documentation, videos and tutorials – are provided in the blog Getting Started with ABAP RESTful Application Programming Model.

The local installation of the ABAP Development Tools (ADT) for Eclipse and the access to an appropriate ABAP system (e.g. SAP Cloud Platform ABAP environment trial) are required to carry out hands-on exercises.

Is RAP used in standard SAP software?

Yes.

For example, RAP is heavily used in the SAP S/4HANA development for building new applications (innovations) and renewing existing ones (renovations).

What is on the RAP roadmap?

You can find information about the actual RAP roadmap in the interactive SAP Cloud Platform ABAP Environment roadmap in the SAP Road Map Explorer.

Where do I find the latest features for RAP?

New RAP features are delivered on a quarterly basis on SAP Cloud Platform ABAP Environment and on a yearly basis on-premise on SAP S/4HANA.

Information about the latest delivered features can be found in the official release notes on the SAP Help Portal or in the Help of the ABAP Development Tools (ADT) for Eclipse.

How do I build an SAP Fiori app with RAP?

You have to first build your RAP UI service with the ABAP Developments Tools (ADT) for Eclipse, then develop the application with the SAP Business Application Studio on top of it.

ADT offers the integrated development environment with Eclipse native editors for all the standard development tasks. ADT also offers an integrated SAP Fiori elements app preview.

How do I test my code?

Various software testing techniques can be used to test your RAP service on the ABAP Platform. For example, the test double frameworks – e.g. CDS Test Double Framework and ABAP SQL Test Double Framework –, ABAP Test classes, Test Seams for legacy code and OData Client Proxy.

You can find more information on available ABAP testing techniques in the documentation on the SAP Help portal – under Ensuring Quality of ABAP CodeEnsuring Quality with ABAP Unit – and in the ABAP Testability and Analysis Community on sap.com.

How do I write own documentation for my RAP artefacts?

ABAP Doc is used to provide the documentation for code elements in the ABAP source code.

Knowledge Transfer Documents allow the documentation of various ABAP objects types (e.g. behavior definitions, classes, interfaces, packages, data elements, functions groups, function modules, views, transformations, …). They are supported in the cloud on SAP Cloud Platform and on-premise starting with SAP S/4HANA edition 2020.

How do I do troubleshooting?

The well-known ABAP and CDS troubleshooting tools can be used for the purposes.

You can find more information on available troubleshooting tools in the documentation on the SAP Help portal.

How do I rapidly build a test or PoC app with RAP?

For developers who are already familiar with RAP, an SAP Community initiative driven by Andre Fischer provides a RAP Generator that can help to rapidly build test and PoC applications by generating the required artefacts (e.g. CDS entities, service binding and service definition).

Migration

Existing code available: How should I proceed ?

For brownfield implementation scenarios, where existing code fulfilling certain prerequisites (e.g. agnostic of protocols and  UI technologies) has to be reused, the so-called unmanaged BO runtime implementations is provided.

You can read more on how to develop unmanaged transactional apps in the documentation on the SAP Help portal.

I’m working on an older ABAP release: How can I be prepared for RAP?

If you are working on SAP S/4HANA releases lower than edition 1909, then check out the blog Be Prepared for the ABAP Programming Model for SAP Fiori to find recommendations in this regard. These recommendations are also applicable to be prepared for the ABAP RESTful Application Programming Model (RAP) when working on older ABAP platform releases.

Read 92 times

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.