2017 Oct 30 1:20 PM
is there is any way to know program line number at run time ?
something like the one in the debugger program / line number .
2017 Oct 30 2:47 PM
You may get the current line number only by raising a class-based exception (method GET_SOURCE_POSITION) or by getting the ABAP call stack (for instance, via function module SYSTEM_CALLSTACK).
2017 Oct 30 3:09 PM
2017 Oct 30 3:50 PM
Rather curious about this myself. What could possibly be the purpose of this information?
3 weeks ago
It can be useful when refactoring code which populates an internal table at many different locations within a huge procedure with many loops and conditions and we look at that populated internal table and wonder where exactly the rows have been added without having to use the debugger much.