Application Development and Automation 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: 
Read only

Enhance standard function module

Former Member
0 Likes
2,715

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.

13 REPLIES 13
Read only

Former Member
0 Likes
1,575

Before doing this did you check the outcome of where used-list ?

Read only

Clemenss
Active Contributor
0 Likes
1,575

Hi vinraaj,

I hope you activated the enhancement project again after activating the enhanced function module.

Regards,

Clemens

Read only

Former Member
0 Likes
1,575

Hi,

The FM is called inside a function group. I activated the function group but still not accessing my code

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,575

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)

Read only

0 Likes
1,575

Yes the FM is called as I can see control going inside it.

Read only

0 Likes
1,575

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

Read only

0 Likes
1,575

Hi,

The switch field is empty. Also the switch position.

Read only

0 Likes
1,575

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).

Read only

Former Member
0 Likes
1,575

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

Read only

0 Likes
1,575

I did the same at first

Read only

0 Likes
1,575

Did you solve your issue?

Otherwise, could you answer my previous question?

Read only

0 Likes
1,575

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.

Read only

Former Member
0 Likes
1,575

closed