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

help

can anyone guide for remote function calls..the exact use of keeping task command..and recive results command..help will be highly appreciated.

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 Oct 12, 2005 at 05:03 PM

    thanks for ur help..i need to recive results by importing a type ref to a class....how do i do that. as it dsoesnt allow a type ref to since its rfc..could anyone help urgently

    Add a comment
    10|10000 characters needed characters exceeded

    • Here is a quick program that I just did that calls an RFC and brings a table back. This works great in my system. The tables parameter EPSDO is a typed like a structure in the ABAP dictionary. This is what you will need to do. Create a structure for your ITAB and the use it in the TABLES parameter.

      
      report zrich_0002.
      
      data: iepsdo type table of zepsdo with header line.
      data: session(1) type c.
      parameters: p_vbeln type vbak-vbeln.
      
      call function 'Z_EP_GET_SDDOC_OVERVIEW' starting new task 'TEST'
             performing return_info on end of task
        exporting
             vbeln            = p_vbeln
        exceptions
               communication_failure = 1
               system_failure        = 2
               resource_failure      = 3.
      
      wait until session = 'X'.
      
      check sy-subrc = 0.
      
      *---------------------------------------------------------------------*
      *       FORM RETURN_INFO                                              *
      *---------------------------------------------------------------------*
      form return_info using taskname.
      
        receive results from function 'Z_EP_GET_SDDOC_OVERVIEW'
         tables epsdo = iepsdo
          exceptions
            communication_failure = 1
            system_failure        = 2.
      
        session = 'X'.
      
      endform.
      
      

      Regards,

      Rich Heilman

  • Posted on Oct 12, 2005 at 03:33 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 12, 2005 at 05:22 AM

    Hi..

    This means ,RFC Function Modules can be call or access from outside of the R/3 system. Whether it be another R/3 system, a legasy system or what ever. RFC Function modules are just like any other function module except that it can be called remotely. BAPIs are just RFC enabled function modules that perform some business logic.

    There are different kind of RFCs like Parallel RFC, Transactional RFC(tRFC), Queued RFC(qRFC).

    1. Asynchronous RFC with Load Balancing (Parallel RFC)

    You can use this RFC type to program parallel RFC calls. The resources are checked and assigned as far as the set quotas allow.

    The required ABAP language element is:

    IN BACKGROUND TASK

    This ABAP command flags the function module func for asynchronous processing. The module is not executed immediately. The data transferred with EXPORTING or TABLES is placed in a database table. A COMMIT WORK then triggers the function module. There are various cases:

    · The data is updated. In this case the function module is executed within the update following the V1 phase, usually even on a different server.

    · The data is not updated. In this case the function module is executed in the same work process.

    3. qRfc can be inbound qRfc or Outbound qRFC

    Cheers...

    Afsal

    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.