Skip to Content
author's profile photo Former Member
Former Member

RFC functions

hi

when i am using rfc_ping like below the sy-subrc = 0.

CALL FUNCTION 'RFC_PING' DESTINATION dest_asia

EXCEPTIONS

communication_failure = 1

system_failure = 2

OTHERS = 3.

but, when i am using 'RFC_FUNCTION_SEARCH' to check for function module, it is throwing sy-subrc = 3 when the FM is present in the destination system. please help

CALL FUNCTION 'RFC_FUNCTION_SEARCH' DESTINATION dest_asia

EXPORTING

funcname = 'Z_MM_STOCK'

EXCEPTIONS

nothing_specified = 1

no_function_found = 2

OTHERS = 3.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Aug 11, 2009 at 09:51 AM

    I think your function 'Z_MM_STOCK' is not remote enabled.first make it remote enabled and then try.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 11, 2009 at 09:45 AM

    Hello Ganesh,

    Problem is that you have not provided tables parameter for importing the result of function module execution.

    Try adding tables parameter and check if problem persist.

    Thanks,

    Augustin.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 09:54 AM

    hi ,

    You can check the RFC connection in tcode: SM59. You can also test the connection through this tcode.

    check whether gateway host and gateway service is fulfilled.

    Saurabh Goel

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 11, 2009 at 02:48 PM

    See what rc you get with:¨

    data: smess type c length 80,
          cmess type c length 80.
    
    CALL FUNCTION 'RFC_FUNCTION_SEARCH' DESTINATION dest_asia
        EXPORTING
          funcname = 'Z_MM_STOCK'
        EXCEPTIONS
          nothing_specified = 1  
          no_function_found = 2
          OTHERS = 3
          system_failure = 4 MESSAGE smess 
          communication_failure = 5 MESSAGE cmess.

    Also look at the contents of smess and cmess.

    If you still get rc = 3, runn the function on the destination machine with the same parameters, and see what results you get.

    matt

    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.