The explicit enhancement options are provided at specific source code places explicitly by the SAP.
Enhancement Spots are used to manage explicit enhancement options.We can add our own code in standard SAP code without disturbing it and there is no need of access key for doing this.
There are two types of explicit enhancement options available .
1. ENHANCEMENT POINT
2. ENHANCEMENT SECTION
Enhancement Point : There can be multiple active implementations for an enhancement point in which all of them will be executed with no guarantee in the order of execution.
Syntax :
ENHANCEMENT-POINT <name> SPOTS <spot1> [<spot2>] [STATIC] ...
The STATIC addition is intended for the enhancement of data declarations, while the statement ENHANCEMENT-POINT without the STATIC addition is designed for the enhancement of executable coding.
Enhancement Spots are used to manage explicit enhancement options.We can add our own code in standard SAP code without disturbing it and there is no need of access key for doing this.
There are two types of explicit enhancement options available .
1. ENHANCEMENT POINT
2. ENHANCEMENT SECTION
Enhancement Point : There can be multiple active implementations for an enhancement point in which all of them will be executed with no guarantee in the order of execution.
Syntax :
ENHANCEMENT-POINT <name> SPOTS <spot1> [<spot2>] [STATIC] ...
The STATIC addition is intended for the enhancement of data declarations, while the statement ENHANCEMENT-POINT without the STATIC addition is designed for the enhancement of executable coding.
Enhancement Section : There can be only one active implementation for an enhancement section.
When an enhancement section is implemented,only the implemented code gets executed and the original SAP code is excluded from execution.
Syntax :
ENHANCEMENT-SECTION <name> SPOTS <spot1> [<spot2>] [STATIC]
...
END-ENHANCEMENT-SECTION.
In contrast to the statement ENHANCEMENT-POINT, the addition STATIC of the statement ENHANCEMENT-SECTION can only be used with maximum caution for changes of data declarations, because a replacement of code will be carried out in this case.
When an enhancement section is implemented,only the implemented code gets executed and the original SAP code is excluded from execution.
Syntax :
ENHANCEMENT-SECTION <name> SPOTS <spot1> [<spot2>] [STATIC]
...
END-ENHANCEMENT-SECTION.
In contrast to the statement ENHANCEMENT-POINT, the addition STATIC of the statement ENHANCEMENT-SECTION can only be used with maximum caution for changes of data declarations, because a replacement of code will be carried out in this case.