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

fm in update task

Former Member
0 Likes
435

hi!

i have a fm that does a bi through a userexit mv50afz1

in the save form. i am using the fm in update task, but

when i am using debug mode i don't see the debugger getting

inside the fm but going directly to the end form, and then to the end of the userexit as if it did what it had to do. if i push enter i get a message that i terminated the transaction.

when i am testing the fm it works. how can i check if the fm works?

2 REPLIES 2
Read only

Former Member
0 Likes
403

When you run a Function Module(FM) in update task, what you essentially mean is, when the control reaches the first commit work, all those modules like Function Module called in Update task, Perfom on commit subroutines should be executed.

So when you are debugging, it will not go to the FM, but keep a note of all those FM's and subroutines that it needs to go through, when it confronts a COMMIT WORK.

If the FM works separately as a unit, you only have to be concerned whether you have called the FM at the appropriate place.

Hope this piece of information is useful to you.

Regards,

Subramanian V.

Read only

Former Member
0 Likes
403

There is a setting in the debugger that you can activate to step through function modules run in the update process.

Activate the debugger and follow the menu path to SETTINGS->UPDATE DEBUGGING. Click that and you should see the message that says update debugging is acitvated. Step through the program as ususal and it will continue to debug into the update processes.

Regards

Brent