on ‎2017 May 30 12:13 PM
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 ?
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi,
Turn on the "tRFC (In Background Task): Block Sending" flag in the debugger settings
Go to SM58, select the tRFC
EDIT -> debug LUW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the response. I have already tried the same, but it didn't work in my case.
No entry present in SM58.
Process :-
Work order is created in ECC from the CRM Web UI.
And during Update process, our scenario is executed. The custom FM is called in a BADI that is executed in update task. 'Update debugging' and 'tRFC (In Background Task)' setting also didn't help us in getting into the FM.
So, you need first to enter Update Debugging (debugger options). When you enter the update task, you need to make sure "tRFC block sending" is activated, then use SM58 and so on.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in de abap editor go to utilities-->settings
Then tab ABAP editor-->Debugging.
Type here the user id that is used when you call the fm in background task. Now place an external break-point in the code and reproduce the behaviour.
If the user is a background user, then temporarily change it to dialog.
Kind regards, Rob Dielemans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.