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
Further data is needed to give you appropriate help.
But have you already tried to add a breakpoint in the MESSAGE statement?
To do this:
Open debugger via /h + action
then in menu Breakpoints -> Breakpoint at -> Breakpoint at statement [Shift+F5]

in the pop-up window grid, write MESSAGE in the first line and then click Ok.

after that, you need to replicate the error and the debugger will stop in EVERY MESSAGE statement reached in runtime.
Note: there may be many MESSAGE statements reached. Yo need to check one by one using F8 key.
Extract the message ID
MSGIDand message numberMSGNOfrom the list of messages as displayed.Then try the following:
SE91, navigate to the message given byMSGIDandMSGNO, 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.MSGIDandMSGNO), 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 statementMESSAGEas described in the answer of @cape_bsas usually stops too often, but you can put a watchpoint on the fieldSY-MSGNO, instructing the debugger to stop as soon asSY-MSGNOassumes the given message number.