Skip to Content
0

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

Dec 13, 2016 at 06:52 AM

274

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

6 Answers

Suhas Saha
Dec 19, 2016 at 06:00 PM
2

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

Share
10 |10000 characters needed characters left characters exceeded
gavin gan Dec 19, 2016 at 02:03 AM
0

Is there anyone who has an idea? Thanks

Share
10 |10000 characters needed characters left characters exceeded
Sandra Rossi Dec 19, 2016 at 10:31 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Richard Harper Dec 20, 2016 at 08:26 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Suhas Saha
Dec 20, 2016 at 08:45 AM
0

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.


Share
10 |10000 characters needed characters left characters exceeded
Horst Keller
Dec 20, 2016 at 10:41 AM
0
Share
10 |10000 characters needed characters left characters exceeded