Tuesday 6 May 2014

Debugging FM in update task

Debugging FM in update task:

Let’s create an Update module in SE37 like below.  


And simple code inside update module.


Now let’s create a simple program through SE38 and call this FM in update task.

Once we execute this program, FM ZUPDATE_TASK will be called in update task and immediately it will be registered in VBLOG table on priority basis.  
Note it will not get execute until unless control reaches to COMMIT WORK statement as shown above.  
Once control executes COMMIT WORK, the above registered FM in VBLOG table will be called and gets execute.
To debug our update FM we need to switch on Update Debugger in debugging mode



If we do not perform above activity, update module will get execute in the background and we would not able to see it in the foreground and debug the same .

Now let’s execute and test the same.


And in next step Update debugger screen will open as given below.  




1 comment: