Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Dec 19, 2016 at 06: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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 19, 2016 at 02:03 AM

    Is there anyone who has an idea? Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 19, 2016 at 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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2016 at 08: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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2016 at 08: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 20, 2016 at 10:41 AM
    Add comment
    10|10000 characters needed characters exceeded