12-13-2016 6:52 AM
Hi Grus,
Just want to know, when we debugging into one FM, we found that there are some global variables already be assigned with values, so what's the way to find out which is the FM inside same function group that firstly being called with one transaction?
12-19-2016 2:03 AM
12-19-2016 6:00 PM
Hello Gavin,
if you are working on the relevant ABAP release, you can use Software Layer Aware Debugging(SLAD).
You have to trigger the debugger at the start of your application(for e.g., with /h) and activate SLAD and define a "temporary" Object set. cf.
https://help.sap.com/saphelp_nw70ehp2/helpdata/en/e8/fc118ff8884a2aadacc39164d4737d/content.htm
12-19-2016 10:31 PM
If the function group has the chance of having the LOAD-OF-PROGRAM event, then you may add a break point there. But it won't be the case 99.9% of the time.
12-20-2016 8:26 AM
When this happens, it generally means that there is another function module being called somewhere to initialise the group. When you run your program, although it can be a little tedious, use breakpoints->breakpoint at statement and enter 'CALL FUNCTION'.
Rich
12-20-2016 8:45 AM
To clarify what i had mentioned in my previous post.
You can define the "Object Set" directly from the (new)GUI debugger.
In the field "Programs" you have to mention the name of the main program of the Function-Group e.g., SAPLZ*
Once you are done, you can jump to the locally defined "Object Set" by clicking the "Next Object Set" button.
12-20-2016 10:41 AM