BAdI Part 5: Single-Use vs Multiple-Use BAdIs
Preview · a free account unlocks the full lesson
Understand how the "multiple use" setting changes BAdI behaviour: several implementations running in sequence, no guaranteed order, CHANGING parameters in multiple-use BAdIs, single-use BAdIs that return values, conflicts between implementations and how to manage several teams in one BAdI.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 4 of this series compared the BAdI generations; this lesson looks at what happens when more than one team implements the same BAdI. A multiple-use BAdI runs every active implementation whose filter matches, one after another; a single-use BAdI runs exactly one implementation, or its fallback, and this is typical when the method actually returns a value.
Multiple use is a setting in the BAdI definition itself, marked in SE18 as "Multiple Use" — ME_PROCESS_PO_CUST is a good example, where a purchasing team, a finance team, and a logistics project could each have their own implementation.
All of them run, and each can set CH_FAILED or change CHANGING data; the order between them isn't defined by default, though new BAdIs allow a sort sequence to be configured in some releases through the implementation's layer/sort settings (BADI_SORTER) — don't rely on that ordering unless it's actually documented.
Because of this, multiple-use BAdIs cannot have EXPORTING or RETURNING parameters at all; they rely on CHANGING instead, so that each implementation sees whatever changes the previous ones already made.
Single use allows only one active implementation per filter combination — trying to activate a second one produces an error. Because there's never more than one implementation running, its methods can safely return values through EXPORTING or RETURNING, with no conflict over whose result should win; a fallback class supplies the default behavior when nobody has implemented the BAdI at all.
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
Interview questions on this topic
Related SAP topics
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
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.