cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Adapter

Former Member
0 Kudos

Hi,

i configured scenario RFC as Sender. I am unable to see any entry in RWB for that scenario.. I tested RFC destination its working fine..

any sugg?

Thanks

Seshu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

1. did you configure as per my weblog:

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

is it sync or async RFC?

if async do you call it:

- "in background"

- do you do COMMIT WORK. at the end of the call?

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

Hi Michal,

I made exactly as your blog says..

its Async RFC.

I just getting Data from R/3 Table to XI and from XI to File. In R/3 I wrote RFC Func Module for that.

And about your question

<i>if async do you call it:

- "in background"

- do you do COMMIT WORK. at the end of the call? </i>

i really don't know what it is.. can pls help me to solve this issue.

and if possible explain me what is "in background" and "COMMIT WORK"..

Thanks

Seshu

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

call it like this:

CALL FUNCTION 'your_function'

in background task

destination ......

EXPORTING

IMPORTING

COMMIT WORK.

Regards,

michal

Former Member
0 Kudos

Hi,

Thanks for reply.

where to write this code.. i am getting Data from R/3 table to XML File..

Thanks

Seshu

MichalKrawczyk
Active Contributor
0 Kudos

hi,

in the RFC call from the R3

you do RFC -> XI -> XML file right ?

Regards,

michal

Former Member
0 Kudos

Hi,

>><i>

you do RFC -> XI -> XML file right ?</i>

yah

>><i>

in the RFC call from the R3 </i>

my RFC Code is like this

Tables Tab:
ITAB   LIKE    ZTABLE
Source Code Tab:
FUNCTION ZGetData.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  TABLES
*"      ITAB STRUCTURE  ZTABLE
*"----------------------------------------------------------------------
select * from ZTABLE into table itab.

ENDFUNCTION.

Thanks

Seshu

Former Member
0 Kudos

Hi Seshu,

Try this:

1.Write an RFC say ZSEND_DATA_TO_XI_RFC that just has import,export, Tables and Exceptions. This is used to send data to XI.

2.Write an ABAP program that gets data from SAP tables amd store them in ABAP local variables. Then call the ZSEND_DATA_TO_XI_RFC passing the data that you retrieved from SAP tables. While calling the RFC use the syntax:

call function ZSEND_DATA_TO_XI_RFC' destination 'XIRFCADAPTER'

exporting

- data to be sent

importing

- data to be returned may be a success from XI

exceptions

- System Failure

- Communication Failure

XIRFCADAPTER is the configured destination in R3 and use the same name while configuring Sender RFC Adapter in Integration Directory.

If you still have questions let me know.

Regards

Venkat Dittakavi

Former Member
0 Kudos

Hi,

Can you guide me how to write RFC code. sorry to ask, i am not abaper. When i am trying to write in RFC its saying

"Reference parameters are not allowed with RFC"

Thanks

Seshu

Former Member
0 Kudos

To fix the problem select the check box Pass Value. As this an RFC you have to pass by value only. You cannot pass by reference. That is what the message is saying.