Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic errors, hints on debug

matteo_montalto
Contributor
0 Likes
760

Hi all @ SAPForums,

I wonder if there's an easy way to debug for error messages that are composed dinamically. Let's explain it better; I'm looking for a custom message (type 'E', number X) in order to investigate causes of that error. The problem is that the "where used" function can't help me in this cause because the error is throwed dinamically. I used to waste a lot of time debugging the code to find the exact throw point, and because I'm pretty new to SAP I'd like to know if there's a smarter way to check for dynamic errors in debugging.

Thanks a lot

1 ACCEPTED SOLUTION
Read only

tarangini_katta
Active Contributor
0 Likes
632

Hi Monalto,

Put /h to u r screen.

<From the menu bar Breakpoints>Breakpoint At>BreakPOINT at statement then one window will be displayed.

Write in that window 'message'.

Then u will go to the only error messages.

Thanks,

3 REPLIES 3
Read only

tarangini_katta
Active Contributor
0 Likes
633

Hi Monalto,

Put /h to u r screen.

<From the menu bar Breakpoints>Breakpoint At>BreakPOINT at statement then one window will be displayed.

Write in that window 'message'.

Then u will go to the only error messages.

Thanks,

Read only

Former Member
0 Likes
632

In the debug mode, Go to Breakpoints->Breakpoint at->Breakpoint at statement and give message as the statement and click ok...when you try to execute then it would stop at custom error messages.

Read only

0 Likes
632

Thanks to you all,

I was already applying your hints, unfortunately in dynamic messages it isn't easy to find the exact point in which variables containing errors message's parameters are set... Seems there's no way to speed up the debug process in such cases.