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

Custom code in Enhancement

Former Member
0 Likes
1,093

Hi All,

We are trying to make some enhancement to the standard transaction FB60 using the Enhancement Spot "ES_SAPMF05A"

I am using the Dynamic Enhancement Point in the Enhancement Spot. It is attached to a subroutine. I went ino that routine & Created a new Implementation for the Enhancement Point "mf05aff0_fcode_bearbeitung_01" .

I activated the implementation. But the custom code written by me is not getting triggered. In the debug mode i am able to see only a single line

"ENHANCEMENT-POINT mf05aff0_fcode_bearbeitung_01 SPOTS es_sapmf05a."

and the lines below, which relate to the implementations are not dispalyed in the debug mode.

Please let me know if i need to activate anything else, so that the custom code written in the new implemenatation is executed.

Thanks in Advance,

Suresh

1 ACCEPTED SOLUTION
Read only

amit_sharma1
Product and Topic Expert
Product and Topic Expert
0 Likes
907

Hi Suresh,

Before all this, tell me one thing how did you Put the break point to that perticular line. Because as per my understanding the code of lines you inserted are stored alltogether at a differenet place and it's only the display of the SE38 which shows you that line.

The exact code is compiled at the other place and prepared for the execution at the timeof load creation !!

I've come across such a scenario where this code based enhancement never let me to put a brek point and all the time i got the message :

"You tried to set a breakpoint at a point in the source code wherebreakpoints are not allowed. For this reason, the system did not create any breakpoints."

well, i think you can try to put the statement "BREAK-POINT" in the implementation of yours.

Please share the idea if aprt from this you got any method.

You can talk to :

venkata.varadadesigan@sap.com who wrote the blog

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bb54c452-0801-0010-0e84-a65...

Hope the information would be benificial.

Thanks.

Best Regards,

Amit

3 REPLIES 3
Read only

Former Member
0 Likes
907

Hi,

I think you have to attach your enhancement to a project and also activate this project. transaction SMOD/CMOD.

Hope this help.

Read only

amit_sharma1
Product and Topic Expert
Product and Topic Expert
0 Likes
908

Hi Suresh,

Before all this, tell me one thing how did you Put the break point to that perticular line. Because as per my understanding the code of lines you inserted are stored alltogether at a differenet place and it's only the display of the SE38 which shows you that line.

The exact code is compiled at the other place and prepared for the execution at the timeof load creation !!

I've come across such a scenario where this code based enhancement never let me to put a brek point and all the time i got the message :

"You tried to set a breakpoint at a point in the source code wherebreakpoints are not allowed. For this reason, the system did not create any breakpoints."

well, i think you can try to put the statement "BREAK-POINT" in the implementation of yours.

Please share the idea if aprt from this you got any method.

You can talk to :

venkata.varadadesigan@sap.com who wrote the blog

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bb54c452-0801-0010-0e84-a65...

Hope the information would be benificial.

Thanks.

Best Regards,

Amit

Read only

0 Likes
907

Hi Amit,

I got the solution for this. You are correct in saying that the lines displayed in SE38 are stored in a different place. The statement

"Enhancement-Point .... " is similar to the Perform statement of our Subroutine.

I initially tried using the statement Break <user-name>, and also tried coding a small data declaration statement & placed a break-point on that. But it did not stop at these positions in the debug mode.

Then i tried using the conventional way of placing a Information message, similar to the way we do in User exits. And it did stop now.

So, i assume that we need to have some executable statements for our break-points to stop..

Please let me know your valuable comments on this.