Debugging F110 (Automatic Payment)


Introduction

If you ever tryed do debug the automatic payment program (F110), you had realized, that’s it’s not that easy like at other SAP programs. The reason is, that F110 will create a background job, where the payment items are processed. There are a handfull of ways, to debug your payment job, in the following I will describe one of them. Let’s dive into it and learn, how to do it …

How to debug F110

Breakpoint for XDEBUG

First of all, to be able to activate debugging for F110, you need to change a variable at the payment program. Run SE38 and navigate to program F110MAIN and search for XDEBUG.

set%20break-point%20the%20change%20XDEBUG%20variable

set breakpoint the change XDEBUG variable

Create a breakpoint to stop at this program line.

Job Scheduling

Next step, you habe to schedule your payment job into the future. This is necessary, to be able to run the background job in debugging mode.

schedule%20automatic%20payment

schedule automatic payment

Background Job Debugging

Once, the background job is scheduled, run SM37, select your created F110 job and run command JDBG into the command-field. The same function can be selected under menu Extras / Debug Job.

select background job and run job debugging

Activate Debugging

The job will start immediately. Continue with F8 and the debugger will stop at your breakpoint created before.

Now you have to change the variable XDEBUG to “X”.

Debug

Now you can run the program to your code of interest, which you want to debug.

Final words

You can not debug F110 as easy as other SAP programs, but with a little bit of extra work, you get it done without any problems.

If you have any questions, feel free to use the comment section below.