SAP ABAP Program Code Enhancement
To meet the user requirements, sometime we must modify original SAP ABAP program code (known as enhancement) beside add some fields or Structures into SAP tables. We must register access key for the object first to modify original SAP program code, but actually we do not need it since SAP has been provide source-code plugins.
Source code plug-ins is used to make modification free enhancements to ABAP source code. Source code plug-ins is included in code by means of the ENHANCEMENT and ENDENHANCEMENT statements and is created using the Enhancement Builder tool.
Here are the steps to create enhancement into SAP Abap program Code. For sample case, I use routine number 101 of data transfer from sales order item data to delivery order item (include program: FV50C101)
1. On abap workbench, choose File – Enhance

2. Set the cursor on the corresponding ENHANCEMENT-SECTION or ENHANCEMENT-POINT statement then choose Edit – Enhancement Operation – Create

3. On the pop up screen, click “create new enhancement” button

4. Next on the pop up screen, fill enhancement id and description and click ok.

5. Select the created enhancement id and click ok.

6. Add or modify source code plug-ins included in code by means of ENHANCEMENT and ENDENHACEMENT.

After add or modify enhancement, do not forget to save and activate it. Saving enhancement is same as save abap program. To activate sap abap program code enhancement, just click “activate enhancement” button on the top.
Tags: sap enhancement point * enhancement section in sap * Source Code * activate enhancement * change code in enhancement-section
Filed under: Abap/4
Like this post? Subscribe to my RSS feed and get loads more!
