2013 Feb 18 6:30 AM
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
2013 Feb 18 6:37 AM
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
2013 Feb 18 6:49 AM
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.
2013 Feb 18 7:00 AM
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
2013 Feb 18 7:19 AM
Hi,
IN BACKGROUND TASK addition registers a tRFC call. You'll have to:
Check the Link
http://scn.sap.com/thread/3173780
Thanks
Mani
2013 Feb 18 7:31 AM
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
2013 Feb 18 8:53 AM
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
2013 Feb 18 8:53 AM
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.