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: 

Enhancement only executing when an explicit break-point coded

Former Member
0 Kudos

I have coded an enhancement to update a custom table after the commit in MIGO. It executes correctly if I code an explicit break-point. the custom table gets updated correctly. If I remove the explicit break-point the code does not execute. I have tried this both in an explicit and an implicit enhancement point with the same result. I traced execution by putting a breakpoint before the enhancement and it did not enter that part of the code. I thought perhaps it was a matter of changes to the custom table not being committed so I added a COMMIT WORK and a COMMIT WORK AND WAIT with no change in result.

Does anyone know what might be happening with the BREAK-POINT that makes it enter the code? I experimented with having the break-point enclosed in an IF statement and it only seems to work if the BREAK-POINT is executed.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

or else you can do one more thing..

Create a Function and check the Radio button to Behave Update Function.

Place all the update logic to update the custom table, and call it in Update Task.

then check the entries in Custom table. This will work with out Explict break point.

5 REPLIES 5

Former Member
0 Kudos

Hi There,

One of my colleague had similar issue with the enhancement. and he also had the similar experience with the break point.

It has certainly to do with the comit work.

In his case, the comit work was happening in the tcode not in the enhahcement. and even doing the commit work in the enhancement work did not help.

since the commit in the tcode is holding that lock, this comint in the enhancement is of no use. to resolve this we tried to bluff the system by doing the commit work in the enhancement twice and that helped in that case.

Hope this experience helps you.

Thanks-

0 Kudos

Thanks for your quick reply. I tried adding all kinds of commits but no improvement.

Former Member
0 Kudos

or else you can do one more thing..

Create a Function and check the Radio button to Behave Update Function.

Place all the update logic to update the custom table, and call it in Update Task.

then check the entries in Custom table. This will work with out Explict break point.

0 Kudos

Thanks! It works. Appreciate the quick turn around.

Former Member
0 Kudos

Just an addendum in case someone else finds this in researching their problem. This turned out to be a timing issue. Though there was a commit in the program before the enhancement, the data was not there to retrieve when the enhancement code tried to. The code was executing but not finding anything to process. The addition of a break-point allowed the update to become available. (Actually

issuing a MESSAGE that popped up in a dialog screen did the same thing.) I ended up having to code a WAIT to let it catch up.