This is a test message to test the length of the message box.
Login
ABAP RAP Classic Pattern
Created by Software-Heroes

RAP - Classic Pattern

322

In this article, we look at the Classic Pattern and discuss the use cases of its implementation in ABAP Cloud.



In this article, we will look at the classic pattern for developing RAP objects in the system, discussing the various points of attention and distinctions.

 

Introduction

The ABAP RESTful Application Programming Model is the new model in ABAP for creating Cloud Ready and Clean Core applications. With RAP, you can not only create applications but also provide interfaces for internal and external use. With the latest features, RAP is very flexible in terms of structure and use, which is why we would like to divide the applications into different patterns.

 

Structure

The "Classic Pattern" It is named this way because it embodies the foundation of RAP and thus provides all development possibilities locally. If you want to start learning RAP, you should start with this model. To begin with, here is the legend for the model.

 

The following characteristics serve to differentiate it:

  • Main data is stored locally in its own tables
  • Creation of a separate data model in the managed scenario
  • Search helps from local data, but remote access is also possible

 

 

This behavior has been defined as optional for now, since you can also implement a pure display application. If you want to change the data or further influence the logic, you should also define a behavior and can implement additional logic there, such as validations, determinations or additional actions.

 

Model

In this chapter, we'll take a look at where the model is used and how you can use it in conjunction with search helps.

 

Usage

In addition to the manual development of the entire RAP stack, three different RAP generators are currently available. Once you've learned RAP, the generators will help you create models and applications quickly and easily, significantly reducing development time. The applications then need to be further developed manually.

 

Search Helps

If you implement a search help in the Classic Pattern, the data is usually located in the same system. This makes implementation quick and easy. In this scenario, however, it is also possible to connect a remote source via a custom entity and use it as a value help; this would not initially change the behavior or the type of implementation.

 

Learning

If you are approaching classic development with the ABAP RESTful Application Programming Model, you should start with a simple example. If you already have experience with BOPF and OData, getting started with development should be much easier, as you'll already have internalized the concepts. For more details on learning the new programming model, see the article on Programming Models.

 

More Examples

If you'd like to check out some resources related to the article, you'll find many examples from past articles in our GitHub repository. You can find examples in the following packages in the repository:

 

Conclusion

The Classic Pattern is the standard case in development and should be learned first by you as a developer. This will give you all the basics of RAP development and how the different layers behave.


Included topics:
RAPBTPPatternClassic
Comments (0)



And further ...

Are you satisfied with the content of the article? We post new content in the ABAP area every Friday and irregularly in all other areas. Take a look at our tools and apps, we provide them free of charge.


RAP - Popup Default values

Category - ABAP

How can you provide the user with default values in the popup of an action in RAP? In this article we will extend our application.

01/21/2025

RAP - Popup Mandatory Fields

Category - ABAP

How can you actually define required fields for a popup in RAP? In this article we will go into the details in more detail.

01/14/2025

RAP - Deep Table Action

Category - ABAP

Is it currently possible to pass tables to actions in RAP? This article is intended to provide a better insight into the topic.

01/07/2025

ABAP Cloud - Programming Model

Category - ABAP

Which programming model is used with ABAP Cloud and what can we learn from its predecessor? More details in the article.

01/03/2025

RAP - Side Effects

Category - ABAP

How can you update parts of the Fiori UI without doing a complete refresh? With Side Effects, this is easily possible in ABAP and RAP.

12/27/2024