Skip to Content

How to see source code of Function Module ? SE37 does not help

HI Experts,

There is one Function module called in a Report . I am not able to open this FM in se37 and get message that FM does not exist.

However this FM gives the output by creating entry in a table as I checked in debugging of report. Debugger also does not go to the source code of this FM.

Does anyone know how to see source code of this Function Module ?

SE37 does not help.

Regards,

Pradeep

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    May 31, 2013 at 07:24 AM

    Can you provide screenshot with source code where this FM is called?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Pradeep Singh Rawat

      Check destination 'dest' settings in SM59. More likely you have external RFC server that provide business logic for this FM. In SAP system you create only definition for this FM not code.

  • avatar image
    Former Member
    May 31, 2013 at 10:04 AM

    Hi Pradeep,

    This FM is RFC function module calling external system.so can you please check the destination system and check the FM in destination system.

    Note:Keep the break point in this FM,so that you know that destination system and source code also.

    Hope may solve your problem.

    Regards,

    Gurunath Kumar D

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 31, 2013 at 07:26 AM

    Hi Pradeep,

    follow the below steps.

    1. put break-point in function module.

    2. when the FM trigger use F5.

    3. in debug mode there is 2 program names  appear

         a.main program

          b.source code of

    4 copy the source code of  '" this is nothing bt fm coding

    5. paste in se38 .

    i hope it will work

    suresh

    Add comment
    10|10000 characters needed characters exceeded

    • HI Suresh,

      Thanks for your reply.

      I tried it earlier and debugger does not go to source code of FM using F5.

      both main program and source code are of Report only which means pressing F5 does not take debugger into the code of FM which strange to me.

      This is very old report of 2007 created by someone.

      SE37 gives me message that it does not exist.

      But while  debugging the report this FM creates one entry in table which raises question if FM does not exist in SE37 then how table gets entry.

      Extended syntax check also does not report any error.

      regards,

      pradeep

  • May 31, 2013 at 11:00 AM

    HI Roman and Gurunath,

    Target system is ISP.

    and I think FM exists in this target system.

    Thanks a lot for your solution.

    Regards,

    Pradeep

    Add comment
    10|10000 characters needed characters exceeded