cancel
Showing results for 
Search instead for 
Did you mean: 

sample ABAP to send data to XI via RFC

Former Member
0 Kudos

Hello everybody,

I got some problems unterstanding the "RFC sender communication channel"

First:

Sender means that XI recieves DATA from backend system

So the backend system has to send data to XI via RFC! (?)

How can I do this? A function module expects data (import parameters) and gives data back (export parameters). But how can I send data to XI?

Regards Mario

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>A function module expects data (import parameters) and gives data back (export parameters). But how can I send data to XI?

it's not like that....

RFC means remote function module

so...

you try to execute an RFC on the XI

(but you do it from an ABAP report on ERP,R3)

so by trying to execute the report you send the paramters to the XI

(therefore you send the data)

it's only trying to execute the funciton module on the XI - nothing more

is it clear now?

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

OK Michal,

thanks a lot.

Tell me please:

How can I send data from R/3 to XI?

Thanks Regards Mario

MichalKrawczyk
Active Contributor
0 Kudos

hi,

RFC, IDOC, PROXY, file (via file port for IDOC)

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

OK, in my special case we want to use RFC.

And that is what I dont understand:

How to send data via RFC to XI?

Regards Mario

Former Member
0 Kudos

Depends on the data that you want to send, but you can use BD10, BD12, and BD14 to send master data using RFCs

bhavesh_kantilal
Active Contributor
0 Kudos

Mario,

Am not an ABAP'er, but you would need a report which will be something like this,

REPORT  zreport.

CALL FUNCTION 'RFCNAME' DESTINATION 'TCPIPCONNECTIONNAME'.

EXPORTING --> Fill Export and impot parametrs logic.

Regards,

Bhavesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

you need to create a function module, with process type = RFC, and, inside the ABAP program, you will call this function using the parameter DESTINATION <XI address name>.

To know what's the XI address name, use the SM59.

regards,

Getulio

Former Member
0 Kudos

Hi,

for RFC communication channel

Sender RFC

This is used when we need to send some data from SAP to external environment. the data is sent in the Import parameter.

The requesty is mapped to the receover data. Here the RFc is only the carrier of the data and is not executed at the remote location.

Receiver RFC

If you want tyo excute an RFC in the SAP system, then you map the incoming data to the import structure and RFC is then triggered in the SAP system with this data. The result is then send back in the export parameter.

Regards

Vijaya