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

Debugging a FM in Update Task

Former Member
0 Likes
2,241

Hi ,

I am trying to debug my update task FM and it cannot be debugged before the COMMIT statement is executed.When exactly should i set the 'update debugging' so that the program will stop at the breakpoint in the Update-task-FM after having executed the COMMIT statement ? Kindly suggest.

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
1,826

>

> Hi ,

>

> I am trying to debug my update task FM and it cannot be debugged before the COMMIT statement is executed.When exactly should i set the 'update debugging' so that the program will stop at the breakpoint in the Update-task-FM after having executed the COMMIT statement ? Kindly suggest.

OK, given Rob's view, here we go.

Set a break point in your update task FM. Set a break point on the commit statement. Run the transaction. You'll enter the debugger at the commit statement. Now set UPDATE DEBUGGING on, and continue. A new debug window will open in the update task. Hit F8, and the debugger will stop at your break point in the update task.

matt

10 REPLIES 10
Read only

Former Member
0 Likes
1,826

[Please see this|http://lmgtfy.com/?q=DebuggingaFMinUpdate+Task]

Rob

Read only

0 Likes
1,826

Very good Rob!

Read only

0 Likes
1,826

Destructive !

My point was when do i exactly set the update debugging once i am in normal debug mode.And this was the question as the posts i found through google was not sufficient to answer my question !!

Maybe i should report this !!

Read only

0 Likes
1,826

bad luck ....if you report this ..it will goto Rob only ..can you read M sign after his name

well you can set update debugging any time

Read only

0 Likes
1,826

hard luck i guess !!

surely not my day.

but thanks for the update ..

Read only

matt
Active Contributor
0 Likes
1,826

I love that lmgtfy... Please read the rules and do what Rob said - search. You'll find the answer with a bit of work.

matt

Read only

matt
Active Contributor
0 Likes
1,826

>

> bad luck ....if you report this ..it will goto Rob only ..can you read M sign after his name

>

> well you can set update debugging any time

It might end up with Julius 😮

Read only

0 Likes
1,826

I am glad all the moderators are having fun ...

Read only

Former Member
0 Likes
1,826

Actually, I'm a bit embarrassed. I think the question was more reasonable and complex than I had originally thought.

Rob

Read only

matt
Active Contributor
1,827

>

> Hi ,

>

> I am trying to debug my update task FM and it cannot be debugged before the COMMIT statement is executed.When exactly should i set the 'update debugging' so that the program will stop at the breakpoint in the Update-task-FM after having executed the COMMIT statement ? Kindly suggest.

OK, given Rob's view, here we go.

Set a break point in your update task FM. Set a break point on the commit statement. Run the transaction. You'll enter the debugger at the commit statement. Now set UPDATE DEBUGGING on, and continue. A new debug window will open in the update task. Hit F8, and the debugger will stop at your break point in the update task.

matt