cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to debug a function module called in background task ?

0 Likes
15,255

I have a custom function module, which is called in during a standard process at Work Order SAVE.
The FM is called by using statement : 'Call Function <FM name> in Background task'.

To analyze the issue, I need to go inside this FM during debugging when the process is executed. I have also tried endless loops as well, the flow is stuck there but it is not visible in transaction SM50. As a result, I am not able to debug the same, and also the Order is not getting opened in Change mode.

Is there any way of doing this ?

View Entire Topic
former_member400468
Active Participant

Hi!

You can try to put endless loop DO... ENDDO and then go to SM51 and find your process and then choose Administration->Program->Debugging

Hope it's helpful

Evgeny

0 Likes

Hi Evgeny,

I have tried the endless loop, the background FM is stuck at the point. But it's not visible in SM50, as a result I am not able to debug the same.

Regards,
Tapas

matt
Active Contributor
0 Likes

If your system has more than one appserver, perhaps you're logged on to the wrong server. Use SM51.