Wednesday, August 27, 2014

ABAP TIP Find the error point in standard program

ABAP Find the error point in standard program

It's very difficult to find out the error point which caused a error through debugger. There are several ways to find out the error point, let's see the simplest way.

As seen the below screen, SAP make a error message with T-CODE:VA03.
  


Double click the error message bar, and detailed popup will open.
Message no. V1302
In message No line, V1 means message class and 302 means Message Number.

Via T-CODE:SE91, we can check the error description with these message information(V1302).


In order to find out the error point in abap program, let's set the debugging mode by entering /h in command field before executing VA03.


And, You need to create individual watch point for Message Class and Message No.




You can display there are 2 watchpoint in break/watchpoint tab.


Now, execute program to the end by F8, and the program will be stopped when watchpoint is activated with the message of 'several watchpoints reached'. This line causes a error







No comments:

Post a Comment