cancel
Showing results for 
Search instead for 
Did you mean: 

RFC-XI-JDBC testing is not working

Former Member
0 Kudos

Hi,

I created rfc-xi-jdbc. I created 2 dt, 2 msg types, 2 msg mappings, 1 msg interface(synchronous, abstract), 1 interface mapping.

In the CD, I defined, 1 sender, 1 receiver agreement. 1 receiver, 1 sender determination, 1 interface determination, and two comm channels.

My RFC destination is working fine. But in se 37 , when I execute the FM, and submit the RFC destination I am getting dump. Please tell me what causes this error.

In the message mapping when I tested it (rfc-jdbc) mapping, it gets the action as "insert" and not getting table value. Is it supposed to get a table name? or not?

Thanks. I appreciate your help.

Raj.

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

call your RFC from an abap report

call function XXX

destination XXX

in background task.

remember to do: commit work.

after the RFC call

Regards,

michal

Former Member
0 Kudos

Hi Michal,

Thanks for the help.do u mean a z report or the actual report?. I already have my report program, I called RFC from there. In that RFC has an internal table, which already have commit work statement. Do I still need to write commit work after RFC call?.

Thanks,

Raj.

Message was edited by: Raj Peddisetty

Message was edited by: Raj Peddisetty

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

yes your own Z report

when you call RFC it can't have anything inside

as the call funciton in destination will

only send the data to the XI (it will not go inside this function)

so yes the commit work after the call is a must

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

in your Z report call it like this:

CALL FUNCTION 'Z_BAPI_GOODSMVT_CREATE_BGROUND'

in background task

destination 'you xi dest'

tables

goodsmvt_item = goodsmvt_item_int_table

return = return

.

commit work.

where goodsmvt_item_int_table and return are filled internal tables (for example)

Regards,

michal

Former Member
0 Kudos

Michal,

As I said I already have this zreport program. This is how I am calling:

CALL FUNCTION 'Z_PA_DINERS_TXN'

destination 'DINERSIM' *RFC Dest 4 sender adapter

EXPORTING

ID = lw_id

INIT_ZDINERS = lw_delete

TABLES

IT_ERROR = IT_ERROR

IT_ZDINERS = IT_IM_ZDINERS.

commit work.

Is that correct? I didnot create any seperate program for this, I am using the existing program. Please advice on further steps.

In the RFC destination, do I need to mention XI server params in the gateway server host and service? or my sending system's details?

Thanks,

Raj.

Message was edited by: Raj Peddisetty

MichalKrawczyk
Active Contributor
0 Kudos

hi,

add: in background task

if your call is async

the rest is correct

>>>In the RFC destination, do I need to mention XI server params in the gateway server host and service? or my sending system's details?

you sender system (application)

as per my weblog:

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

if you add the in backgorund the call will work

and then check TCODE SM58 is anything goes wrong

and you won't be able to see the message in the XI

Regards,

michal

Former Member
0 Kudos

Michal,

Thank you very much for help. My call is synchronous, thats why i didnt add background task.

Again, I am struck at RFC destination, it worked perfectly couple of hours ago, not working now. I think its basis related issue.

After that where do I test, using RFC in SE 37 or Zreport by executing?.

Thanks,

Raj.

MichalKrawczyk
Active Contributor
0 Kudos

zreport

>>>>Again, I am struck at RFC destination, it worked perfectly couple of hours ago, not working now. I think its basis related issue.

sap note 730870 - question 25

Regards,

michal

Former Member
0 Kudos

Thanks Michal. I am going through it now.

rgds,

Raj.

Former Member
0 Kudos

Michal,

I followed the note. I tried the transaction smgw on my sending sap system. It works fine. I think its active. I tried to test the RFC destination, but its not working. Any ideas??

Thanks,

raj.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you have to add the parameter

from Q 25 (for < sp12 )

read q25 carefully and do what it says

remember to restart the XI

Regards,

michal

Former Member
0 Kudos

Michal,

Thanks. Mine is SP15, I added the parameter with 10 seconds as the maximum reconnect delay and restarted XI.

restarted R/3 also. tested the RFC dest, not working...Can you please tell me how can I make sure my sending sap gateway is running?. In SMGW, I dont see any active transactions. I can see logged on client as my R/3 sending system.

Thanks,

Raj.

MichalKrawczyk
Active Contributor
0 Kudos

hi,

restart only XI not the R3

then the test will work

the "maximum reconnect delay"

should work but try restarting the XI only

if this won't work I don't know what might be wrong

Regards,

michal

Former Member
0 Kudos

Michal,

How do I make sure that my Gate way is running?. I used smgw transaction, and I could not see any active connections there. Does that mean, Gateway is not running?. If its not running, then How do I make it running?.

Thanks,

Raj.

Former Member
0 Kudos

Michal,

Thanks-a-lot man. After setting up the reconnection delay, it is working fine. I think the problem is with Java Component.

Thanks,

Raj.

Answers (0)