Introduction
If you ever tried do debug the automatic payment program (F110), you had realized, it’s not that easy like at other SAP programs. The reason is, F110 creates a background job, where the payment items are processed. There are a handful 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.
Create a breakpoint to stop at this program line.
Job Scheduling
Next step, you have to schedule your payment job into the future. This is necessary, to be able to run the background job in debugging mode.
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.
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
Source: https://blogs.sap.com/2020/09/23/debugging-f110-automatic-payment/
Nenhum comentário:
Postar um comentário