I call the FM MESSAGES GIVE into Function Module MRM_SRM_INVOICE_SIMULATE, how do I find the point where the error is generated?
Thanks
I call the FM MESSAGES GIVE into Function Module MRM_SRM_INVOICE_SIMULATE, how do I find the point where the error is generated?
Thanks
On
Extract the message ID MSGID and message number MSGNO from the list of messages as displayed.
Then try the following:
SE91, navigate to the message given by MSGID and MSGNO, then perform a Where-Used-List for the single message. This will give you the code places where that message is issued. Put a breakpoint at each place and repeat the transaction that leads to the message. The system should stop at the point where the message is issued.MSGID and MSGNO), so that the points where they are issued cannot be found by static code analysis. This is bad, but there is another way to find it. The breakpoint at statement MESSAGE as described in the answer of @cape_bsas usually stops too often, but you can put a watchpoint on the field SY-MSGNO, instructing the debugger to stop as soon as SY-MSGNO assumes the given message number.
Further data is needed to give you appropriate help.
But have you already tried to add a breakpoint in the
MESSAGEstatement?To do this:
Open debugger via
/h+ actionthen in menu
Breakpoints -> Breakpoint at -> Breakpoint at statement [Shift+F5]in the pop-up window grid, write
MESSAGEin the first line and then click Ok.after that, you need to replicate the error and the debugger will stop in EVERY
MESSAGEstatement reached in runtime.Note: there may be many
MESSAGEstatements reached. Yo need to check one by one usingF8key.