Application Development 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: 

How to find the entry point in a function group when calling a FM?

Former Member
0 Kudos

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?

6 REPLIES 6

Former Member
0 Kudos

Is there anyone who has an idea? Thanks

SuhaSaha
Advisor
Advisor

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

Sandra_Rossi
Active Contributor
0 Kudos

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.

former_member182550
Active Contributor
0 Kudos

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

SuhaSaha
Advisor
Advisor
0 Kudos

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.