cancel
Showing results for 
Search instead for 
Did you mean: 

RFC to FILE

former_member181959
Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

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

former_member181959
Contributor
0 Kudos

Hi Udo,

Thanks for your response. This what exactly we have done in our BC implementation.

Could you please tell me which RFC i need to import?

Is it the old one or newly created one?

Thanks again,

Prasad Babu.

Former Member
0 Kudos

Hi,

in your Integration Repositroy Import the RFC "<b>BAPI_GET_COMPANYDETAILS</b>" under "<b>imported objects</b>". Just right click on imported objects and say import, then provide the R/3 system ip address or server name, system id, user name and password, then select RFC and press continue. Now find your BAPI and select the check box and press continue and finally press the Finish button.

After this, just activate your RFC.

Regards,

Sarvesh

****Reward Points, if it helped you.

udo_martens
Active Contributor
0 Kudos

Hi Prasad Babu,

you need to import the new one. The problem is, that you dont send a RFC to XI, you want to log the RESPONSE of an RFC to a file. This is possible only with a wrapper as i told you above.

At ERP:

old RFC is called in a ABAP program

RFC export is put to import of a new RFC

new RFC is call with destionation XI (in background: asynchronous)

Your XI sceanrio is

RFC -> XI -> File (asynchronous)

Regards,

Udo

Former Member
0 Kudos

Hi

You need to import the RFC that has the export parmeters of the BAPI

Thanks

Answers (5)

Answers (5)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

please refer to the following link

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

Thanks

Rinku

prateek
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

[original link is broken]

Regards,

Sarvesh

Former Member
0 Kudos

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