cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

0 Kudos

HI Roman,

Thanks for your reply.

It is a local report and below FM is called inside it.

    call function 'Y_ADR_REPL_SADRPX'

         destination dest

      exporting

       adrnr_from                   = adrnr_fr

       adrnr_to                     = adrnr_to

      tables

        repl_SADRpx                  = i_VVSADRpx

      exceptions

        invalid_adrnr_interval       = 1

        user_not_authorized          = 2

        others                       = 3

If I try to open this FM by double clicking on it or in se37 it says FM does not exist.

However , In debugging mode I found that i_VVSADRpx gets one entry assigned after execution of this FM.

Regards,

Pradeep

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

0 Kudos

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

gurunathkumar_dadamu
Active Contributor
0 Kudos

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

former_member198834
Participant
0 Kudos

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

0 Kudos

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