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

Problem in Background RFC Debug.

Former Member
0 Likes
1,933

Hello ,

we have a RFC runs in background , written as Call fn. 'ZFN' in background task.

I switched on the System-Update debug, even preesing f9 i gave the fn module name .

Even I hardcoded breakpoint statements inside the fynction-module source .

But not able to bebug the function module .

Expecting to get ur guidance.

Moderator Message: Please use more meaningful subject lines in future.

Edited by: Suhas Saha on Jan 13, 2012 1:10 PM

4 REPLIES 4
Read only

Former Member
0 Likes
1,217

Please follow the below processu2026.to debug the back ground job.

1. Use SM37 to get list of jobs , type 'JDBG' in the command line ( no '/' ), put the cursor on the job and press ENTER

2. You are in debug mode now. Step through SAP program (press F7 couple of times) until you get to code you need.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,217

You can try debugging the job itslef by selecting the job in SM37 and put jdbg in command box.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
1,217

> we have a RFC runs in background , written as Call fn. 'ZFN' in background task.

RFC via BACKGROUND TASK triggers a transactional-RFC(tRFC), it doesn't run in background!

I switched on the System-Update debug, even preesing f9 i gave the fn module name .

You cannot use "System-Update" debug to debug a tRFC call. You need to activate the "[TRFC (In Background Task): Block Sending|http://help.sap.com/saphelp_nwpi71/helpdata/en/43/fc78b4482a6bede10000000a11466f/content.htm]" option in the debugger settings & debug via SM58(tRFC monitor).

BR,

Suhas

Read only

Former Member
0 Likes
1,217

while you start debugging.. goto settings-> change debugger profile/setting -> here check the 3 check boxes (system, update, trfc) and then(or before) you keep external break point with the user name the RFC is executing in that RFC FM.

you will be able to trigger almost all debug points