Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Implementing enhancement point - not triggered

Former Member
0 Kudos

Hello,

I am struggling trying to implement enhancement point. The point in question is located in include MM06EF0B_BUCHEN:


ENHANCEMENT-SECTION     buchen_04 SPOTS es_mm06ef0b_buchen INCLUDE BOUND.
    CALL FUNCTION 'ME_UPDATE_DOCUMENT' IN UPDATE TASK
      EXPORTING
<skipped to save space>
END-ENHANCEMENT-SECTION.

I followed the steps described in OSS note 922557, I've read through <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/the%2bnew%2benhancement%2bframework%2band%2bthe%2bnew%2bkernel-based%2bbadi">thomas Weiss' blogs</a>.

Here is step-by-step of what I've done

1. Go to SE38 and edit include MM06EF0B_BUCHEN (<a href="http://img394.imageshack.us/img394/3482/step1lm4.jpg">screenshot</a>)

2. In the popup that appeared offering me to select main program I chose SAPLMEPO (<a href="http://img527.imageshack.us/img527/7686/step2ty7.jpg">screenshot</a>)

3. Switched into enhancement mode using menu Program -> Enhance

4. Right-click on the enhancement-section and choose Enhancement->create (<a href="http://img394.imageshack.us/img394/1043/step3gn4.jpg">screenshot</a>)

5. In popup click Create button (<a href="http://img162.imageshack.us/img162/3219/step4om4.jpg">screenshot</a>)

6. Enter enhancement name and description and click green check button (<a href="http://img162.imageshack.us/img162/5131/step5fv4.jpg">screenshot</a>)

7. Select my newly created enhancement implementation and click green check button

(<a href="http://img522.imageshack.us/img522/5447/step6jq6.jpg">screenshot</a>)

8. Enhancement implementation proposal appeared (<a href="http://img518.imageshack.us/img518/6082/step7fz6.jpg">screenshot</a>)

9. I entered the code I wanted to implement

(<a href="http://img49.imageshack.us/img49/4553/step8pe8.jpg">screenshot</a>)

10. Saved. Upon saving, my enhancement disappeared for some reason, but 2 other enhancement shown up (I collapsed them on the <a href="http://img524.imageshack.us/img524/3336/step9px7.jpg">screenshot)</a>)

11. Program -> Activate enhancement brought up another pop-up that I green-checked

(<a href="http://img162.imageshack.us/img162/1512/step10dv9.jpg">screenshot</a>)

12. I went to verify in SE80 that my enhancement is active and well - it appeared to be:

<a href="http://img340.imageshack.us/img340/9026/step11xd4.jpg">screenshot</a>

Now, when I debug through the code of include MM06EF0B_BUCHEN, when I come to the enhancement point, debugger only shows original code, so I don't seem to be able to debug the enhancement (maybe because it is marked as Dynamic in enhancement definition?).

So I went back to SE38 and tried to change my newly created enhancement implementation - but it did not even appear in the list from step 4!

Now, what did I do wrong? Why my enhancement, though active, does not get triggered or even visible on attempt to edit it?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

I had a similar problem. Solution:

In Step 2. <b>Don't do this !</b> "In the popup that appeared offering me to select main program I chose SAPLMEPO (screenshot)" --><u><b>Select CANCEL</b></u>

1 REPLY 1

Former Member
0 Kudos

Hello,

I had a similar problem. Solution:

In Step 2. <b>Don't do this !</b> "In the popup that appeared offering me to select main program I chose SAPLMEPO (screenshot)" --><u><b>Select CANCEL</b></u>