Webservice ---- XI ------ .Bapi

Hi Experts,
Could anyone please explain the step by step procedure for the below scenario in XI.
webservice <--> XI <----> .Bapi

Go thru this guide ..
you will find step by step procedure in the scenario section .
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555?quicklink=index&overridelayout=true
Regards,
Srinivas

Similar Messages

  • Error while creating WebService for BAPI

    Hi,
    I am trying to create a webservice for BAPI, i created Virtual interface and Webserice and activated.
    In transaction code WSCONFIG i checked webservice has been released. When i test webservice i am getting following error in browser.
    - <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    - <soap-env:Body>
    - <soap-env:Fault>
      <faultcode>soap-env:Server</faultcode>
      <faultstring xml:lang="en">SOAP processing failure, error id = 112</faultstring>
      </soap-env:Fault>
      </soap-env:Body>
      </soap-env:Envelope>
    Could u please tell me whats wrong on this?
    thanks for ur time.
    Murali.

    Does tht mean i need to add the following code
    Line item number.
    item-itm_number = '000010'.
    itemx-itm_number = 'X'.
    Material
    item-material = p_matnr.
    itemx-material = 'X'.
    Plant
    item-plant    = p_plant.
    itemx-plant   = 'X'.
    Quantity
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    APPEND item.
    APPEND itemx.
    For second item.
    Line item number.
    item-itm_number = '000020'.
    itemx-itm_number = 'X'.
    Material
    item-material = '600020001'.
    itemx-material = 'X'.
    Plant
    item-plant    = p_plant.
    itemx-plant   = 'X'.
    Quantity
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    APPEND item.
    APPEND itemx.
      Fill schedule lines
    lt_schedules_in-itm_number = '000010'.
    lt_schedules_in-sched_line = '0001'.
    lt_schedules_in-req_qty    = p_menge.
    APPEND lt_schedules_in.
      Fill schedule lines
    lt_schedules_in-itm_number = '000020'.
    lt_schedules_in-sched_line = '0002'.
    lt_schedules_in-req_qty    = p_menge.
    APPEND lt_schedules_in.
      Fill schedule line flags
    lt_schedules_inx-itm_number  = '000010'.
    lt_schedules_inx-sched_line  = '0001'.
    lt_schedules_inx-updateflag  = 'X'.
    lt_schedules_inx-req_qty     = 'X'.
    APPEND lt_schedules_inx.
      Fill schedule line flags
    lt_schedules_inx-itm_number  = '000020'.
    lt_schedules_inx-sched_line  = '0002'.
    lt_schedules_inx-updateflag  = 'X'.
    lt_schedules_inx-req_qty     = 'X'.
    APPEND lt_schedules_inx.
    But i guess it is overwritting my frst material..
    Also i m gettin a error 
    For object rv_beleg, number  range interval doesnot exist
    Pls suggest

  • Any Blog for Scenario Webservice to BAPI/JDBC/*

    Hi All:
    Can any one send me a blog for webservice to BAPI/JDBC/* scenario. Also how to deploy it in j2ee engine.
    I will reward max points for it.
    Thanks
    Farooq.

    How To Develop a Simple Web Service Application Using SAP NetWeaver
    Developer Studio & SAP XI 3.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f3ee9d7-0901-0010-1096-f5b548ac1555

  • NoClassDefFoundError when deploying webservice calling BAPI

    Hi,
    I need to develop a java webservice which is calling a BAPI. I use DCs for that. One DC contains the JARs (JCO, ...) the other one my class which calls the BAPI (I generated the proxy classes in the same DC).
    Everything looks fine but when I deploy my webservice I always get a NoClassDefFoundError for BAPI_..._Input. Can you tell me why it's not working and what is a solution for it? Honestly I don't understand why I get this error, as the BAPI_...Input is in the same DC.
    Thanks a lot in advance.
    Kind regards,
    Timo

    Hi Suresh,
    there's not really a error stack trace as the error occurs when i'm testing the webservice using the testpage.
    When testing the webservice I get the following response:
    HTTP/1.1 500 Internal Server Error
    Connection: close
    Server: SAP J2EE Engine/7.00
    Content-Type: text/xml; charset=UTF-8
    Set-Cookie: <value is hidden>
    Date: Fri, 20 Oct 2006 11:46:21 GMT
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>bapi_bupa_central_getdetail/Bapi_Bupa_Central_Getdetail_Input</faultstring><detail><ns1:java.lang.NoClassDefFoundError xmlns:ns1='http://sap-j2ee-engine/error'>bapi_bupa_central_getdetail/Bapi_Bupa_Central_Getdetail_Input</ns1:java.lang.NoClassDefFoundError></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    So, it looks like it's the bapi_bupa_central_getdetail/Bapi_Bupa_Central_Getdetail_Input which is missing.
    Kind regards,
    Timo

  • WebService-- SOAP-- BAPI

    Hello Friends,
    we have to do a scnario which involved a WebService and Soap adapter.
    we are using zbapi_soldto requesting KUNNR response NAME and LAND1
    we dont have any WebService (WSDL file) how to create one .xsd
    can some one help  crating .XSD file
    Regards
    Sri

    > HI Moorthy,
    > https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs
    > /library/uuid/befdeb90-0201-0010-059b-f222711d10c0
    > https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs
    > /library/uuid/336365d3-0401-0010-9884-a651295aeaa9
    I gone through this docs but here i dont have .XSD file how to get one? what are possible ways to get the file? I think at this time client wants to check functionality of soap adapter.
    regards
    sri

  • Webservice -   XI -   SAP(BAPI)

    hi
    i have one scenario using webservice, in this one i will post some input through  webservice  to BAPI which is in sap R/3 , and bapi output to publish using webservice,  i have no idea of webservice,  or how to use webservice in this scenario. Could you please help me in doing this one.
    Regards
    Pradeep P N
    null

    Hi,
    Got the requirement finally
    Before giving the solution, what you are now trying to do is what in XI terminology is called , <b>"Expose an Outbound Interface as a Webservice in XI"</b>.
    <b>Integration Repository</b>
    Follow this blog HTTP - RFC and create all the Integration Repsoitory content as shown in this blog,
    <a href="/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit">HTTP to RFC - A Starter Kit</a>
    <b>Integration Directory</b>
    This will be similar to a HTTP RFC , with just 2 added steps,
    1. Create a Sender SOAP adapter and a Sender Agreement for the same.
    2. Define a WSDL.
    1 , is quite simple and is like any other SOAP adapter and Agreement.
    2. To define the WSDL, look into section 3,,.2.2 of this document,
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79">How to use SOAP Adapter</a>.
    Regards
    Bhavesh

  • Converting BAPI to webservice and generating WSDL

    Hi All
    We are using ECC 6.0 and ECC 5.0.
    We want to Convert BAPI to webservice and generate WSDL but we are not getting an option for to create webservice in BAPI=> Tools(after selecting any one of BAPI)  tcode in ECC 5.0/6.0.
    We have followed the link:http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    1. Do we need to perform any config change to get the Create webservice option in BAPI=> Tools(after selecting any one of BAPI) ?
    2. What are the ways to Convert BAPI to webservice and generate WSDL ? Please provide us.
    Your help is appricated.
    Thanks
    Ramesh

    go to SE37 to generate web service

  • Any one worked on BAPI_SALESORDER_CREATEFROMDAT2 BAPI

    Hi
    I am doing Webservice to BAPI using the RFC receiver adater ..
    i am looking in to what are the required fields for Commit the BAPI
    Here is my sample file But i am getting Error " Please Enter Ship to Part or Sold to Party in "SALES_HEADER_IN" .. any idea in which field i have to enter the values...
    <ORDER_HEADER_IN>
         <ITEM>
         <DOC_TYPE>ZCA</DOC_TYPE>
         <SALES_ORG>0020</SALES_ORG>
         <DISTR_CHAN>00</DISTR_CHAN>
         <DIVISION>00</DIVISION>
         </ITEM>
    </ORDER_HEADER_IN>
    <ORDER_PARTNER>
         <ITEM>
         <PART_ROLE>SP</PART_ROLE>
         <PRATN_NUMB>100103444</PRATN_NUMB>
         </ITEM>
         <ITEM>
         <PART_ROLE>SH</PART_ROLE>
         <PRATN_NUMB>100103444</PRATN_NUMB>
         </ITEM>
    </ORDER_PARTNER>
    <ORDER_ITEMS_IN>
         <ITEM>
         <MATERIAL>MMT-315</MATERIAL>
         </ITEM>
    </ORDER_ITEMS_IN>

    Hi Pargathi
    I debugged the BAPI ...i think when i excuet the BAPI from GUI its Taking in Create MODE..
    But when i sent from File its Taking in Update mode ... how do we reolve that
    Error:
    item>
      <TYPE>E</TYPE>
      <ID>VP</ID>
      <NUMBER>112</NUMBER>
      <MESSAGE>Please enter sold-to party or ship-to party</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1 />
      <MESSAGE_V2 />
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      <PARAMETER>SALES_HEADER_IN</PARAMETER>
      <ROW>0</ROW>
      <FIELD />
      <SYSTEM>DEV500</SYSTEM>
      </item>
    - <item>
      <TYPE>E</TYPE>
      <ID>V4</ID>
      <NUMBER>219</NUMBER>
      <MESSAGE>Sales document was not changed</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1 />
      <MESSAGE_V2 />
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      <PARAMETER />
      <ROW>0</ROW>
      <FIELD />
    SV
    Edited by: S V on May 21, 2008 8:48 PM

  • Webservice Test Problem

    Hi friends,
    i created the webservice using BAPI (acctglposting).
    when i tried to test this service i got the error
    Object content does not correspond to Schema restrictions of type [urn:sap-com:document:sap:rfc:functions][char10].
    thanks&regards
    srinivas.

    Object content does not correspond to Schema restrictions of type urn:sap-com:document:sap:rfc:functionschar10.
    Looks like there is a type mismatch on the data element you are passing. Please check if  the data type for the passing parameter is CHAR10.
    Pls reward points if helpful.

  • Two "Call Adapter" step in SXMB_MONI

    Hello Experts,
    I have developed Sync interface WebService - PI - BAPI.
    However when message is failing due to error in mapping at response side, there are 2 "Call Adapter" steps in sxmb_moni got that message.
    First Call Adapter step is not in error status, however 2nd Call Adapter is in Error status (System Error- Restart not possible).
    Could you please explain me why there are 2 "Call Adapter" steps? Actually there has to be only one step.
    Best Regards,
    Manisha

    First Call Adapter step, there is no error
    but in 2nd call adapter error is
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_Z_BAPI_VL10_DLVY_CREATE_resp_2_~</SAP:P1>
      <SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
      <SAP:P3>on: Cannot create target element /ns1:Order/OrderD</SAP:P3>
      <SAP:P4>etail/ListOfItemDetail/ItemDetail. Values missing~</SAP:P4>
      <SAP:AdditionalText />
      <SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_Z_BAPI_VL10_DLVY_CREATE_resp_2_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns1:Order/OrderDetail/ListOfItemDetail/ItemDetail. Values missing</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    both call adapter steps are under "Central client" step. why 2 call adapter in one?

  • Purchase req: allow a customer to view purchase req info via portal

    I would like to know what is the best way to setup a view to allow a customer to view their purchase reqs. Is their a webservice to push info to their portal page or should we setup an ivew and allow them to view PR information.
    Should I use webservices or BAPIs?
    Thanks
    Mikie

    Hi,
    we managed to solve this by implementing BADI /SAPAPO/DM_PO_CHANG2.  Problem solved.
    Best Regards,
    Sam

  • Is there any Web Service to create Internal Order?

    Hi,
    I have to find out a suitable Web Service which can create internal order. I have searched in SOAMANAGER but did not find any such WS. Does anybody have an idea whether there is any such WS?

    Hi Tirth,
    If you are using a bapi for webservice then these threads may help you.
    How to create WebService from BAPIs
    How To Expose BAPI As a Webservise
    If you are creating your own webservice then create an application in java,then expose it as webservice.
    Regards
    Sreedhar

  • Best communication between ECC and PI

    Hi All
    SAP is planning to adapt Enterprise Service Architecture (ESA) in the journey towards Service Oriented Architecture (SOA).
    We are working on new implementation project. We have many asynchrounous scenarios. We would like to configure acknowledgements and also like to handle errors effectively.
    Could you please suggest which communication between ECC and PI  is preferrable?
    (Webservices, IDoc, BAPI or RFC)
    Thanks
    Sai

    IDoc, BAPI , rfc - all can be used for seamless communication between ECC and PI. It is totallu dependant on the application and way information is exchanged. For master and transactional data idoc are prefered as for the acknowledgements supported by it. Not sure how effeciently we can handle system and appl ack incase of bapi/rfc. but at the same time idoc will be a drawback for sync comunication where rfc/bapi is preferd. It is SOA or ESA the concepts build in SAP are targeted to serve the enterprise needs where idoc,bapi/rfc are used for servicing the business unit objectives

  • Help on XI to BW and CRM integration

    Hi
      How to to integration between SAP XI to BW,CRM integration ?
      Is it same as ERP or Any differences ?
    Can any one provide me links on this ?
    regards
    Rakesh

    Hi
    XI to CRM integration in detail
    SAP CRM Integration with XI (To Cross Applications)
    1)     Usually these kind of scenarios are SOAP - IDOC scenarios. The Webservice is used in EP that triggers the scenario. As usual standard IDOCs for CRM is used in the receiver side. There is also predefined XI content available for CRM integration and this is biggest advantage.
    2)     If your integration policy is to make all integrations go thorugh XI and for all known advantages of XI i.e. central monitoring of integration data, loose coupling, you should go for XI. Else your webdynpro screens can always make use of CRM functionality exposed as webservices as model directly.
    3)     CRM uses Bdocs to communicate. But if you want to test, then you can go for either Idocs (create a custom idoc) or you can create a RFC and you can test it. Then it is normal Idoc/RFC->XI scenario or vice versa
    4)     There are multiple ways of integrating a CRM system with XI. You have to remember that your ultimate aim is to call the ABAP proxy method, passing the data as a parameter. This can usually be the last thing you call in another method or function module that first collates the data and packages it into the structure required by the proxy method.
    5)     CRM has something called 'actions' that can be triggered on certain events. These actions then call a function module that gets processed.  Another route I have used is to have a batch job running periodically that runs a program. This program calls the proxy method.
    Web Application (Webservice)=========è XI  ========è IDOC SAP CRM
    Web Application (Webservice)=========è XI  ========è BAPI SAP CRM
    Web Application (Webservice)=========è XI  ========è ABAP Proxies SAP CRM
    Web Application (Webservice)=========è XI  ========è RFC calls to SAP CRM
    Note:
    If the volume of data is huge. Then go for idoc, as there might be standard idoc and if the volume of the data is not huge then go for BAPI.Go for a proxy only when if standard Idoc's or BAPI's are not available otherwise you are re-coding the existing things.
    As CLAUS suggested try using BPCRM, as I believe they would have included creating sales order as it is very fundamental proceess of CRM products.
    If you don't want to do any coding, then you will have to go for IDOCs/ BAPI. In this case all you have to do is the configuraion.
    However, when you use Proxies, there will be a little coding required for calling the proxy. Its not much though. However, Proxies should get you better performance as they bypass the adapter engine.
    In this case, as everything is standard, I would probably go by IDOC's.
    You need to write client and server proxies.
    Instead of coding for proxy if the Idoc is standard option.go for idoc tunnelling. As both your systems are SAP.That is the option’s the best.
    i hope this will answer your question
    regards
    --- prasad

  • Adding UI elements in a abstract portal component??

    Hi,
    I want to create an abstract portal component in PDK with a textarea and a submit button..On clicking the submit button I want to store the textarea content in a file..So can anyone provide me the solution to this soon??
    Regards,
    Udit

    Follow the steps :
    Create a View, Drill down
    From the compose section add  form
    Configure the form element
    Add an input field
    Go to the Properties of input element (Layout tab, Input field - Right click)
    change the input field to dropdown.
    Also you can have dynamic or static lists in dropdown. Go to entry list tab, either create your static values or choose a webservice or bapi for dynamic list.
    Hope this helps.
    Regards,
    Ashutosh

Maybe you are looking for

  • All in One oversized printer for scrapbooking

    Hi.  I am looking for an all in one printer/copier/scanner AND to be able to print my 12' X 12" layouts.  Do you guys have ANY idea where I can find one?  I have been searching the internet all day and am frustrated!  Thanks for your help!! Sherrie

  • Itunes won't sync my music to the new iphone 6

    Please help.  This is really frustrating.  I am starting to think that this iPhone 6 was a bad decision.

  • Second page in smartforms

    hi, i want to display second page in smartforms with different condent in that, i called second page in main window of 1st page using command,the problem is i want to display total window of 1st page after the end of main window,but now the second pa

  • Einkauf geht nicht!

    hallo, wenn ich während dem Spiel Ninja Royale, Coins kaufen möchte, gibt er mir manchmal diese Fehlermeldung: Bitte kontaktieren Sie iTunes Support, um diese Transaktion abzuschliessen. Wie beseitige ich dieses Problem? MfG

  • Hierarchy restriction

    Dear All, I am syncing the query between two system. In the query there is a restriction on hierarchy on particular node,so I am finding very difficulty to find the ame node in the other system, Is there any easy way to do it. Please help. Thanks, Sa