Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
SteffenMattes
Advisor
Advisor

CDS-based BOPF to RAP Migration Tool

Have you built CDS-based BOPF business objects using the ABAP Programming Model for SAP Fiori and ever wondered whether and how they can be integrated into ABAP RESTful Application Programming Model (RAP)

With SAP S/4HANA 2023 and SAP S/4HANA Cloud Private Edition 2023, the long-awaited migration tool is now available for pilot customers.

Follow the instructions provided in SAP Note 3392337 to enable the tool for your system.

Upgrade your existing CDS-based BOPF BOs

But why should you migrate your existing business objects (BOs) based on Core Data Service (CDS) and the Business Object Processing Framework (BOPF) to RAP?

RAP is an essential element of ABAP Cloud and offers great new concepts and features to enhance and interact with RAP business objects:

  • Interact programmatically with RAP BOs using the Entity Manipulation Language (EML),
  • easily expose RAP BOs as OData V2 or V4 services for Integration Services or SAP Fiori,
  • define and raise RAP Business Events,
  • use or enable developer extensibility for modification-free enhancements,
  • apply the same standard development model as used in SAP S/4HANA. 

You can benefit from these capabilities and enhance your business object with new RAP features while reusing your implemented business logic. Your existing OData service and Fiori application can continue to be used as well. Nevertheless, adapting to the RAP standard by modernizing your service exposure to service definition and service binding is a worthwhile investment.

CDS-based BOPF to RAP Migration and ABAP Cloud

A migration of your CDS-based BOPF BO opens the possibility to enable your BO for consumption in the 3-Tier Extensibility Model of ABAP CloudA new RAP BO Interface with release contract Use System-Internally ( Contract C1 ) and visibility Use in Cloud Development can be defined for the migrated BO. The BOPF BO remains in Tier 3 and therefore is not part of ABAP Cloud. However, the business logic can now be consumed in ABAP Cloud via the released RAP BO interface.

The Migration Tool

The migration tool is integrated into ADT and can be easily accessed by right-clicking on your BOPF BO in the Project Explorer and then selecting RAP Business Object > Migrate.  

MartinBretzer_0-1707408036950.png

The tool provides two different modes:

  • A simulation mode for documenting results in a log without making any changes,
  • a migration mode for migrating the artifacts in the system.

In both cases, the tool analyzes your CDS-based BOPF BO and underlying CDS views and provides information on the necessary pre- or post-processing steps required for a successful migration to RAP.

The migration tool provides a lot of support and automated steps for the migration process. Nevertheless, the migration of a CDS-based BOPF BO to a RAP BO can be a complex task. Therefore please make sure to consider the messages provided by the tool, as well as the constraints documented in the migration guide.

Check out the Migration Guide in the SAP help portal to start your migration journey 😊  

Useful Links

Migration Guide

RAP Online Documentation

ABAP Cloud: Background Concepts and Overview

3 Tier Extensibility Model

SAP Programming Model for SAP Fiori

1 Comment