Skip to Content
avatar image
Former Member

RFC to FILE

Hi all,

I am working on a RFC to FILE scenario. I need to call that RFC in an ABAP report.

I am using BAPI_GET_COMPANYDETAIS RFC to get the data from R/3.

I need to save the response of the RFC into a file. Please let me know what are the repository objects (mapping program and interface mapping) and configuration objects I need to create?

Thanks in advance,

Prasad Babu.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • Best Answer
    Oct 08, 2007 at 12:19 PM

    Hi Prasad Babu,

    you need a wrapper to achieve that result:

    create a RFC without source code and copy the export parameters of BAPI_GET_COMPANYDETAIS as import parameters. Load that RFC to XI.

    First the ABAP program calls BAPI_GET_COMPANYDETAIS. Now map the response to the own RFC as import and send the msg asynchronous to XI (CALL FUNCTIION 'MYFUNCTION' DESTION 'MYDEST' IN BACKGROUND TASK EXPORTING...COMMIT WORK).

    At IB Rep you need the imported RFC, an inbound IF incl data and msg type, and a mapping programm and a IF mapping. At IB Dir 2 Business Systems plus Channel (RFC and File), Receiver and Interface Determination, Receiver Agreement.

    Regards,

    Udo

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 11:12 AM

    Hi Prasad,

    <b> I need to save the response of the RFC into a file</b>>>

    this part is not clear...

    R u telling that ur scenario is Proxy to File.If so ..then u will call the RFC from proxy.And u will have to write a report which will trigger the proxy...

    then check this...

    ABAP Proxy to file

    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

    regrads

    BILL

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 11:25 AM

    Hi PrasadBabu,

    If your Scenarion is RFC to File then, in your Integration Repositroy

    1. Import the RFC under "<b>imported objects</b>".

    2. For source use the xsd of RFC and save it under "<b>External Definitions</b>" .

    3. Create the target data type.

    do other configration as required.

    Also refer this

    Weblog to send Response from RFC to File in Asyn Mode Using Proxy [original link is broken]

    Regards,

    Sarvesh

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 08, 2007 at 12:25 PM

    IR

    1. Import RFC in XI

    2. Create Datatype, message type and message interface for File

    3. Create message mapping and interface mapping with RFC sender and file receiver

    ID

    1. RFC sender and File receiver communication channel

    2. Receiver determination with file receiver

    3. Interface determinations.

    4. Sender and receiver agreement

    Regards,

    Prateek

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 01:02 PM

    Hi

    please refer to the following link

    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

    Thanks

    Rinku

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 09, 2007 at 03:38 AM

    Hi

    >>Is it the old one or newly created one?

    U have to import BAPI_GET_COMPANYDETAILS.

    what is meant by old or new?

    Regards

    Yuga

    Add comment
    10|10000 characters needed characters exceeded