cancel
Showing results for 
Search instead for 
Did you mean: 

File to RFC

Former Member
0 Kudos

Can someone help me do a simple scenario of File to RFC in XI

Plz post a blog or send me the link to help me understand in a simple manner

1.plz tell me what exactly RFC means in XI

2.Where is RFC configured in XI

3.What is the basic mechanism behind the file to RFC scenario

4.what is the difference between RFc and IDoc

Are some ALE settings needed in RFC as in IDocs??

Plz answer all my doubts above

Thanx

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Can someone help me do a simple scenario of File to RFC in XI

Plz post a blog or send me the link to help me understand in a simple manner

1.plz tell me what exactly RFC means in XI

A) RFC means remote function call.RFC is an SAP interface protocol based on CPI-C. It is used to simplify the programming of communication processes between systems. RFCs enable you to call and execute predefined functions in a remote system - or in the same system. They manage the communication process, parameter transfer, and error handling.

Refer the belwo weblog for RFC scenario:

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file%28without+bpm%29&;

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

Take an example:

Ur file is having company code and u need a company code dtail for that company code. So in this case u go for File->RFC request RFC->Response->File scenario.

U pass the company code using BPM to R3 and in R3 u have a get company detail FM which will provide u the company detail.

Now RFC will respond back to XI with the company details to XI and the output file will hold the company detail.

2.Where is RFC configured in XI

A) 1.First u need to import the RFC in IR

2.U r calling the Remote FM from XI hence that FM should be remotely enabled in R3.

3. U need to configure the RFC destination in XI which will point to

4.Configuring the Sender RFC Adapter - step by step

/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step

3.What is the basic mechanism behind the file to RFC scenario

A) Example is explained above.

4.what is the difference between RFc and IDoc

IDOC:

The IDoc interface exchanges business data with an external system.

The IDoc interface consists of the definition of a data structure, along with processing logic for this data structure.

The data structure is the IDoc. The IDoc is the exchange format common to all the communicating systems. You can specify exception handling in the SAP Business Workflow, with IDocs, without the data already having to exist as SAP application documents.

You need the IDoc interface in the following scenarios:

· Electronic data exchange (EDI)

· Connect other business application systems (e.g. PC applications, external Workflow tools) by IDoc

· Application Link Enabling (ALE).

Application Link Enabling (ALE) is a technology to create and run distributed applications.

Refer the link for more info:

http://help.sap.com/saphelp_nw70/helpdata/en/dc/6b828943d711d1893e0000e8323c4f/frameset.htm

Are some ALE settings needed in RFC as in IDocs??

it is required for IDOC scenarios.

THnx

Chirag

Former Member
0 Kudos

Hi,

RFC means Remote funtion call,in XI u have to import the BAPI or the FM to send the data into XI,ID u dont have the Standard IDOC nad u have BAPI to insert the data into SAP R/3 then we go for RFC and for the syncronous scenarios also we go for RFC.

just like how we import IDCO in the same way we have to import RFC into XI.

What is the basic mechanism behind the file to RFC scenario

File to RFC scenario we get data from Legacy system that have to be inserted in to SAP r/3 first we search for the IDOC or BAPI,this is completly depend on the business flow of the data.

what is the difference between RFc and IDoc

RFC is a remote funtion call in which we have the Responce option,were IDOC is a standard structure which is used to insert the data into sap r/3 system.

for RFC scenario we need only RFC connection that will be done in SM59.connection type 3.

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

- File to RFC

/people/michal.krawczyk2/blog/2005/08/22/xi-maintain-rfc-destinations-centrally

- Maintain RFC destination centrally

ALE Setting for IDOC scenario.

STEP 1:ALE SETTINGS TO POST IDOC OUT OF SAP R/3

We need to do the following settings in XI

1) Create an RFC Destination to the Sending System in transaction code (SM59)

a) Choose create

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#

e) Enter the Gateway host as same details above SID/URL

f) Gateway service is 3300+system number#

g) In the Logon /Security tab, enter the client user & Password details of Destination system

h) Test the connection and remote logon.Both should be succesful

****************************************************************

2) Create Port Using Transaction Code IDX1

**************************************************************

a) Select create new button

b) Enter the port name as SAP+SID (The starting char should be SAP)

c) Enter the destination client

d) Enter the RFC Destination created in SAP R/3 towards other system

e) Save

*********************************************************************

3) Load Meta Data for IDOC Using transaction Using Transaction (IDX2)

**********************************************************************

a) Create new

b) IDOC Message Type

c) Enter port created in IDX1

**********************************************************************************************************************

SETTINGS IN SAP R/3

***********************************************************************************************************************

We need to do the following settings in R/3

Logon to Sap R/3 System

**********************************************************************

1) Create an RFC Destination to XI in transaction code (SM59)

***********************************************************************

a) Choose create

b) Specify the name of the RFC destination

c) Select connection type as 3 and save

d) In the technical settings tab enter the details SAP SID/URL and system number#

e) Enter the Gateway host as same details above SID/URL

f) Gateway service is 3300+system number#

g) In the Logon /Security tab, enter the client user & Password details of Destination system

h) Test the connection and remote logon.Both must be succesful

***********************************************************************

2) Create communication Port for Idoc processing Using Transaction(We21)

***********************************************************************

a) First Select Transactional RFC and then click create button

b) Enter the destination port name as SAP+SID (The starting char should be SAP)

d) Enter the RFC Destination created in SAP R/3 towards other system.

e) Save

***********************************************************************

3) Create Partner Profile with Outbound Parameters (WE20)

***********************************************************************

a) Create New

b) Create the Partner no. name as same the logical system name of the destination system

c) Select Partner type LS

d) Enter details for Type: US/USER, Agent, and Lang

Then Save

e) Select Partner no. and LS which were create above

f) Now we have to give some Outbound Parameters.So click on ADD TO Create Outbound Parameter

g) Select Message type

h) Double click on Message Type and Then Enter the details for Receiving port, Pack size=1 and Basic type

I) save

*****************************************

4) In Transaction SALE, Create Logical System

*******************************************

a). Go to Basic Settings-> First Define logical systems

and then assign logical systems

b) Double click on Define the logical systems

c) Give data for your Logicaal System and Name

d) Now click on Save.Here one window may appear just click on Continue.Now the Logical System name is ready

e) Assign the logical system name to the client

*******************************************************************

5) Create Customer Distribution model in the transaction code BD64

******************************************************************

1) Click on the Create modal View button and enter the short text, Technical name etc as shown below

2) Now select the created model view and click on Add message type button .A pop up box appears, enter Sending system, receiving system and message type

3) Save the Distribution model

Generate Partner Profiles

Click on Menu Item ‘Generate Partner Profiles’

It leads to the next transaction where in the selection screen you have to provide Model view name, Partner System logical system and execute

Then, you will be intimated about the partners, port creation, and outbound parameters creation

4) Distribute Customer Distribution Model

In the menu item GO to Edit->Modal View-> ‘Distribute’ to the destination client

Popup window appears ,press Enter

You will be intimated about the the Modal View Distributed

Regards,

Phani

Reward points if Helpful

nisarkhan_n
Active Contributor
0 Kudos

Check this links releated to file to RFC, IDOC, Mail

/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

- IDoc to File

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

- ABAP Proxy to File

/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30

- File to JDBC

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

- File to ABAP Proxy

/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1

- File to File Part 1

/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2

- File to File Part 2

/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping

- Any flat file to any Idoc

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

- File to RFC

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]

- File to Mail

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

your questions:

1.plz tell me what exactly RFC means in XI

RFC and BAPI are same as per the technical point of view both are remote enabled function module..BAPI is provided by SAP while RFC is created by a developer.. IDoc is another proprietary technology of SAP for exchnaging messages .

Difference lies here :

1. For RFC/BAPI you need to use RFc adapter

while for IDoc you need to use IDoc adapter..

2. For RFC you need to create RFC destinations not for Idoc

3. For Idoc you also need to manage Partners Profiles..inn R3..

These are few differences in using RFC/BAPI and Idoc...not the only ones..

2.Where is RFC configured in XI

RFC Sender adpter is configured in XI which will call the RFC destination mantained in the R/3, it will call that using the Program ID maintained in the RFC sender adapter.

3.What is the basic mechanism behind the file to RFC scenario

For receiver just configured the adapter and proceed

IDOC details

http://sapabap.iespana.es/sap/faq/ale_idocs_bapi.htm

Also,

RFCs are used when the caller and the called function module run in the same system. In the SAP system, these functions are provided by the RFC interface system. The RFC interface system enables function calls between two SAP systems, or between an SAP system and an external system.We get information in response to RFC no functional acknowledgement will b received.

IDOC is jus a predefined structure like where in u would post them to your peer in distributed environment.As a response u can get functional acknowledgement for the IDOC which is being sent.

Are some ALE settings needed in RFC as in IDocs?? NO