SAP ENHANCEMENT ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID ENHANCEMENT
• ENHANCEMENT ABAP Statement

ENHANCEMENT
Short Reference

ABAP_SYNTAX
ENHANCEMENT id.
...
ENDENHANCEMENT.

What does it do?
These statements define a source code plug-in with the ID id. A source code enhancement can be implemented between the statements. The control structures and processing blocks used in the implementation must be complete.
BEGIN_SECTION SAP_INTERNAL_HINT
Undocumented feature: When using STATIC with ENHANCEMENT-POINT or ENHANCEMENT-SECTION, the restriction to complete control structures is moderated to complete statement blocks (blocks within control structures). This is not communicated to customers, since the intention of STATIC is for declarations only.
END_SECTION SAP_INTERNAL_HINT
The statements ENHANCEMENT and ENDENHANCEMENT cannot be entered and edited directly. Instead, they are generated by the ABAP Workbench when enhancements are created with the ABAP Enhancement Framework. The ID id is also assigned by the workbench.



Latest notes:

In the terminology of the ABAP Enhancement Framework, a source code plug-in is an enhancement implementation element of a simple enhancement implementation.
Although source code plug-ins appear in the same source code as the corresponding enhancement options ENHANCEMENT-POINT or ENHANCEMENT-SECTION in the ABAP Editor, they are actually stored in other