cancel
Showing results for 
Search instead for 
Did you mean: 

what is RFC to XI scenario

Former Member
0 Kudos

Hi Forum,

What is a RFC-->XI scenario

When do we configure Sender RFC channel,

Does it mean calling a RFC enabled Function Module in XI from a R/3,

Does it mean executing a Function Module in a R/3 and sending the output to XI,

how do i go about writing a ABAP code for such a situation (pls provide a sample code)

How do i make a message interface in XI for the RFC message coming from the R/3 to my XI

What is the purpose of doing such kind of scenarios

pls help

Edited by: sudeep dhar on May 7, 2008 8:58 AM

Edited by: sudeep dhar on May 7, 2008 8:59 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

>>Does it mean calling a RFC enabled Function Module in XI from a R/3,

Yes, but not exactly the same, it will try to execute the FM in XI passing the call to using a TCP destination. It will go and hit the configured RFC sender channel. Just like execuing an rfc in a non sap application.

config follow this

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

In R/3 call the FM in a pgm

call <FM> destination <TCPIP Dest to XI>

exporting

...

importing

...

.

rgds

Arun

Former Member
0 Kudos

thanks arun,

but what i understand from calling a RFC enabled function module is like callling a RFC enabled FM from one R/3 to another,

example: if i m on a R/3 and want to call a FM in another R/3, i write:

CALL FUNCTION 'MY_FUNCTION' DESTINATION 'MY_DESTINATION'

EXPORTING....

IMPORTING....

but in RFC-XI scenario, what would i say....

what would be the remote Function....being called from R/3,

can u please provide me a small sample code....

thanks, pls help

Answers (3)

Answers (3)

former_member187563
Contributor
0 Kudos

Hi,

1) Go to transaction sm59.

2) Give some name.

3) Connection type TCP/IP.

4) Activation Type Registered Server Program.

5) Give some programid. You have to use this program id in RFC sender communication channel.

6) In gateway host give the host name of R/3.Give gateway service.

Before testing this connection create a RFC sender communication channel in XI.There specify the parameters like R/3 hostname,program id created above, authorization credentials for R/3 etc.Then activate the communication channel.Then test your TCP/IP connection in R/3. You have to test connection only after you create RFC CC in XI because it will go and check for the program id in XI.

you can use the link:

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

http://help.sap.com/saphelp_nw2004s/helpdata/en/22/042592488911d189490000e829fbbd/frameset.htm

  • reward points if useful *

regards,

ujjwal kumar

former_member8655
Active Participant
0 Kudos

Hi Sudeep

What is a RFC-->XI scenario

>> It means passing data fior RFC call to XI and XI inturn will pass the data to some other application system.

When do we configure Sender RFC channel

>> We need this when your RFC call is on sender application system and the processing is done on receiver applciation system.

Does it mean calling a RFC enabled Function Module in XI from a R/3,

>> NOP, it doesn't mean calling a function module in XI as XI is just a integration broker it wont process any data.The call is intend for other receiver systems passed via XI.

Does it mean executing a Function Module in a R/3 and sending the output to XI,

>> NOP, it is not passing output to XI.

how do i go about writing a ABAP code for such a situation (pls provide a sample code)

>>Sample code will contain call to the sender message interface in the configured scenario.

How do i make a message interface in XI for the RFC message coming from the R/3 to my XI

>> Import the RFC from the sender system to XI and then you can use that message interface in your scenario creation.

What is the purpose of doing such kind of scenarios

>> This is used when you intend to place a RFC call from a sender system to receiver system, so the processing of the RFC is done on the receiver system.

The main points to be considered while RFC to XI scenario is

1) The RFC destination is TCP and the program name mentioned in the desnation should be registered in though sender communication channel. The program name mentioned in the RFC desnation and sender commnucation channel should be same.

Thanks

Mitesh

Former Member
0 Kudos

Hey,

Login to R3.

goto SE37.

Create a funtion module.

Give type Remote Enabled.

Give the exporting parameters.

Goto Source code.

select * from zinfo into itab where psno = psno1.

endselect.

name1 = itab-fullname.

psno2 = itab-psno.

projectname1 = itab-projectname.

Here zinfo is the table.

name1, psno2, projectname1 are exporting parameters.

fullname,psno,projectname are fields of the table.

Import the RFC in your XI system.

you will get exporting parameters as well as the table used in the funtion module in the structure.

Map it with target structure(eg say file)

Execute the funtion module(in R3).

It will select the dat from the table and will dump the details in file.