Sub topic 6
On-premise: customer-operated S/4HANA
This chapter covers SAP S/4HANA on-premise, the edition where the customer licenses the software and runs the whole stack. It assumes you know the Public and Private Edition basics from earlier chapters, the SaaS, PaaS and IaaS service models, and what SAP ECC is. It also assumes you have seen the shared responsibility split between SAP, partners and customers.
What on-premise means
On-premise S/4HANA is the edition you license and install yourself. The name is historical. The system does not have to sit in your own data center. Many customers run it on hyperscaler infrastructure (IaaS) that they rent and administer. What defines the edition is who operates it, not where the servers are.
The defining characteristics are:
- Single tenant by design. Each system belongs to one customer. There is no shared application layer with other customers.
- Customer-operated. The customer, or a partner it hires, installs, patches, upgrades, monitors and backs up the system.
- Perpetual or term license. You license the software and pay for maintenance. This differs from the subscription model of Public Edition.
- Full classic ABAP access. You can use the ABAP development workbench, modify SAP code, and read any table.
Who operates what
In Public Edition, SAP runs almost everything. In Private Edition, SAP hosts and operates the infrastructure and technical basis, and the customer keeps control of the application content. On-premise reverses this. The customer carries nearly every layer.
| Layer | On-premise responsibility |
|---|---|
| Data center, power, network | Customer, or IaaS provider if rented |
| Servers, storage, virtualization | Customer or IaaS provider |
| Operating system | Customer |
| SAP HANA database | Customer |
| SAP S/4HANA application and kernel | Customer |
| Upgrades and patches | Customer, on its own schedule |
| Backup, disaster recovery, high availability | Customer |
| Business configuration and data | Customer |
| Authorizations and security | Customer |
SAP delivers the software, support packages, security notes and documentation. Applying them is the customer's job.
Release and upgrade cadence
SAP ships a new on-premise release roughly once a year. Each release is a major version, such as 2023 or 2024, followed by feature package stacks and support package stacks. The customer decides when to move to a newer release. This is the largest difference from Public Edition, where SAP upgrades every tenant on a fixed schedule.
Two consequences follow:
- Control. You can freeze a landscape through a critical period, such as a year-end close, and test fully before upgrading.
- Debt. Every release you skip widens the gap. Each release has a mainstream maintenance window, so a system left alone will eventually fall out of it. Custom code and modifications make each upgrade harder.
Plan upgrades as projects with their own test cycles. An on-premise upgrade is not a background event.
Customization freedom
On-premise has the widest extensibility range of the three editions. All of the following are available:
- In-app (key user) extensibility. Custom fields, logic and UI adaptations through released tools.
- Developer extensibility. Both the classic and the ABAP Cloud model. In ABAP Cloud, you use only released APIs and objects.
- Classic extensions. Custom Z objects, user exits, enhancement spots, and direct access to unreleased tables and function modules.
- Modifications. Changing SAP-delivered objects, which is allowed but costly to maintain.
- Side-by-side extensions on SAP BTP, connected through released APIs and events.
This freedom has a cost. Classic code that reads internal tables or calls unreleased function modules can break when SAP changes its internals between releases. The next example reads the material master table MARA directly. It works in classic ABAP on-premise and Private Edition. ABAP Cloud in Public Edition does not allow it.
SELECT SINGLE matnr
FROM mara
INTO @DATA(lv_matnr).Compare it with a class that uses only released APIs. This one follows the ABAP Cloud rules, so it can run in Public Edition, Private Edition and on-premise.
CLASS zcl_edition_probe DEFINITION PUBLIC FINAL CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES if_oo_adt_classrun.
ENDCLASS.
CLASS zcl_edition_probe IMPLEMENTATION.
METHOD if_oo_adt_classrun~main.
out->write( cl_abap_context_info=>get_system_date( ) ).
out->write( cl_abap_context_info=>get_user_technical_name( ) ).
ENDMETHOD.
ENDCLASS.You can run the second class from ADT (ABAP Development Tools in Eclipse) by choosing Run as ABAP Application (Console).
Clean core in an on-premise system
The clean core principle says to keep SAP standard code unmodified and put extensions in upgrade-safe layers. In Public Edition, the platform enforces it. On-premise, nothing enforces it, so discipline replaces enforcement.
Practical measures include:
- Setting ABAP language version rules per package, so new development uses the ABAP Cloud version.
- Running ABAP Test Cockpit (ATC) checks for released-API usage.
- Using the custom code migration app before a conversion to find code that touches obsolete or changed objects.
- Reviewing modifications and retiring those that standard functions now cover.
Migration into on-premise
Customers reach on-premise S/4HANA from SAP ECC by one of three paths:
- System conversion. The existing ECC system is converted in place. Data, configuration and custom code come along. Tools such as the Software Update Manager (SUM) with Database Migration Option (DMO) run the technical steps.
- Greenfield (new implementation). You install a fresh system and migrate only the data you choose. This is the cleanest route to a clean core.
- Selective data transition. You combine parts of both, for example moving selected company codes or historical data into a new system.
Readiness checks run before a conversion. The Simplification Item Check lists areas where S/4HANA differs from ECC. The custom code analysis shows which Z objects need work. Data volume and add-on compatibility are common blockers, so check them early.
Costs and risks
On-premise changes where cost sits rather than removing it.
- Capital and staffing. You pay for hardware or IaaS capacity, and for Basis, database and security administrators.
- Upgrade projects. Each release needs regression testing and code remediation.
- Security. You apply SAP security notes yourself. A delay leaves known vulnerabilities open.
- Availability. You design and test high availability and disaster recovery.
- Support horizon. Mainstream maintenance ends on a published date for each release, and after that you run an unsupported or extended-support system.
When on-premise fits
Choose on-premise when these conditions hold:
- Regulation or contract requires full control over location and operations, such as in some public sector or defense settings.
- The business has deep custom processes that cannot fit the standard Public Edition model.
- The company has strong in-house or partner Basis capability and wants to set its own upgrade timing.
- The landscape must run in an environment SAP does not host, such as an isolated network.
Choose another edition when you want SAP to take over operations, or when you want the fastest regular innovation. Private Edition keeps most customization freedom with SAP running the infrastructure. Public Edition suits companies willing to adopt standard processes in exchange for continuous updates.
Common mistakes
- Treating on-premise as "no work for SAP to do" and skipping release planning until maintenance runs out.
- Equating on-premise with a physical data center. IaaS-hosted systems are still on-premise if the customer operates them.
- Assuming that classic code will survive each upgrade. Obsolete tables and changed data models break it.
- Moving every custom object in a conversion instead of retiring unused code first.
Exercise
A manufacturer runs S/4HANA on virtual machines it rents from a hyperscaler. Its own Basis team installs patches, manages backups and decides when to upgrade. Which edition is this, and which statement about the choice of hosting location is correct?
Show answer
This is on-premise S/4HANA. The edition is defined by who operates the system, not by where the hardware is. Because the customer's own team runs the stack on rented IaaS, SAP does not operate it, so it is not Private Edition.
Exercise
Why does a custom report that selects directly from MARA run on-premise but fail in Public Edition, and what practice lowers upgrade risk on-premise?
Show answer
On-premise allows classic ABAP with access to unreleased objects such as MARA, while Public Edition enforces ABAP Cloud, which permits only released APIs. Writing new code with ABAP Cloud rules and checking it with ATC keeps extensions upgrade-safe even on-premise.