Sub topic 1
Extensibility options in SAP S/4HANA
Prerequisites
Assume that you can navigate the SAP Fiori launchpad and know basic SAP S/4HANA objects such as products, business partners, and sales orders. Familiarity with data types and basic ABAP or SQL is useful.
Extensibility options
SAP S/4HANA provides three main extension approaches:
- Key user extensibility lets business experts add fields, simple logic, custom CDS views, and custom business objects through apps such as Custom Fields and Logic.
- Developer extensibility lets developers build more complex extensions in the ABAP environment. It uses released APIs and extension points.
- Side-by-side extensibility runs outside the SAP S/4HANA core, commonly on SAP BTP. It suits independent applications, integrations, and processes that should have their own lifecycle.
Choose the approach based on complexity, ownership, and lifecycle needs.
Clean core and upgrade stability
A clean core means that standard SAP code remains unchanged. Key user extensions add behavior through supported configuration and extension points instead of modifying standard objects.
This separation reduces conflicts during upgrades. It also makes testing and troubleshooting easier because custom behavior is easier to identify. The trade-off is that key user tools have limits. They cannot replace every custom application or unrestricted modification.
> callout tip > Prefer the smallest extension approach that meets the requirement. Move to developer or side-by-side extensibility when the key user tools cannot express the required behavior.
Roles and authorizations for key users
A key user needs access to the relevant extensibility apps and business catalogs. The exact role names depend on the SAP S/4HANA edition and release. An administrator typically assigns permissions to:
- Open Custom Fields and Logic.
- Create and edit fields or custom logic.
- Use the required extensibility business context.
- Publish changes.
- Transport extensions when the landscape uses controlled transports.
Authorization to create an extension does not automatically grant authorization to view the business data that the extension affects. Test both permissions separately.
Working in the Custom Fields and Logic app
In the app, select a business context, create the field, define its label and type, then publish it. After publication, enable the field for supported UIs, reports, forms, or APIs. A key user field commonly receives a generated identifier beginning with YY1_.
Custom logic can implement a supported BAdI. It must use released objects:
SELECT SINGLE ProductType
FROM I_Product
WHERE Product = @lv_product
INTO @lv_product_type.Exercise
Exercise
Which extensibility approach should you try first for a simple additional field on a sales order?
Show answer
Key user extensibility through the Custom Fields and Logic app, provided the required business context and usage are supported.