Hello,
coming back to Horst Keller or any other SAP employee may be able to help here.
. I've played a bit with a stack as I don't like not fully working solutions, but I'm stuck now and without a help of SAP people I can't go further I think. That's why I hope maybe
Ok. So what's the point at the moment ? I have no problem with determining class name used for calling a static method as long there is only ONE call of this static method in a line, or even probably in one block ( means one syntax ended with .). The problem appears only when the method is used several times in a line or block.
But let's go to example, here is part of the program which calls 2 times creation of FALV "from" local class.
Inside factory method CREATE I can check with CL_ABAP_COMPILER how many times the factory method is used and where exactly.
With CL_ABAP_PARSER I can get easily what class name was used to call CREATE method.
But the problem is still that in my example from STACK I will get info 2 times that method was called from 46th line.
I found that CL_ABAP_GET_CALL_STACK=>GET_CALL_STACK method, returns unformated STACK info, where if you look on the 3rd line into field PROGRAM_INFO, then you'll notice that the numbers in last \*\ are different for the calls at different column of the 46th line. The problem is that I cannot figure out how they are calculated and I cannot find the way to exchange this info into line & COLUMN number.
1st Call at 46th line
2nd Call at 46th line
Can anyone help?
Cheers
Łukasz