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

RFC Adapter ABAP Call Function Code

Could someone give me an example of how you are calling the RFC used by the RFC adapter.....I've tried this but get an error:

CALL FUNCTION 'Z_XI_FILE_UPLOAD'

DESTINATION 'XIRFCCONNECTION'

IMPORTING

OUTPUT_FILE = FILE_DATA.

where XIRFCCONNECTION is my SM59 RFC TCP/IP connection which is on the same server as the RFC Z_XI_FILE_UPLOAD.

Thanks

Patrick

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 23, 2004 at 03:34 AM

    the rfc adapter(in xi) should register itself at the gateway where the rfc function is to be executed. in order to do this, start the rfc adapter. (pl. also check the installation notes, on rfc entries)

    HTH

    pandari

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      We are facing similar problem whar Patrick has mentioned. Have a RFC function and destination TCP/IP port. But when we execute the RFC from SAP side it give error saying

      " JCO.Server could not find server function 'YTEST_RFC' ".

      Checked in XI documentation and found that,

      The RFC adapter uses the connection data for the metadata repository to access the

      required metadata of the called function modules. To do this, a user must be maintained

      for the SAP Java Connector [Extern] (JCo).

      Any idea how to do it?

      Thanks

      Jyoti.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 01:28 PM

    Hi,

    here is an example, how to call the XI-RFC-Adapter from R/3 asynchronously:

    CALL FUNCTION 'Z_SAMPLE'

    IN BACKGROUND TASK

    DESTINATION 'XIRFCCONNECTION'

    EXPORTING

    data = data.

    Also you need an explicit commit work.

    The RFC adapter reads the metadata during startup (XI 3.0: restart the j2ee service SAP XI ADAPTER: RFC)

    Best practice:

    - create a dummy-function "Z_SAMPLE" on your R/3

    - import the rfc-function into I.-Repository

    - complete your scenario (mapping, etc.)

    - restart the rfc-adapter

    regards,

    Ralf

    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.