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

Getting error-line from source code

Former Member
0 Likes
406

Hi gurus,

Suppose, there is an object or a program, whose code cannot be seen, now I want to check on what line, a certain condition

appears or on what line, a string appears. Is there any function module to make it.

Thanks gurus.

2 REPLIES 2
Read only

Former Member
0 Likes
373

hi,

you have to use the abap-debugger with watchpoints..

You can halt the runtime, when a single variable reaches one predefined value, or the runtime calls a function module or other events take place.

regards

Jan Martin

Read only

Former Member
0 Likes
373

Hello Nazeer,

You are speaking about, tracing standard program or the program which cannot be opened in editor mode.

There are surely function modules to trace it, with these function modules you can trace at what line what string appears, this is helpful especially in USER-EXITS and CUSTOMER-EXITS.

Please refer these function modules.

RS_DETERMINE_OBJECT_SOURCE

Check out the program 'RPR_ABAP_SOURCE_SCAN'.

and the FM: 'SCWB_GET_ABAP_CODE_OF_OBJECT'

Thanks:

Zahackson