HTTP to BAPI  Scenario

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

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-bb6d8ca48cc8
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-bb6d8ca48cc8
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&
Unable to view payload in HTTP to RFC Scenario
/people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi
Pls reward if useful

Similar Messages

  • Http to bapi scenario runtime mapping exception

    Hi,
    I am doing to http to bapi scenario and I am giving the valid sales order number and organization. And It is throwing me below exception when I see it in sxmb_moni.
    ======================
    <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_request_sales_bapi_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_request_sales_bapi_: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    ========================
    I have executed individual mappings with sample data and worked fine.
    Any inputs on this?
    Thanks
    Balaji

    hi,
    you need to test the mapping as shown in my blog:
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    to find the error
    then correct your mapping and try again
    Regards,
    michal

  • Http == rfc (bapi) - bapi not created

    Hi
    I've got an http <==> rfc (bapi) scenario. QoS is Best Effort. I am using SAP's http test tool. After enabling the "synch-logging" I can see two successful rows. I am using the bapi "bapi_master_savedata".
    Some weird things:
    - no material master data is created.
    - The parts of the response message are only "Call Adapter" and "Request Message Mapping", nothing else.
    Thanks
    Go:khan

    Hi
    I think you pointed to the right problem.
    I haven't written something like that before, but I will try if there is no other solution.
    So I don't need any wrapper for a syn. rfc call with SP 14??
    But the following article doesn't use any wrapper "/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit ??
    Thanks
    Go:khan

  • HTTP to BAPI

    Hi,
       I am doing HTTP to BAPI. In this one I am following the setps of TBIT - HTTP to BAPI scenario. Now when I compleated I am getting error <b> The requested resource does not exist..</b> ( MY sender service is correct and all parameters like host,port,client and etc were correct.)
      Is there any thing to be changed in the XSD and XSL files.
    regards,
    Ansar.

    Hi,
    Where you are getting this error... is it while sending a request to XI, I mean to the HTTP adapter?
    If so please check of you are using a proper URL
    check out this link for HTTP adapter URL
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
    Regards,
    Prakash

  • HTTP 2 BAPI

    Hi 2 all,
    I am running the HTTP to BAPI scenario ....
    My test Html tool for executing the scenario is showing Error Msg on page.
    and Error message : Permission Denied is showing..
    Help needed ..XI guru's
    Regards,

    Sorry guys,
    you took me wrong....
    Scene  is  : When i am clicking on Send button of Test HTML...A message is coming up at the status bar of Explorer saying "Error in Page".
    Regards,

  • Testing HTTP to File scenario

    Hey guys
    i m testing a HTTP to file scenario for one of our clients and the test seems to be working fine when i test it in RWB under Integration Engine,MONI is chequered as well as i m getting the file on receiver side too.
    but when i test it by making use of the HTTP client which i got from the followin link
    /message/266750#266750 [original link is broken]
    it gives and error saying http-status 404 not found.
    the URL which is getting created is
    http://scosap005.sap.com:50100/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    is this the same URL our client is gonna use to post the message to our XI server?
    also why am i getting error in the second testing?
    thanx
    ahmad

    Hi,
    1) Did you maintain Client, userid, password, and lang information in SICF transaction -> sap/xi/engine ? Double click on service and check whether you have entered correct information.
    2)Access the trace file and search for traces with severity ERROR, WARNING or stack traces.
    If we do not find an error in the log file or the error message does not explain the problem sufficiently, access the default Trace. The default trace file contains detailed messages for developers. Extract the relevant trace information e.g. using the time stamp or the message ID.
    If this does not explain the problem in more detail, increase the trace level and reproduce the problem. Then restart message processing using the message display tool. Mark the message and select repeat.
    3)Check the Note-803145
    4) 404 is an HTTP response code that indicates that the resource in question could not be found. Usually this is due to an incorrect URL check all URLs.
    Regards
    Agasthuri Doss

  • Warning message in MONI for HTTP to File scenario

    Hey guys
    i have a HTTP to file scenario wherein i m getting file from an extrenal system in XML format outside our landscape,file is coming in properly and its being delivered as desired as well,but everytime i check my payload in moni ,an information message pops up saying that the file may be unsafe,do you want to display,save or cancel?
    even though i get correct payload and the file is also coming from the designated IP and port,why do i keep getting this pop up?
    thanx
    ahmad

    Hi Ahmad,
    Put a break point at line 1,311 in progam RSXMB_DISPLAY_MSG_VERS_NEW_F02 in the form READ_AND_DISPLAY_DOCU2....
    That is where you are getting this popup from...
    Thanks,
    Renjith

  • HTTP to File Scenario using URL parameters.

    Hi,
    I am working on a HTTP to file scenario where POST method is hirring the XI server with authentication parameters.
    CAD application is trying to hot our XI server using POST Method and the application does not have ability to send XML payload to XI server directly.
    So we are simply receiving parameters in plain text in inbound payload.
    I need to convert this payload to XML format and am tring to work this out using dynamic configuration.
    But It is throwing parser error.
    BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 73, 75, 62(:main:, row:1, col:3) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:770)
    Here I have to use HTTP sender adapter.
    Please suggest how can I acheive this.??
    Regards,
    Sachi

    Hi Mark and Maciej,
    The Inbpound payload we are reciving is of the kind:
    sap-user=<UserID>&sap-password=<Pwd>&Param1=Sachi&submit=submit
    As in HTML we ar using hidden parameters to given authentication details and submmit button to hit XI serrver.
    Can you please help me to out how can I add prolog and epilog.
    How can I change my payload to XML format.
    Regards,
    Sachi

  • Http to File Scenario

    Hi,
    I am doing Http to File Scenario i.e, Receive message via HTTP, Process it and write the file in the target.
    1. As Http is the sender, I need not create Sender Communication Channel and Sender Agreement. But While Creating other objects in the ID, we need to mention Sender service, so what shd i mention there.
    2. Can we do Asynchronous scenarios for Http to file Scenarios, because I have done Http to RFC scenario before.
    3. When I use the HTTP Client tool to test my scenario, I upload a file or paste an xml payload and test, then will the file be created in the target directory, as Receiver is the File Adapter.
    4. Do I need to create any Technical and Business System for HTTP sender in SLD, or should I create a Business Service in ID.
    Regards,
    Varun

    Hi,
    1. As Http is the sender, I need not create Sender Communication Channel and Sender Agreement. But While Creating other objects in the ID, we need to mention Sender service, so what shd i mention there.
    ---> You need to use the Business Service on sender side. Similar to HTTP --RFc scenario, It is required to identify the Sender side service.
    2. Can we do Asynchronous scenarios for Http to file Scenarios, because I have done Http to RFC scenario before.
    --> Yes You can have the asynchronous scenario. with HTTP to file
    3. When I use the HTTP Client tool to test my scenario, I upload a file or paste an xml payload and test, then will the file be created in the target directory, as Receiver is the File Adapter.
    --> Yes it will create the target file. If youhave applied any File Content Conversion then you can align the XML format to flat file format also....
    4. Do I need to create any Technical and Business System for HTTP sender in SLD, or should I create a Business Service in ID.
    ---> Its better if you create the Business Service. Generally for SAP landscape Business system is used..and here in your scenario sender is HTTP and there is no need of Business system...Go for Business Service..
    Thanks
    Swarup
    Edited by: Swarup Sawant on Aug 12, 2008 10:36 AM

  • Error in HTTP to file scenario

    Hey guys
    we have a HTTP to file scenario in which our client has to send the Invoices over HTTP in XML format,when we test the scenario from within our landscape we are getting the output file correctly but when we test from the client site,we get an error message saying that the file has missing semi colon (,the URL which we are getting from the local HTTP client is something like this
    http://scosap005.sap.com:8001/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    and the one which we are getting from the client is
    http://xx.xxx.xx.xx:8001/sap/xi/adapter_plain?namespace=urn%3ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=&sap-password=&sap-client=100&sap-language=EN
    why am i getting this error?
    thanx
    ahmad

    Hey guys
    i m having a very strange problem with my scenario,we are doing a HTTP to file scenario,now as both the sender and receiver have same structure i havent done any mapping,client is sending XML over HTTP from another location which is not in our landscape,he is using web methods Business connector .when he send us the XML message to our XI server some stuffs are added at the top of the payload,its something like this
    namespace=urn%253ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=nov_test&sap-password=xi_test&sap-client=100&sap-language=EN&
    these are actually the parameters which are used in the URL to send the XML to us.but because of this i m unable to process the XML .
    so my XML looks something like this
    namespace=urn%253ANOVInvoiceToSCO&interface=MI_Invoice_sender&service=BS_test_invo&party=&agency=&scheme=&QOS=EO&queueid=httpclient&sap-user=nov_test&sap-password=xi_test&sap-client=100&sap-language=EN&
    <?xml version="1.0" encoding="UTF-8"?>
    <Invoice transactionPurposeIndicator="Original">
         <InvoiceProperties>
              <InvoiceNumber>0094372098</InvoiceNumber>
              <InvoiceDate>20070319</InvoiceDate>
              <VendorNumber>VENDOR #</VendorNumber>
    but when i try this scenario from within our landscape it works fine and nothing is added on top of XML.
    they are sayin that nothin extra is being added from thr side and their XML does not have the extra addition on top.
    how should i solve dis problem?
    its urgent
    thanx
    ahmad

  • Error in the filename response vaule when doing Http to file scenario

    Hi,
       I am doing Http to File Scenario. I am trying to retrieve the source filename in the structure field "filename". I have defined a UDF for that and It worked well for file to file scenario.
    Now for Http to file scenario if i want to get the filename, I am getting "null" value in the response.
    I am using Http Client test tool for testing the scenario.
    My output is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:FileTarget_MT xmlns:ns0="http://soacity.net/HTTPtoFile">
      <MsgId>DD74CE4AE01AC6F19C0900199912BCA0</MsgId>
      <filename>nullnull</filename>
      <Body>hello world.</Body>
      </ns0:FileTarget_MT>
    I got nullnull because i am trying to retrieve Source directory and filename.
    Desired Out put
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:FileTarget_MT xmlns:ns0="http://soacity.net/HTTPtoFile">
      <MsgId>DD74CE4AE01AC6F19C0900199912BCA0</MsgId>
      <filename>/FileServer/Sender/test.xml</filename>
      <Body>hello world.</Body>
      </ns0:FileTarget_MT>
    For File receiver i am using FTP Parameters.
    I got the correct output for file to file scenario because i had placed the file in the source directory, so that XI can read the source directory and file name. but now for Http to file scenario i am using the Http client tool, where in i have an option to paste the payload directly or upload the file.
    Any Inputs would be appreciated.
    Regards,
    Varun

    Hi,
    I Have defined the structure as
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Source_FILE xmlns:ns0="http://soacity.net/HTTPtoFile">
       <Message>
          <Id/>
          <Head>
             <Id/>
             <Filename/>
          </Head>
          <Body/>
       </Message>
    </ns0:MT_Source_FILE>
    My requirement is
    "The HTTP adapter would recieve a HTTP document. It has two main tags: head and body; there are two options : either specify the filename in <head> and data in <body> or you send the full message as payload into <body><message>.... </message></body>"
    So How do I proceed in Defining the objects.
    Regards,
    Varun

  • HTTP to SOAP scenario

    Hi guys,
    We have developed an HTTP to SOAP scenario, where XI acts as the WS client in order to call an already published WS.
    When we are testing the scenario through RWB's interface (Component Monitoring --> Integration Server --> Integration Engine --> Self-Test Tab), we get error in SXMB_MONI.
    The error is found in receiver SOAP adapter.
    In Communication Channel Monitoring, we get the error "request entering", "call failed". The Message Id does not have a link in order to see the Audit Log.
    In SXMB_MONI, the error in SOAP header is the following :
    <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.net.NoRouteToHostException: No route to host: connect</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
    Our network does not use a proxy server, the Web Service hostname responds when we ping it from CMD.
    Also, the WS works fine when testing it from Web.
    We tried to play around with "Target URL" and "SOAP Action" parameters in receiver SOAP Com. Channel, but error remains the same.
    Any ideas ??
    Evaggelos

    When I am testing the url : http://fmgralxi01:50000/XISOAPAdapter/MessageServlet?channel=:StockQuoteService:Sender_SOAP
    I get :
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/aii/30_VAL_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#16 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0
    ModuleProcessorRemote not instantiated
    As username: xiappluser

  • Issue in HTTP to RFC scenario

    Hi Experts,
    i am working on HTTP to RFC scenario.From Http client i am sending data to integration engine.
    i am unable to see any messages in SXMB_MONI.Means data from HTTP client not reached Integration engine.
    why the data is not reaching integration engine?
    This scenario needs any configuration settings in XI or any changes in HTTP client??
    Plz suggest me in this issue?
    Regards,
    Bhuvan.

    Hi Experts,
    thanks for giving replies.
    The response i am geting in HTTP client:
    Result:  
    <!   DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Error Report</title>
    <style>
    td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}
    A:link
    A:visited
    A:active
    </style>
    </head>
    <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  404 &nbsp Not Found</b></font></td>
    </tr>
    <tr bgcolor="#3F73A3">
        <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>
        <td height="23"><img width=1 height=1 border=0 alt=""></td>
        <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00 </b></font></td>
    </tr>
    <tr bgcolor="#9DCDFD">
        <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>
    </tr>
    </table>
    <br><br><br><br><br><br>
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">
    <tr bgcolor="#FFFFFF">
        <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  The requested resource does not exist.</b></font></td>
    </tr>
    <tr bgcolor="#FFFFFF">
        <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>  Details:</b></font></td>
        <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>  Go to <A HREF="/" target="_parent">main page</A> of this application!</pre></font></td>
    </tr>
    </body>
    </html>
    Regards,
    Bhuvan.

  • HTTP to File Scenario: execute Test Tool (html) but any received message?

    Hi all,
    I have configured the HTTP to File scenario in SAP XI 7.0. When i execute the Test Tool (HTTP_Client_Adapter.html), i don't see any message in the XI Server. I don't know the Test Tool which i used for the test work correctly, because when i clicked on 'Send' button, i don't get any message in the XI Server?
    The Configuration Scenario is OK when executing the Configuration Test in ID.
    Could you please tell me how i can know the Test Tool is execute correctly?
    The Test Tool which i used in the link below:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
    Thanks a lot in advance,
    Vinh Vo

    HI,
    In XI You can go to RWB (from XI server homepage)->Comp Monitoring -> Display All ->Int Server-> Int Engine
    In the bottom, you find 3 tabs, select the test message tab to post messages.
    Pls note that, when you need to test, you should have created the scenario in IR/ID (and u can use the details of Receiver Determination ID) to fill in the details.
    You can refer this:
    /message/266750#266750 [original link is broken]

  • Reg http to jdbc Scenario

    Hi all,
    I am trying to execute a synchronous Http to Jdbc Scenario using MS Access  table as my back end.
    In design part ,I have followed the steps like
    1. Created a http req ,jdbc req, jdbc response ,and then http response in Data types and the in Message types.
    2.Created Outbound MI with http req and http response as input and output messages  respectively,then Inbound message interface with jdbc req and jdbc response as input and output messages respectively.
    3.In Message mapping with  Http req and jdbc req as request mappings and jdbc response and http response as Response mappings following the Action and access Steps.
    Thats Fine with design part
    IN Configuration Part, Since it is a Http Sender ,i didnt create any sender agreement and sender communicatin channel.
    Then Configured Jdbc adapter properly and i am able to access my table with that.
    While Executing ,I can find that my message is sent in Runtime workbench and can find that Jdbc adapter is Running by showing green flag.
    I was trying to send an empid of a table as  key and expecting to  retrieve  the complete row of the corresponding key.
    But I could not find the response even though everything is fine with XI.
    Where Could be the problem ,where can I see the response from jdbc adapter .
    Please help me out in solving this .
    Thanks and Regards,
    Kalpana

    Hi Kalpana,
    Can you check this weblog
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    This should help you...
    Check the Response Mapping,also you have one IM with Reqest and Response mapping...
    Also if you have SP16 then you can have sender CC for HTTP also ...
    Regards,
    sridhar

Maybe you are looking for