SAP ABAP Program Code Enhancement

July 21st, 2009 ekoy posted in Abap/4 | 1 Comment »

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

SAP ABAP Code Enhancement 01

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

SAP ABAP Program Enhancement

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

Create SAP ABAP/4 Program Enhancement

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

Add sap abab enhancement plugin id

5. Select the created enhancement id and click ok.

Select abap/4 enhancement plug-ins

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

Create or modify in abap enhancement section - point

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.




You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “SAP ABAP Program Code Enhancement”

  1. hello ekoy,

    I want to drop a note to say thank you for this post. I’ve been all over the web trying to figure out how to do enhancement and your instruction is the best. The rest are just vague instruction and not as clear as yours. Keep it up and thanks again.

    Alex

Leave a Reply