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

Debugging FM in background task with destination

Former Member
0 Likes
2,465

Hi All,

I need to debug a FM which is getting executed as a Background task and also with an destination call.

           CALL FUNCTION 'XXXXXXX'
           IN BACKGROUND TASK
           DESTINATION
           YYYYYY

Could you kindly help me in doing so?

Thanks & Regards,

Ashish Singh

7 REPLIES 7
Read only

former_member209818
Active Contributor
0 Likes
1,912

Hi Ashish,

Try putting a endless loop in the FM code.

After execution, you will see a entry in SM50 with execution of your entry,

Select the entry and then start the debugging open from one of the menu.

For this, you need to have sufficient authorizations in the system.

- Harshad

Read only

Former Member
0 Likes
1,912

Hi Harshad,

Thanks for the reply.

Actually I am debugging a standard FM, hence I cannot edit the FM.

Could you kindly let me know if you have any other ideas on the same.

Many Thanks

Ashish Singh.

Read only

0 Likes
1,912

Hi Ashish,

If you have access to Destination system, you can directly run the FM on the target system with the values you are passing while calling that FM with Destination

- Harshad

Read only

Former Member
0 Likes
1,912

Hi,

IN BACKGROUND TASK addition registers a tRFC call. You'll have to:

  1. Turn on the "tRFC (In Background Task): Block Sending" flag in the debugger settings.
  2. Go to SM58, select the tRFC & then debug LUW.

Check the Link

http://scn.sap.com/thread/3173780

Thanks

Mani

Read only

Former Member
0 Likes
1,912

you want to pass table records...so I assume you are calling from a program,

1. you can get URL , from application, then call that URL (OR) call the transaction..that you created as per other replies.

2. sending table....export and import using ABAP memory

Thank you

Amarender Busireddy

Read only

Former Member
0 Likes
1,912

Hello,

suppose your fm in ecc server. put a external breakpoint at fm. go to another server like bi or crm. go to the same fm in bi or crm server. go to utitilies-> settings-> go to debugging tab. put your user id of ecc server in this place. click on right mark........

then go for debugging ...........

put the current destination name......

Thanks

Sabyasachi

Read only

Former Member
0 Likes
1,912

Hi Harshad,

I am trying to debug FM

CALL FUNCTION 'CRS_FIRST_DOWNLOAD_TRIGGER'
           IN BACKGROUND TASK
           DESTINATION
           da_bapicrmdh1-rfcoltp

which is being called via the FM SMOF0_INIT_DNL_START

Thanks & Regards,

Ashish SIngh.