on 2004 Feb 05 3:06 PM
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
Thanks for the response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
109 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.