Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question