I got a task to debug following standard and custom function modules which is related to "Event Modules for Payment Medium Formats" I've tried different methods but nothing works..
Any solution how? I found similar task on this thread unfortunately no solution, https://answers.sap.com/questions/702358/fpy1-events-debugging.html
Thanks.
The FP* family of transactions (mass activities in contract accounting) do their actual work in background jobs. This makes debugging them a bit tricky, because any debugger breakpoints you set won't be triggered by background jobs.
However, there is a trick! When you enter the secret function code dbug
in the command field, then those transactions will run their worker tasks in the foreground, which means that your break-points will get triggered.
When you then schedule the run, you will find yourself in this hard-coded breakpoint, where you can then review the breakpoints you set or set additional break- and watchpoints:
When you are not sure which pay medium event function modules are actually used in your system and which events are executed by the process you are debugging, then I recommend setting a break-point in the function module FKK_PAYMENT_FORMAT_EVENT_READ
. That function will be called whenever the function for a specific event and payment medium is required. The export parameter E_FNAME
is the active function module. A call to that module will usually follow soon after.