‎2009 Aug 14 10:51 AM
Hi,
I enhanced a standard function module and activated without errors also. But system is not accessing my code and when I debugged also I couldn't find my code being executed. What will be the problem ?
Please help.
‎2009 Aug 14 11:06 AM
Before doing this did you check the outcome of where used-list ?
‎2009 Aug 15 8:19 PM
Hi vinraaj,
I hope you activated the enhancement project again after activating the enhanced function module.
Regards,
Clemens
‎2009 Aug 16 6:22 AM
Hi,
The FM is called inside a function group. I activated the function group but still not accessing my code
‎2009 Aug 15 9:19 PM
Other possibilities:
I have a basic question to ask, but in case Did you make sure that this standard function module is called? (you may use an SE30 trace to see all called procedures)
Another point : did you make sure that SAP stops at a breakpoint set at the beginning of the standard function module? (for example, if the function module is called in update task, it won't stop if the update debugging is not activated; there are many cases where you don't stop at breakpoints)
‎2009 Aug 16 6:23 AM
Yes the FM is called as I can see control going inside it.
‎2009 Aug 16 7:56 AM
So maybe you have enhanced a standard explicit enhancement point or section which is deactivated.
To check that, you MUST
1) double-click the enhancement spot name in the source that you have enhanced
2) display the properties panel, and look at the activation information around the switch field
‎2009 Aug 16 9:07 AM
‎2009 Aug 16 1:31 PM
Did you implement a standard explicit enhancement point? or a section? (it's not important between the 2 but that would be nice just to have the info so that we use one term) And what is its name?
Something you can try is either to add BREAK-POINT statement (or BREAK <your name>) at the beginning of your implementation. This is because sometimes the breakpoints have a weird behavior (ignored or put at another place).
‎2009 Aug 17 5:32 AM
hi ,
Follow the following steps
You can enhance Standard FM also.
Click on Enhancement (spiral) button.
Now Go to Edit->Enh Op -> Show Implicit enhc.
You can add enhancement at the specific enh points.
genearlly it will be at the start of FM and at the End of.
Go the places where enh is possible -> Right click and Create Enh -> Code.
this way you will be able to add your logic into standard FM.
but do take care standard FM is called many times.
-Thanks
Saurabh Goel
‎2009 Aug 17 12:58 PM
‎2009 Aug 17 3:24 PM
Did you solve your issue?
Otherwise, could you answer my previous question?
‎2009 Aug 18 5:45 AM
Hi,
My issue is not solved. I used standard explicit enhancement point only. But I didn't try the second option(break-point). See I put break point in the beginning of the std FM not in my code. But my code itself is not showing while debugging.
‎2009 Dec 13 7:46 AM