ABAP Keyword Documentation → ABAP − Reference → Enhancements → Source Code Enhancements
Implicit Enhancement Options
In addition to enhancement
points that can be created explicitly using
ENHANCEMENT-POINT and ENHANCEMENT-SECTION
, implicit enhancement points exist in the following places in ABAP programs:
- After the last line of the source code of executable programs, function groups, module pools, subroutine pools, and include programs.
- Before the first and after the last line of the implementation of a procedure (after the introductory statement and before the
END
statement)
- Before the first and after the last line of a
source code plug-in (after
ENHANCEMENT
and beforeENDENHANCEMENT
)
- At the end of a visibility area in the declaration section of a local class
- At the end of a list of formal parameters of the same name at the declaration of local methods
- In structure definitions using
BEGIN OF
andEND OF
before the statement with the additionEND OF
.
The enhancement implementations for implicit enhancement options can only ever be appended to a single framework program, which means that the implicit enhancement options are not available in include programs when the following applies:
- The include program is not included in a framework program.
- The include program is included more than once in a framework program.
- The include program is included in multiple programs, and none of these programs is selected as a relevant framework program in ABAP Workbench.
- The include program is included in multiple programs and at least one of these programs contains
an include-bound explicit enhancement point (that is, a point defined using the addition
INCLUDE BOUND
).
To make implicit enhancement points visible in ABAP Editor, choose Edit → Enhancement Operations → Show Implicit Enhancement Points. They can be enhanced by using source code enhancements in the same way as explicit enhancement points.
Other versions: 7.31 | 7.40 | 7.54
Notes
- The visibility sections of global classes and the parameter interfaces of function modules and global methods also contain implicit enhancement options. These can be displayed and enhanced in Class Builder or Function Builder.
- AMDP methods do not have any implicit enhancement points.