Where exactly do implicit enhancement options exist, how do you create one, and why do experienced developers treat them as the last resort?
Say your answer out loud first.
Practise another way
Implicit options exist without SAP doing anything. They sit before the first and after the last line of every method, function module and form, at the end of includes and programs, and in a few declaration places.
I make them visible in the ABAP Editor with Show Implicit Enhancement Points, then create an enhancement implementation with a source code plug-in.
They are the last resort because SAP never promised the surrounding code stays the same, they cannot be used in ABAP Cloud, and clean core puts them at level D.
Where they are (ABAP keyword documentation):
- After the last line of executable programs, function pools, module pools, subroutine pools and includes.
- Before the first and after the last line of every procedure (method, function module, subroutine), that is right after the opening statement and before
END.... - At the start and end of an existing source code plug-in.
- At the end of a visibility section of a local class, at the end of a parameter list of local methods, and inside
BEGIN OF ... END OFstructure definitions. - For global classes and function modules, the visibility sections and parameter interfaces also have implicit options, maintained in the Class Builder and Function Builder.
Where they are not: AMDP methods have none. Some includes offer none: an include that is not part of a compilation unit, is included several times, or is shared by several programs without a selected master program.
The reason is that the plug-in must belong to exactly one compilation unit.
How to create one (classic SAP GUI tools)
- Open the SAP object in the ABAP Editor and switch to enhancement mode (the spiral Enhance button).
- Choose Edit > Enhancement Operations > Show Implicit Enhancement Points.
- On the marked line, create an enhancement implementation (customer namespace, own package, transport request) and code between
ENHANCEMENTandENDENHANCEMENT.
ENHANCEMENT 1 zei_check_vendor. "start of an SAP method
IF zcl_vendor_rules=>is_blocked( iv_lifnr ) = abap_true.
RAISE EXCEPTION NEW zcx_vendor_blocked( ).
ENDIF.
ENDENHANCEMENT.
Even here, keep the plug-in to one call into your own class.
Why it is the last resort
- No contract. An explicit option or BAdI is a promise about where and with what data you are called. An implicit option is just a line number in SAP's current code; a support package can move the logic, rename variables or skip the method entirely.
- Hidden behaviour. Nothing in SAP's code tells the next developer that a plug-in runs there.
- Clean core. SAP's clean core white paper lists implicit enhancements among the not recommended techniques at level D. SAP Learning treats implicit begin/end enhancements as indirect modifications to eliminate during S/4HANA projects. ATC's Allowed SAP enhancement technologies check reports them.
- Not available in ABAP Cloud, SAP S/4HANA Cloud Public Edition or the ABAP environment.
Use one only when no BAdI, exit or explicit option fits, document why, and record it as technical debt.
Lists the exact places, shows the creation path, keeps the plug-in thin, and gives the level D and no-contract reasons.
Says 'implicit enhancements can be put anywhere in SAP code' and uses them as the first choice because they are quick.
Believing implicit options exist on every line. They exist only at defined places (mainly start and end of procedures and includes), not in the middle of SAP's logic, and not in AMDP methods.
- Can you add a field to a standard structure with an implicit enhancement?
- How would you find all implicit enhancements in a system before an upgrade?
- What is a pre- or post-method in a class enhancement?
4 official pages and 4 prep guides. Confidence: high. Checked 1 Dec 2026.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.