cancel
Showing results for 
Search instead for 
Did you mean: 

Using standard functions remote

dhorions
Contributor
0 Kudos
454

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,

Dries

Accepted Solutions (0)

Answers (2)

Answers (2)

dhorions
Contributor
0 Kudos

Thanks for the response

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

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.

TMNielsen
Contributor
0 Kudos

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