How to debug DMEE Exit Events in SAP

5.4k Views Asked by At

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.

2

There are 2 best solutions below

0
Philipp On BEST ANSWER

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.

enter code DBUG

Message "activity run started in debugging mode

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:

Breakpoint

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.

0
Franco On

The Payment Medium files are generated via a job. For example if you run F110 with the break-point set in your Function Module exit , it will not stop. Go to SM37 and find out the program that was run (here for example F110 - proposal run). Check the variants and run the program (using se38) online. Then it will stop at the Function module exit where you set your break-point. Cheers.