‎2005 Mar 20 11:55 AM
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?
‎2005 Mar 20 12:07 PM
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.
‎2005 Mar 21 6:46 PM
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