cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI - rfc adapter

Former Member
0 Kudos

Hi,

My scenario is CRM -> XI -> R/3 using BAPI at both the ends. CRM has input,output,return(tables) as parameters, and R/3 system also has input, output,return(tables) parameters. In the mapping, CRM output -> R/3 Input,

CRM input -> R/3 output. I also have mapped the return structure.

When i execute the BAPI from CRM system, the bapi dumps, with the error:

4705: Wrong response - Z_TEST_XI_CRM.Response or *Exception expected

Inspite of the dump, i could see the message in IS. Legical routing is correct, it could also do the mapping, but subsequently it fails.

The trace file is as below:

>>RfcAdapter> Tue Mar 30 01:27:43 EST 2004>>

> Jco2Xmb: checking lock status of client object Client=111 User=XIAPPLUSER P

> asswd=******** Lang=EN Host=sealxi SysNr=00 Trace=0 Debug=0

>>RfcAdapter> Tue Mar 30 01:27:43 EST 2004>>

> Jco2Xmb: locking client object Client=111 User=XIAPPLUSER Passwd=******** L

> ang=EN Host=sealxi SysNr=00 Trace=0 Debug=0

>>RfcAdapter> Tue Mar 30 01:27:43 EST 2004>>

> Jco2Xmb: invoking synchronous request to XMB

>>RfcAdapter> Tue Mar 30 01:27:43 EST 2004>>

> Jco2Xmb: calling SRFC_ADAPTER_SERVICE in XMB

>>RfcAdapter> Tue Mar 30 01:27:43 EST 2004>>

> Jco2Xmb: disconnecting client Client=111 User=XIAPPLUSER Passwd=******** La

> ng=EN Host=sealxi SysNr=00 Trace=0 Debug=0

>>RfcAdapter> Tue Mar 30 01:27:44 EST 2004>>

> Jco2Xmb: disconnecting client Client=111 User=XIAPPLUSER Passwd=******** La

> ng=EN Host=sealxi SysNr=00 Trace=0 Debug=0

>>RfcAdapter> Tue Mar 30 01:27:44 EST 2004>>

> Jco2Xmb: call to XMB returned with error (class:4/code:705/name:null/msg:Wr

> ong response - Z_TEST_XI_CRM.Response or *Exception expected)

>>RfcAdapter> Tue Mar 30 01:27:44 EST 2004>>

> App2Jco: got RFC Adapter exception

> exception occurred, detail:

> 4705: Wrong response - Z_TEST_XI_CRM.Response or *Exception expected

>>RfcAdapter> Tue Mar 30 01:27:44 EST 2004>>

> Jco2Xmb: unlocking client object Client=111 User=XIAPPLUSER Passwd=********

> Lang=EN Host=sealxi SysNr=00 Trace=0 Debug=0

Any suggestions...

Thanks

Pandari

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In the message mapping (I assume you are using message mapping), when you drop the message types to BAPI, it will ask you if you are mapping a request or a response message. For the data coming back from R/3 did you select response message?

Regards

Sukumar.