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

RFC syntax

What are the syntax for the following RFCs:

1. Asynchronous

2. TRFC

3. QRFC

Synchronous will have DESTINATION clause to the CALLFUNCTION method, if im not wrong.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:11 AM

    i got the syntax for TRFC:

    CALL FUNCTION ‘remotefunction’ IN BACKGROUND TASK

    i need the syntax for only QRFC and ARFC. thanku.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:00 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 07:04 AM

    Hi,

    Calling an RFC function module from one system to another

    Following are the participant system for our demo purpose:

    D05 u2013 System where RFC function module exists

    DS3 u2013 Calling system (an RFC call is made from this system to D05)

    Scenario:

    We would develop a small RFC function module in D05 system, which would add two variables. We would pass two variables from DS3 to D05 and get back the sum of those two variables back to DS3.

    Activities to be performed in the system D05

    Go to SE37.

    Under Utilities > Create Function Group (say ZGB_FUNC), if doesnu2019t exists.

    Now create a New Function Module ZGB_FUNC01

    Refer the following links,

    http://saptechnical.com/Tutorials/ABAP/RFCCall/Page1.htm

    http://www.sapnet.ru/abap_docu/ABAPCALL_FUNCTION_DESTINATION.htm

    Regards,

    Jagadish

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Synchronous RFC (CALL FUNCTION-DESTINATION)

      Syntax

      CALL FUNCTION func DESTINATION dest parameter list.

      Effect

      Synchronous call of a remote-capable function module specified in func using the RFC interface. With the addition DESTINATION, the destination is specified in dest. Character-type data objects are expected for func and dest. The calling program is continued using the statement CALL FUNCTION, if the remotely called function has finished.

      CALL FUNCTION - DESTINATION parameter list

      Syntax

      [EXPORTING p1 = a1 ... pn = an]

      [IMPORTING p1 = a1 p2 = a2 ...]

      [CHANGING p1 = a1 p2 = a2 ...]

      [TABLES t1 = itab1 t2 = itab2 ...]

      [EXCEPTIONS exc1 = n1 exc2 = n2 ... [MESSAGE mess]

      [OTHERS = n_others]].

      Refer the link below,

      http://msdn.microsoft.com/en-us/library/cc185356.aspx

      Regards,

      Jagadish

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.