ERPClimb logoERPClimb
BAdI
ABAP Developmentadvanced 7 min read

BAdI Part 10: BAdIs in S/4HANA and Clean Core

Preview · a free account unlocks the full lesson

Key takeaway

See how BAdIs fit clean core: released BAdIs for developer extensibility, Custom Logic app for key user extensibility, BAdIs in RAP business objects, what happens to classic BAdI implementations after conversion, and ATC checks for cloud readiness.

In this lessonShow sections

Visual overview

BAdI Part 10: BAdIs in S/4HANA and Clean Core — learning sheetFlow: In ADT, search released BAdIs for your application area → Open the Custom Logic app (or its documentation) for sales documents and list available BAdIs → Review one classic implementation in your system: which unreleased objects does it use?. Key ideas: RELEASED BADIS; KEY USER: CUSTOM LOGIC APP; DEVELOPER EXTENSIBILITY; RAP AND BADIS. Watch out: Existing classic BAdI implementations often keep working in S/4HANA on-premise, but they may use unreleased objects and are tier 3 until reworked.ERPClimb.com / ABAP / LESSON 10/10 / LEARNING SHEETBAdI Part 10: BAdIs in S/4HANA and Clean Core1 · HOW IT FLOWS1In ADT, search releasedBAdIs for yourapplication area2Open the Custom Logic app(or its documentation)for sales documents and…3Review one classicimplementation in yoursystem: which unreleased…2 · KEY IDEAS EXPLAINEDReleased BAdIsSAP marks BAdIs as released for key userextensibility and/or cloud development (APIstate).In ADT, the "Released Objects" tree orthe API state tab shows this.Key User: Custom Logic AppBusiness contexts (e.g. sales document) offerBAdIs for validations, defaults and field logic.Code editor in the browser, restricted languagescope, test function, publish.Developer ExtensibilityCreate the BAdI implementation in ADT in a packagewith ABAP language version "ABAP for CloudDevelopment".Inside: only released CDS views, classes and APIs;unreleased needs → tier 2 wrapper.RAP And BAdIsSAP's RAP business objects offer released BAdIs orextension points for determinations/validations ofstandard objects.Your own RAP objects usually don't need BAdIsinternally — but you can define BAdIs to letothers extend them.3 · REMEMBER · WATCH OUTRememberBAdIs remain SAP's main extension point in S/4HANA — but for cleancore, use BAdIs released for key user or cloud development.Key user extensibility: the Custom Logic app implements released BAdIsin the browser with restricted ABAP.Developer extensibility: implement released BAdIs in ADT with ABAP forCloud Development, using only released APIs inside.!Watch outExisting classic BAdIimplementations often keep workingin S/4HANA on-premise, but they mayuse unreleased objects and are tier3 until reworked.4 · IN A REAL PROJECTIn an S/4HANA conversion, a company had 70 classic BAdI implementations. ATC custom code checks showed 25accessing tables changed by the simplified data model (e.g. old material ledger or customer/vendor tablesreplaced by business partner). Simple validations moved to the Custom Logic app, complex ones were…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 1 through 9 used BAdIs the classic way; in S/4HANA the same concept continues, but under stricter rules tied to the clean core approach. BAdIs remain SAP's main extension point in S/4HANA, but for clean core development you should use BAdIs that are specifically released for key user or developer (cloud) extensibility rather than arbitrary classic implementations.

Key user extensibility works through the Custom Logic app, which implements released BAdIs directly in the browser using a restricted subset of ABAP. Developer extensibility means implementing released BAdIs in ADT using ABAP for Cloud Development, where only released APIs may be used inside the implementation.

Existing classic BAdI implementations often keep working in S/4HANA on-premise, but they may rely on unreleased objects, which puts them in tier 3 until they're reworked.

SAP marks certain BAdIs as released for key user extensibility, for cloud development, or both — this is their API state, visible in ADT's "Released Objects" tree or on the API state tab. Released BAdIs come with stable interfaces that are safe across upgrades.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.