Sub topic 2
Anti-patterns That Break the Core
Assume you know basic SAP S/4HANA processes, REST or OData APIs, cloud tenants, OAuth 2.0, and simple JavaScript. This chapter focuses on choosing an extension boundary that remains stable during upgrades.
Anti-patterns and Clean Alternatives
A clean core keeps the standard ERP system close to its supported state. Avoid changing SAP objects directly, copying business data into uncontrolled tables, or calling unreleased classes and database tables. These choices may solve a short-term need but create upgrade conflicts and hidden dependencies.
| Anti-pattern | Cleaner alternative |
|---|---|
| Modify an SAP standard object | Use a released extension point or API |
| Read internal tables directly | Consume a released OData or REST API |
| Put unrelated custom logic in S/4HANA | Run it side by side on SAP BTP |
| Poll repeatedly for changes | Use a business event where available |
In-App and Developer Extensibility
In-app extensibility lets a key user adapt an application without traditional development. Typical examples include custom fields, forms, and UI changes. It is appropriate when the change belongs directly in the S/4HANA business process and fits the available tools.
Developer extensibility with ABAP Cloud supports governed custom code inside the S/4HANA environment. It uses released APIs and restricted language features. Choose it when the logic needs transactional access close to the core, but still fits the system's upgrade-safe contracts.
Side-by-Side Extensions on SAP BTP
A side-by-side extension runs independently on SAP Business Technology Platform (BTP). It can combine S/4HANA data with other services, expose a separate user interface, or scale independently. It should call released APIs instead of depending on S/4HANA internals.
Runtime and Connectivity Choices
Cloud Foundry is a common choice for CAP applications and managed services. Kyma suits Kubernetes-based workloads and custom container operations. The ABAP environment is useful when the team needs ABAP with cloud controls.
A BTP destination stores the target URL and connection settings separately from application code. A destination can use OAuth 2.0 client credentials for technical access or user propagation when each request must represent the logged-in user. Configure credentials in the destination service, not in source code.
Exercise
Which approach fits a separate application that combines S/4HANA data with external services?
Show answer
A side-by-side extension on SAP BTP, connected through a destination to released S/4HANA APIs.