Skip to Content

Using standard functions remote

Is there a way to use standard function modules from a remote system when they don't have

' remote-Enabled Module' set?

Is copying the entire function module the only way, or is there another way.

If i create a new function module wich calls this module and returns the results, will I be able to use this new function from a remote system?

Thanks for any help,


Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Posted on Feb 05, 2004 at 04:05 PM

    What I usually do is what you mentioned second - I write a wrapper function module to expose the original remotely. Most of the time function modules aren't marked as remote, just because that wasn't what the programmer was thinking about when he wrote it. However you should be careful. If the function module calls to a screen or has some user interaction, you may not be able to call it remotely from a non-SAP system (ie - not running the SAPGui). Best situation is write the wrapper function module and test it out. Most of the time that should work.

    Add comment
    10|10000 characters needed characters exceeded

    • I agree with Thomas Jung. I just want to mention two things, that - depending on your situation - may or may not be important.

      1) When a FM raise an exception the values of call-by-reference parameters are avaliable in the calling program and values of call-by-value parameters are not.

      2) RFC enabled FM's only allow call-by-value parameters. Therefore you often see RFC enabled FM's with a return code export parameter instead of exceptions.

      Best regards

      Thomas Madsen Nielsen

  • Posted on Apr 14, 2004 at 08:44 AM

    Thanks for the response

    Add comment
    10|10000 characters needed characters exceeded