You are on page 1of 5

1/14/2020 How to debug the programs triggered internally by RFC to be run in background | SAP Blogs

Community

Ask a Question Write a Blog Post Login

Leon Shen
September 19, 2016 1 minute read

How to debug the programs triggered internally by RFC to be


run in background
Follow RSS feed Like

5 Likes 1,255 View 1 Comment

In some programs and transactions, an other program/function module is submitted by RFC in order to run in
background. In this case, it is impossible to get into the program or function module to analyze during
debugging, here is an example. The function module MRP_KD_AUFTRAG_RFC is triggered to be run in
background, so the debugger doesn’t go into it when F5 key (Single step) is clicked and there is no chance to
debug that in this screen.

https://blogs.sap.com/2016/09/19/how-to-debug-the-programs-triggered-internally-by-rfc-to-be-run-in-background/ 1/5
1/14/2020 How to debug the programs triggered internally by RFC to be run in background | SAP Blogs

The program above is run through the transactional RFC mechanism and it can be debugged as following.
(There is an other way of RFC so-called queue RFC, the programs and function modules are run through
transactions SMQ1 and SMQ2. This blog only focus on the transactional RFC.).

Enter the debugger once the program or transaction get started, go to the menu below of debugger (New
debugger).

Select the checkbox below, then click F8 key to complete the processing.

https://blogs.sap.com/2016/09/19/how-to-debug-the-programs-triggered-internally-by-rfc-to-be-run-in-background/ 2/5
1/14/2020 How to debug the programs triggered internally by RFC to be run in background | SAP Blogs

(In classic debugger, the menu is ‘Settings’ > ‘Display and change all’, select the checkbox ‘In background task:
Do not process’. The menu ‘Display and change all’ doesn’t appear if the debugger is in PBO of screen, need to
go into Modules of the screen.).

Now, the function module is not processed in background and stopped in transaction SM58 below for
debugging.

Go to menu below to debug and process the function module.

Alert Moderator

https://blogs.sap.com/2016/09/19/how-to-debug-the-programs-triggered-internally-by-rfc-to-be-run-in-background/ 3/5
1/14/2020 How to debug the programs triggered internally by RFC to be run in background | SAP Blogs

Assigned tags

MAN Production Planning (PP) |

Related Blog Posts

How to debug the programs triggered by RFC to be run in background


By Leon Shen , Sep 14, 2016

Automation For Planned Order Conversion in Background


By Former Member , Sep 06, 2012

How to analyze authorization issues in debug


By Caetano Almeida , Mar 19, 2014

Related Questions

Backgroung SAP Query in excel


By Former Member , Jul 11, 2012
MRP via Product group
By Sameer Nirgude , Jul 20, 2018
Filter Sales orders based on type during MRP run in MD01N
By Former Member , Dec 28, 2016

1 Comment

You must be Logged on to comment or reply to a post.

Pappu Kumar

April 12, 2019 at 10:31 am

Thanks Leon Shen for valuable content.

Like (0)

Find us on

https://blogs.sap.com/2016/09/19/how-to-debug-the-programs-triggered-internally-by-rfc-to-be-run-in-background/ 4/5
1/14/2020 How to debug the programs triggered internally by RFC to be run in background | SAP Blogs

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

Newsletter Support

https://blogs.sap.com/2016/09/19/how-to-debug-the-programs-triggered-internally-by-rfc-to-be-run-in-background/ 5/5

You might also like