cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP to BAPI Scenario

Former Member
0 Kudos

Hi Friends

I am doing one scenario in XI and getting an error can anyone please help me

The scenario which I am trying to achieve is this:

A Web Client using SOAP protocol calls the BAPI "BAPI_USER_GET_DETAIL" in R/3.

Configuration

==========

1) System Landscape Directory: Created a new product and one software component for it. Created 2 technical systems : One for Web Client and the other for R/3. Created two business systems for these two technical systems. For both the technical and business systems, I added the software component of the product which I created.

2) Integration Repository: Imported the created software component and allowed for the import of RFC's and IDOCs and then imported the structure for "BAPI_USER_GET_DETAIL". I then created a OUTBOUND SYNCHRONOUS message interface, let's call it "MSGINTRF_BAPI". The outbound structure is "BAPI_USER_GET_DETAIL" and the inbound structure is "BAPI_USER_GET_DETAIL.Response".

3) Integration Directory: Created a new scenario and added the two technical systems as services and then created communication channels for them. Since the Web Client is the sender, I used the SOAP adapter for it and for R/3 which is the receiver, I used the RFC XML adapter.

In receiver determination, the sender service and message interface - "MSGINTRF_BAPI" were specified and then the R/3 system was specified as the receiver system.

For interface determination, the sender service, the message interface and the inbound interface (BAPI_USER_GET_DETAIL) were specified.

For receiver agreement, the receiver service, the message interface (BAPI_USER_GET_DETAIL) and the communication channel were specified.

For sender agreement, the sender service, the message interface (MSGINTRF_BAPI) and the communication channel were specified.

I am using XMLSpy for testing the scenario. I have generated the 'Web Service' 'wsdl' file from the Integration Directory. I use XMLSpy to generate a SOAP request using the generated 'wsdl' file. The error which I get back is that "User does not exist". There is a space between the words "User" and "does not exist". You can replicate this error if you were to run this FM in R/3 without passing the value for the parameter 'username'.

This means that XI is not passing this value to R/3 when it calls this FM in R/3.

What I would like to know is what else should I do in my configuration to let XI transfer the 'username' parameter value, which I pass from my Web client, to R/3 so that I can get the results back?

I hope I have been comprehensive enough to explain the scenario and the problem I am facing...

Please help me in this as i am very new to the XI .

Thanks and Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Sorry i actually have not done message mapping and all that bcause its a huge BAPi and also i dont know how to do it can you please give me a brief about it.

Thanks and Regards

sbhutani1
Contributor
0 Kudos

Hi ishika,

You have to map the user name from source to target BAPI in the request message mapping and in response message mapping you have to map the fields which you want to return to the caller thats it...its so simple.

Regards

Sumit Bhutani

Former Member
0 Kudos

Map ur source mst wid BAPI request & same way BAPI response wid Webservice details. (Alwaz source & target). Then do interface mapping for ur source & target interfaces. Mention ur interface mapping in Interface determination in ID. Try & let us know. It should solve ur prb.

Regards

Sushil

Former Member
0 Kudos

Thanks Sumit its done.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ! Ishika

refer these

/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit

/message/266750#266750 [original link is broken]

/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6...

http://help.sap.com/saphelp_nw2004s/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm

check with this for http client

/message/266750#266750 [original link is broken]

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6...

http://help.sap.com/saphelp_nw04s/helpdata/en/82/f4993c03e0cd37e10000000a11405a/content.htm

Follow this weblog

/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit

have a look also at these

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/httpToRFCSynchronousScenario-FAQs&

/people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi

Pls reward if useful

Former Member
0 Kudos

Hi

I have done that already,actually its not passing the user from the XI system to the r/3 which is actually required to run that bapi.

Thanks and regards

Former Member
0 Kudos

In IR hav u nt created Message Mapping & Interface Mapping between both the messages..?? (One with BAPI Request & other with Response)

Regards

Sushil