cancel
Showing results for 
Search instead for 
Did you mean: 

Soap -> Xi -> Bapi (different)(not able to see output)

former_member192079
Participant
0 Kudos

hello

Firstly thank to Tuhin & Venkataramanan

In reference to my early question dated Posted: Dec 15, 2006 7:59 AM

/people/community.user/blog/2006/10/24/exposing-bapi-as-web-services-through-sap-xi

-- web service request to XI ,than XI call a BAPI ,and the output of BAPI is sent back to web service responce.-- I am using Altova XML Spy to send a web service request ,& getting responce.I had done all configuration in IR, ID.

As i send a request,through Altova XML spy ,and getting a responce to. but in responce

the BAPI Output Data is absent ,only element tags shows zero,

ex-- <customer salary> <b>0</b> </customer salary>

it should have some value i.e. like 2300 ,which BAPI is giving

<u><b>Every thing is working</b> </u>In <b>Itegration monitering-> adapter (RFC) status green</b>

the massage is---

BAPI name is -- <b>BAPI_AR_ACC_GETPERIODBALANCES</b>

Text

BAPI_Cchannel Receiver channel 'BAPI_Cchannel' for party '', service 'account2service' (internal name 'RfcClient[BAPI_Cchannel]')

Client data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=800, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=guest, jco.client.sysnr=00, jco.client.ashost=192.168.100.21}

Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=800, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=guest, jco.client.sysnr=00, jco.client.ashost=192.168.100.21}

Current pool size: 0, max pool size : 1

RFC_HISTORY

- OK: 2006-12-20 10:06:09 IST: Message processed for interface BAPI_AR_ACC_GETPERIODBALANCES

- OK: 2006-12-19 22:37:20 IST: Message processed for interface BAPI_AR_ACC_GETPERIODBALANCES

In <b>SXMB_MONI staus flag is processed succesfully</b>

there in payload ,the out put is there but with the same empty tag ,which i am getting in

as responce in Altova xml spy, as described earlier

there is no mapping exception

<b>I am not able to locate the error</b>

Might be some different mapping required for BAPI Responce to WEBservice responce or else.

Thanks & Regards

Ashutosh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try to execute that BAPI in R3 first.

If u r passing input from XI to BAPI in R3 some number input fields should be preceeded by zeros(means from ur soap request message).

eg if ur vendor no is 169 then u should preceed it with 7 zeroz as vendor no. ia a 10 digit no.

eg 0000000169.

In ur bapi if u r passing any no. then preceed it with required zeros(it is required if u r passing data from XI but not in case of R3 BAPI execution).

Then test ur response message in ur response mapping.

Thanks.

And then check

former_member192079
Participant
0 Kudos

Thanks

U got the right shot , for my problem... Its working now succesfully.........

Again Thank

Ashutosh

Answers (4)

Answers (4)

former_member192079
Participant
0 Kudos

<b>my problem is solved thanks to all....espcially Tuhin & shweta khade </b>

Its was matter of -- no. of zero 000 (in input fields) that had to be given to BAPI .. through web request.

Thanks & Regards

Ashutosh

Former Member
0 Kudos

Hi Ashutosh,

You need to do response mapping between BAPI response to soap response.

If you have done check it that it is working fine.

Also make sure that you have specified this response mapping in interface mapping .

Check in SXMB_MONI that what is the reply you are getting from BAPI.

Thanks,

Tuhin

Former Member
0 Kudos

Hi,

Take the response payload of the BAPI from sxi_monitor, and try executing the response mapping in the respository.

Are you getting the expected output here?

Regards,

Smitha.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Test Webservice Response Mapping using this blog ,

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

Use this blog to test RFC,

/people/michal.krawczyk2/blog/2006/01/17/xi-debugging-rfc-calls-from-the-xi-not-possible-who-said-that-

Regards

Bhavesh