Enhancement Framework – Explicit Enhancement-SECTION Implementation

By | April 7, 2014 | Enhancement Implementation | 42,648 | 0

Let’s see more on Explicit Enhancement SECTION implementation in ABAP Enhancement Framework with step-by-step guide.

ENHANCEMENT-SECTION

Enhancement Section has same properties as the Enhancement Point, with “default” code. The SECTION is also a hook available in Std SAP Codes which can be implemented. Section can also be INCLUDE BOUND and STATIC. Refer to for more info on how implementation would behave at run-time with additions.

If you compare the SECTION with the POINT, the POINT doesn’t offer any default implementation where as SECTION offers a default logic between ENHANCEMENT-SECTION and END-ENHANCEMENT-SECTION. This default logic is the logic, what system expects to execute. The existing default logic may not make any more sense if the implementation would be created. Thus the designers would have created SECTION instead of the POINT.

When you implement the ENHANCEMENT-SECTION, system by default copy the “default” logic to your implementation – Same way like redefined method has a call to the SUPER->method( ). If you wish to keep it you can keep it, if the logic is in line with your business requirement.

Implement the Enhancement-SECTION

All the steps to create an implementation for the SECTION is same as Implementing a POINT:
1 Get into the Enhancement Mode

Enhancement_Implementation_Section_1

2 Create a New Implementation Putting cursor on Enhancement SECTION and menu option Edit > Enhancement Operations > Create Implementation

Enhancement_Implementation_Section_2

3 Select you implementation once created

Enhancement_Implementation_Section_3

4 Implement the Logic – Once the implementation is created, you can see that the default logic is copied

Enhancement_Implementation_Section_4

5 Implement your new logic, save and activate.

Enhancement_Implementation_Section_5

Change Implementation

Once you have created the implementation and you wish to change – get into the Enhancement mode. Use the Edit or Context menu to select the option Enhancement Operation > Change Implementation. Activate the Implementation.

Remove Implementation

If the you wish to remove the implementation, you need to follow two step approach.

  1. Undo the implementation first. Choose Context Menu > Enhancement Implementation > Undo Implementation.
  2. Activate the Implementation. If you don’t activate, the object will not be detached from the program.
  3. Go to SE80. Choose Other objects > Enhancements. Choose option Enhancement Implementation and enter the name. Choose Delete to remove it completely from system.

Next Article

Enhancement Framework – Implicit Enhancement Options

Table of Content – Enhancement Framework

Like It? Share!!

Don't miss an Update

Get notified of the new post, right into your inbox

Naimesh Patel{274 articles}

I'm SAP ABAP Consultant for more than a decade. I like to experiment with ABAP especially OO. I have been SDN Top Contributor.
Follow :

Explore all of his 274 articles.

Load comments

Comments on this Post are now closed. If you have something important to share, you can always contact me.

You seem to be new here. Subscribe to stay connected.