Skip to Content

How do I know if a RFC function is running locally?


I would like to know when a RFC function is running locally or not.

Is there a way to know this? Is there a way to ask the name of the RFC destination that called the Function?

Thanks in advance for your help.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 28, 2005 at 09:56 AM

    Hello Hans,

    be honest: when you know the difference between 'local' and 'remote', your function would act different in these cases.

    I would define such a function not any longer as fully remote enabled.

    I guess you know: import/export table parameters are possible in RFC functions.

    One more remark: if in calling program something like destination 'SERVER_GROUP' is defined, execution might land on same server as calling program - still fully 'remote' from handshake point of view.

    Just out of curiosity: what's the real reason for your question?



    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 28, 2005 at 10:20 AM

    Hello Hans,

    I'm not sure I have understood your requirement. Who is calling the RFC function ? If you are doing it, then you would have to determine before calling the function the value supplied for DESTINATION. If it is NONE, then you know even before the RFC is called whether it is going to run locally or on some remote server.

    In case it is a standard SAP program, you would normally have to tell the program in some way or the other (eg. configuration settings / parameters in the FM interface)that the Function has to be executed remotely.


    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.