cancel
Showing results for 
Search instead for 
Did you mean: 

ASYNCHRONOUS RFC_JDBC

Former Member
0 Kudos

hi all

am doing an rfc-jdbc asyn scenario. Am usingz_rfc_sorates1. i want to execute it in r/3 and get the response in xi which should be mapped to jdbc asynchronously. For that i created a report as shown below

&----


*& Report YTESTRFCREMOTE *

*& *

&----


*& *

*& *

&----


report ytestrfcremote. .

parameters: date type sy-datum ,

time type sy-uzeit."value '000000'.

data itab type standard table of zpsrates1.

call function 'Z_RFC_SORATES1'

exporting

udate = date

utime = time

tables

sorates_tab = itab.

call function 'YTESTRFCREMOTE' in background task destination

'XIDCLNT007_TCP'

tables

itab = itab.

commit work.

write :'1'.

i dont know much about it. is there ny problem in my report coz in sm58 the status coming is JCO Server could not find the function YTESTRFCREMOTE. is there nything else to be done. plzzzzzzzzzzz help

Accepted Solutions (0)

Answers (4)

Answers (4)

prabhu_s2
Active Contributor
0 Kudos

as pointed out by jai and archana not req to have the code:

<i>call function 'YTESTRFCREMOTE' in background task destination

'XIDCLNT007_TCP'

tables

itab = itab</i>

Also check if the following helps you:

[url=https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5398] [original link is broken] [original link is broken] [original link is broken] [original link is broken];Send RFC to SAP XI – Asynchronous[/url]

Former Member
0 Kudos

Hi,

First check the function module you cna access through SAPGUI.

Please see the below links..

/people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco

http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm

http://www.sapgenie.com/faq/jco.htm

Regards

Chilla..

Former Member
0 Kudos

you need use z_rfc_sorates1 RFC while configuring the RFC adapter.

Former Member
0 Kudos

archana can you please explain in detail

Former Member
0 Kudos

I mean, you need to give your RFC name while configuring the adapter. I think your adapter name is z_rfc_sorates1 right?

Former Member
0 Kudos

hi archana

how can i chk th name of adpter

Former Member
0 Kudos

I dont know how you are sending data from RFC to XI but you need to configure RFC sender adapter and also you need to import RFC structire into IR and do the mapping between RFC and JDBC structures. Did you do that?

You need to create communication channels for both RFC and JDBC adapter.

Former Member
0 Kudos

both my IR and ID are complete. but i need to get the rfc response in xi. I need to do that

Former Member
0 Kudos

Hi,

Please see the below link

/people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous

Regards

Chilla..

prabhu_s2
Active Contributor
0 Kudos

mapping program 1: the rfc is to be mapped to the jdbc request message.

mapping program 2: mapping the jdbc response to rfc return strucutre

create the CC acordingly in ID....

Former Member
0 Kudos

>>call function 'YTESTRFCREMOTE' in background task destination

'XIDCLNT007_TCP'

You have to call the RFC here and not the report...

Actually you dont need this code it self. Just use <b>in background task destination

'XIDCLNT007_TCP'</b> when you make the call to RFC.

Regards,

Jai Shankar