Extend SAP S/4HANA in the cloud and on premise with ABAP based extensions

This document provides an overview on the extensibility options for ABAP-based extensions on SAP S/4HANA in the cloud and on-premise and guidelines for project managers, key users, and ABAP developers. تحميل الوثيقة

PUBLICExtend SAP S/4HANA in the cloud andon premise with ABAP based extensionsGuidelines for extension project managers, key users, andABAP developersVersion: 2.3Date: August 2025Owner: SAP BTP ABAP Product Management
© 2025 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences. 1 / 55ACTIVITY LOGVersion 2.3, August 2025Transformation of 3-tier extensibility to clean core extensibility based on clean core level conceptCHAPTER NOTE5 Changed technical extensibility recommendations in line with clean core extensibilityguidance from 3-tier model to ABAP Cloud and classic ABAP development5.1 Changed set up from 3-tier model to governance for the classic ABAP development5.1.1 Added chapter about SAP classic APIs including matching to clean core levels5.1.2 Changed ATC setup with clean core checks5.1.3 Added chapter about clean core governance using ATC exemptions5.1.4 Added chapter about changelog for SAP objects for assessing upgrade stability ifusing SAP internal objects5.1.5 Updated set up summary considering ABAP Cloud and classic ABAP developmentmodels5.1.7 Changed custom code use cases relation from 3-tier model to clean core levels6.1 Changed transformation options for legacy code from 3-tier model to ABAP Cloud andclassic ABAP developmentsVersion 2.2, April 2024Repaired broken links in chapter 4.1Version 2.1, April 2024Minor changes in text for clarification and better understanding.Version 2.0, April 2023CHAPTER NOTEDocument Activity log added.4.2 Added chapter about analytics in ABAP Cloud.4.6 Updated recommendations for BC apps for SAP S/4HANA Cloud Private Edition, andSAP S/4HANA on-premise.
© 2025 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences. 2 / 555.1 Updated recommendations for the setup of the 3-tier model.5.2 Update on recommendations for wrappers.
© 2025 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences. 3 / 55TABLE OF CONTENTSACTIVITY LOG ............................................................................................................................................................. 11 INTRODUCTION................................................................................................................................................... 51.1 MOTIVATION FOR A NEW EXTENSIBILITY MODEL ............................................................................................................. 52 THE SAP S/4HANA CLOUD EXTENSIBILITY MODEL ............................................................................................... 82.1 OVERVIEW OF THE EXTENSIBILITY OPTIONS FOR SAP S/4HANA CLOUD ............................................................................. 82.2 KEY USER EXTENSIBILITY ............................................................................................................................................ 92.2.1 On-stack developer extensibility with SAP S/4HANA Cloud ABAP environment ...................................... 112.3 SIDE-BY-SIDE EXTENSIBILITY USING THE SAP BTP ABAP ENVIRONMENT ........................................................................... 132.4 SUMMARY OF THE EXTENSIBILITY OPTIONS FOR SAP S/4HANA CLOUD ........................................................................... 143 WHEN TO USE WHICH CLOUD EXTENSIBILITY OPTION .......................................................................................153.1 ADDITIONAL ASPECTS TO CONSIDER ........................................................................................................................... 163.2 EXAMPLES ............................................................................................................................................................ 173.2.1 Key user extensibility ................................................................................................................................. 173.2.2 On-stack developer extensibility ............................................................................................................... 173.2.3 Side-by-side extensibility ........................................................................................................................... 174 THE ABAP CLOUD DEVELOPMENT MODEL .........................................................................................................184.1 THE ABAP RESTFUL APPLICATION PROGRAMMING MODEL ........................................................................................... 194.1.1 The big picture .......................................................................................................................................... 194.1.2 Extensibility of RAP business objects (RAP BO) ......................................................................................... 204.2 ANALYTICS IN ABAP CLOUD .................................................................................................................................... 224.2.1 The big picture of embedded analytics in ABAP Cloud .............................................................................. 234.2.2 Extensibility for analytical data models .................................................................................................... 244.3 CLOUD-OPTIMIZED ABAP LANGUAGE ........................................................................................................................ 264.4 ABAP PLATFORM REUSE SERVICES ............................................................................................................................ 264.4.2 Technical reuse services ............................................................................................................................ 274.4.3 Identity and Access Management ............................................................................................................. 284.4.4 Connectivity .............................................................................................................................................. 294.5 SAP S/4HANA BUSINESS APIS, EXTENSION POINTS AND EVENTS.................................................................................... 294.6 BUSINESS CONFIGURATION (BC) .............................................................................................................................. 305 EXTENDING A NEW SAP S/4HANA CLOUD PRIVATE EDITION OR SAP S/4HANA ON-PREMISE SYSTEM ...............325.1 SETTING UP THE GOVERNANCE FOR THE CLASSIC ABAP DEVELOPMENT MODEL .................................................................. 335.1.1 Classic APIs ................................................................................................................................................ 335.1.2 ABAP Test Cockpit setup ........................................................................................................................... 355.1.3 Clean core governance by using ATC exemptions ..................................................................................... 375.1.4 Assessing upgrade stability for usage of internal SAP objects in custom code ......................................... 385.1.5 Setup summary ......................................................................................................................................... 395.1.6 Transformation towards ABAP Cloud ....................................................................................................... 405.1.7 Custom code use cases and their related clean core level ........................................................................ 405.2 CUSTOM WRAPPERS: WHEN AND HOW TO USE CLASSIC ABAP CODE TO MITIGATE MISSING APIS .......................................... 415.3 CLASSIC EXTENSIONS............................................................................................................................................... 425.3.1 Using classic structure extensions ............................................................................................................. 435.3.2 Using classical business logic extension techniques.................................................................................. 435.3.3 Modifications ............................................................................................................................................ 436 MANAGING AND TRANSFORMING EXISTING CODE IN SAP S/4HANA CLOUD PRIVATE EDITION ANDSAP S/4HANA ON-PREMISE ......................................................................................................................................446.1 HOW TO HANDLE EXISTING CLASSIC ABAP CUSTOM CODE IN PARALLEL WITH THE NEW CLOUD READY EXTENSIONS .................... 446.2 HOW TO HANDLE EXISTING CUSTOM CODE IN A RAP COMPLIANT FASHION ........................................................................ 47MORE INFORMATION ................................................................................................................................................48LIST OF FIGURES ........................................................................................................................................................49
© 2025 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to SAP Materials for general audiences. 4 / 55LIST OF TABLES ..........................................................................................................................................................49GLOSSARY..................................................................................................................................................................50