SAP-samples/abap-platform-rap640
A hands-on workshop that wraps the classic, non-released BAPI_PR_CREATE for use in ABAP Cloud on SAP S/4HANA, then builds a draft-enabled RAP shopping-cart app on top of the wrapper.
Works through mitigating a missing released SAP API on SAP S/4HANA Cloud Private Edition and SAP S/4HANA: the exercises wrap the classic function module BAPI_PR_CREATE behind an ABAP Cloud-enabled interface, then build a custom RAP business object and a transactional, draft-enabled Fiori Elements list report app on top of it. The resulting shopping-cart app integrates with the standard SAP Purchase Requisition app in Materials Management through that wrapper. It targets systems from release 2022 of SAP S/4HANA Cloud Private Edition and SAP S/4HANA onward.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerAjinkya PatilContributes to this
In the atlas: contributes to 112@ajinkyapatil8190Andre FischerContributes to this
In the atlas: contributes to 19, wrote 5@anfiscBrian BernardContributes to this
In the atlas: contributes to 64@btbernardCarine Tchoutouo DjomoContributes to this
In the atlas: contributes to 17, wrote 1@CarineTDMatthaeus SchueleContributes to this
In the atlas: contributes to 1@MatthaeusSchuelePeter PersielContributes to this
In the atlas: contributes to 1@peterpersielRich HeilmanContributes to this
Developer Advocate
In the atlas: contributes to 5@rich-heilman7 contributors
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
- Use as
- A reference
As a sample
- Form
- Workshop or CodeJam material
Connections
Changing delivered behaviour without modifying it
Download
README
quoted from SAP-samples/abap-platform-rap640 under Apache-2.0, readRAP640 - Using ABAP Cloud to Build Extensions for SAP S/4HANA Cloud, Private Edition - Mitigating missing released SAP APIs
Description
This repository contains the material for the hands-on session RAP640 - Mitigating Missing Released SAP APIs which is about mitigating missing released SAP APIs when building apps, services, and extensions with the ABAP Cloud development model on SAP S/4HANA Cloud Private Edition and SAP S/4HANA.
Table of Content
- Requirements for attending this workshop
- Overview
- Exercises
- Solution Package
- Known Issues
- How to obtain support
- Further Information
📋Requirements for attending this workshop
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. at least release 2022 of SAP S/4HANA Cloud Private Edition and SAP S/4HANA.
Click to expand!
The requirements to follow the exercises in this repository are:
System access (workshops provided by SAP)
ℹ️ 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. With these system details you can connect via ADT to the system as described in the following how-to-guide.
How to connect with ADT to a preconfigured appliance system
🔎Overview
Learn about the current business scenario and the clean core extensibility model based on the clean core level concept
Click to expand!
About the Business Scenario
In this hands-on workshop, we will guide you through the development of a custom wrapper for the ABAP Cloud enablement of an classic API (a BAPI) for creating purchase requisitions, then a custom RAP BO and UI service on top of it to develop a transactional, design-capable, Fiori Elements-based list report app using RAP. Finally, you'll use your custom API wrapper in your custom RAP BO to integrate your custom app with the standard professional SAP Purchase Requisition app.
The resulting app will look like this:
To set the business context, the scenario is the following: This demo scenario shows a custom and SAP Fiori elements-based shopping cart app built on-stack with RAP. The custom app is integrated with the standard Purchase Requisition app in SAP S/4HANA Materials Management using a custom wrapper on top of the classic API BAPI_CREATE_PR.
About building custom wrappers
You will learn how to apply the ABAP Cloud API Enablement Guidelines for SAP S/4HANA Cloud Private Edition and SAP S/4HANA to consume a classic API. You will learn how to mitigate missing released SAP APIs when working with ABAP Cloud on these two products.
Learn more: Understand the sample scenario how to mitigate a missing released SAP API
🛠Exercises
Follow these steps to build a custom wrapper for the ABAP Cloud enablement of an non-released SAP API for creating purchase requisitions, then a custom RAP BO and a UI service on top of it for a transactional, draft-enabled Fiori Elements list report app. Finally, you'll use your custom API wrapper in your custom RAP BO to integrate your custom app with the standard professional SAP Purchase Requisition app.
Main Exercises
Optional Exercises
| Exercises | -- |
|---|---|
| Exercise 6 - Provide Authorizations to Users for Non-Released Authorization Objects checked by the "Create Purchase Requisition" (BAPI_PR_CREATE) function module | -- |
📤Solution Package
You can import the solution package ZRAP640_SOL into your system* - i.e. at least the release 2022 of SAP S/4HANA Cloud Private Edition and SAP S/4HANA.
ℹ️ Regarding SAP-led events such as "ABAP Developer Day" and "SAP CodeJam":
The solution packageZRAP640_SOLis already imported into your dedicated system used during these events.
🚧 More information coming soon
🔁Recordings
Watch the replay of a webcast on cloud API enablement held during SAP's Devtoberfest in 2023.
📹 Cloud API Enablement on SAP S/4HANA and SAP S/4HANA Cloud Private editions
⚠Known Issues
No known issues.
🆘How to obtain support
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.
Further Information
You can find further information here:
- Blog Post on how to mitigate missing released SAP APIs in SAP S/4HANA Cloud | SAP Community
- Detailed document on ABAP Cloud API Enablement Guidelines | Guide
- ABAP RESTful Application Programming Model (RAP) | SAP Community page
- Most frequently asked questions: ABAP Cloud FAQ | RAP FAQ
- RAP640 Tutorials Group: Mitigate Missing Released SAP API in the 3-tier Extensibility Model | SAP Developers' Center
- Various hands-on workshop materials on ABAP Cloud, including RAP and embedded analytics
License
Copyright (c) 2024-2026 SAP SE or an SAP affiliate company and abap-platform-rap640 contributors. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file; you may not use any file of this project except in compliance with the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the License.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-abap-platform-rap640- JSON
- /artifacts/sap-samples-abap-platform-rap640.json
- MCP
- Connecting an agent