SAP ENHANCEMENT ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for ENHANCEMENT

ENHANCEMENT

Short Reference
• ENHANCEMENT ABAP Statement


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.
INTHINT Undocumented feature: When using STATIC with
INTHINT ENHANCEMENT-POINT or ENHANCEMENT-SECTION, the restriction
INTHINT to complete control structures is moderated to complete
INTHINT statement blocks (blocks within control structures).
INTHINT This is not communicated to customers, since the intention
INTHINT of STATIC is for declarations only.

The statements ENHANCEMENT and ENDENHANCEMENT cannot be entered and edited directly. Instead, they are generated by ABAP Workbench when enhancements are created as part of the enhancement concept. The ID id is also assigned by the Workbench.

Latest notes:In the terminology of the enhancement concept, a source code plug-in is an enhancement implementation element of a (simple) enhancement implementation.
Although source code plug-ins are displayed in the same source code as the corresponding enhancement options ENHANCEMENT-POINT or ENHANCEMENT-SECTION, they are ABAP Code Snippet programs that are managed by the Enhancement Builder.
It is possible to enhance a source code plug-in using further source code plug-ins. This means that, from then onwards, the statements ENHANCEMENT-POINT and ENHANCEMENT-SECTION can be used between ENHANCEMENT and ENDENHANCEMENT.

Return to menu