Creating Webservice out of a BAPI

Hi all,
      I need to make WebService out of a BAPI.
      Hence I want the procedure to do it.Helpful Links are also Welcome.

Hi Dinesh ,
<b>Please follow these Steps to create a Webservice out of a BAPI :</b>
<b>Prerequisites :</b> Version SAP 6.4 & above
1. Log into your SAP System - Enter (Client , User ID , Pwd)
2. Enter the Transaction SE37
3. Enter the name of the BAPI you want to convert into Webservice
    For EX : BAPI_BANK_GETLIST
4. Click Display
5. In the Menubar > SelectUtilities > More Utilities > Create Webservice >
    From the Function Module .
6. The Webservice Wizard Opens
7. Select Continue
8. Enter the Virtual Interface Name & Description ( User Defined )
9.  Select Endpoint : Function Module
10. Check NameMapping
11. Choose Function Module, Select Continue
12. Enter the Webservice Name & Description ( User Defined )
13. Select Profile BASIC Authorization : SOAP Pro
14. Select Continue , This will create a Webservice out of the BAPI
15. Choose a Standard Package where you want the Webservice to be parked.
16.To find the address of the Web service, use the transaction WSCONFIG, which supports you when you publish a Web service in the UDDI.
17.Enter WSADMIN transaction to open Webservive Administration for SOAP runtime.
18. Under SOAP Application for BAPI's , select your Webservive and Click on WSDL Generation Button ( Last Button among 4 Buttons - Below Title )
19. Select RPC and OK.
20. Please Enter your User Id & Password of the SAP system you are working on.
The WSDL is created for the Webservice.
<b>Thus the WebService is Created out of the BAPI.</b>
Hope this helps you very much
Regards,
Santhosh

Similar Messages

  • Error:Creating websevice out of a BAPI

    Hi all,
      When i create a websevice out of a Bapi,following error is incurred
    "Connection couldn't be recreated: 1 cause: Encountered invalid managed connection, last cause Couldn't execute interaction.  2 cause: Couldn't execute interaction. "
    Any solution for the error?
    Regards,
    Dinesh

    Hi Dinesh ,
    <b>Please follow these Steps to create a Webservice out of a BAPI :</b>
    <b>Prerequisites :</b> Version SAP 6.4 & above
    1. Log into your SAP System - Enter (Client , User ID , Pwd)
    2. Enter the Transaction SE37
    3. Enter the name of the BAPI you want to convert into Webservice
        For EX : BAPI_BANK_GETLIST
    4. Click Display
    5. In the Menubar > SelectUtilities > More Utilities > Create Webservice >
        From the Function Module .
    6. The Webservice Wizard Opens
    7. Select Continue
    8. Enter the Virtual Interface Name & Description ( User Defined )
    9.  Select Endpoint : Function Module
    10. Check NameMapping
    11. Choose Function Module, Select Continue
    12. Enter the Webservice Name & Description ( User Defined )
    13. Select Profile BASIC Authorization : SOAP Pro
    14. Select Continue , This will create a Webservice out of the BAPI
    15. Choose a Standard Package where you want the Webservice to be parked.
    16.To find the address of the Web service, use the transaction WSCONFIG, which supports you when you publish a Web service in the UDDI.
    17.Enter WSADMIN transaction to open Webservive Administration for SOAP runtime.
    18. Under SOAP Application for BAPI's , select your Webservive and Click on WSDL Generation Button ( Last Button among 4 Buttons - Below Title )
    19. Select RPC and OK.
    20. Please Enter your User Id & Password of the SAP system you are working on.
    The WSDL is created for the Webservice.
    <b>Thus the WebService is Created out of the BAPI.</b>
    Hope this helps you very much
    Regards,
    Santhosh

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • Unable to Create a WebService out of a proxy java class

    Hi ,
    I have a bpel process of which i created a java proxy client. I tested the proxy and it is invoking the bpel process fine. Now i'm trying to generate a webservice out of this proxy(java Class) . but im facing some issues while creating the webservice.
    I get an Error saying Cannot serialize into XML and no custom serializer found.
    i have a complex datatype(array).

    sandeepthr,
    I'm not sure I understand why you would do this? If you have a BPEL process, by definition, isn't that already exposed as a web service? Why would you create a web service for a proxy of a web service?
    John

  • In BAPI Explorer Create Webservice in Tools is missing

    Hello,
    I've exactly the same Problem posted here:
    Re: Unable to see Create Web Service option in Tools tab in BAPI Explorer
    >I am trying to create a Web service for existing BAPI (FlightBooking) in BAPI explorer. Go To BAPI Explorer-->Hierarchical>Basis Components>ABAP Workbench, Java IDE and Infrastructure--
    >FlightBooking After selecting FlightBooking, check the Tools tab Then you should be able to see Create Web Service option. But, I am unable to see the Create Web service option in Tools tab. What could be the problem. Did some one encounter a problem like this before?
    The post was marked as answered but like others mentioned before, this
    is still unresolved. Maybe some can help.
    Kind regards, Ute.
    [Attached Screenshot|http://i49.tinypic.com/14defcg.jpg]

    Hi,
    thanks, for this hint. Sorry but I installed fresh and to hack in the tables can't be the right solution. I don't think SAP suggest to access Database direct to enable or to have a feature.
    Also, with the other way to access the wizard its only possible to create web services for a single function, but not for a object.
    Or how to create for all Business Partners BAPI's / Methods one Service?
    Kind regards, Ute.
    I've added also a Screenshot of the BAPITOOLS Table, i guess first row is the Wizard. Is there something missing or wrong? At least it's not disabled.
    [BAPI Tools Table|http://img97.imageshack.us/img97/2508/bapitoos.jpg]

  • Create a new routing with BAPI BAPI_ROUTING_CREATE via JCo

    I try to create a new routing with BAPI BAPI_ROUTING_CREATE via JCo.
    I filled all necessary parameters. I also realized a commit_work. I get in the RETURN parameter of the BAPI the Message "S 000 Routing N/50001641/01". But the routing isn't in the database. Other JCo programs I wrote (create material master or costumer order) are working very well.
    Have anyone an idea?
    Thanks Jörg
    Here's my coding:
    public void createArbeitsplan() {
              doLogin();
    //          connectionAttributes();
              Plan plan = new Plan();
              for (int i = 0; i < planList.size(); i++)
                   plan = (Plan) planList.get(i);
                   //Ein Function-Objekt erzeugen
                   String bapi = "BAPI_ROUTING_CREATE";
                   JCO.Function savePlan = null;          
                   try { savePlan = this.createFunction(bapi); }
                   catch(Exception ex) { ex.printStackTrace(); System.exit(1); }
                   if(savePlan == null) { System.err.println(bapi + " not found in SAP"); System.exit(1); }
                   //Import und Tabellen füllen
                   // Plankopf
                   JCO.Table headData = savePlan.getTableParameterList().getTable("TASK");
                   headData.appendRow();
                   headData.setValue(plan.kurztext,"DESCRIPTION");
                   headData.setValue("1","TASK_LIST_USAGE");
                   headData.setValue(werks,"PLANT");
                   headData.setValue("4","TASK_LIST_STATUS");
                   headData.setValue("ST","TASK_MEASURE_UNIT");
                   headData.setValue("001","RESP_PLANNER_GROUP");
                   headData.setValue("20070101","VALID_FROM");
                   headData.setValue("20991231","VALID_TO_DATE");
                   headData.setValue("1","LOT_SIZE_FROM");
                   headData.setValue("99999999","LOT_SIZE_TO");
                   // Materialzuordnung
                   JCO.Table materialAlloc = savePlan.getTableParameterList().getTable("MATERIALTASKALLOCATION");
                   materialAlloc.appendRow();
                   materialAlloc.setValue(plan.material,"MATERIAL");
                   materialAlloc.setValue(werks,"PLANT");
                   materialAlloc.setValue("20070101","VALID_FROM");
                   materialAlloc.setValue("20991231","VALID_TO_DATE");
                   materialAlloc.setValue("1","GROUP_COUNTER");
                   // Vorgänge
                   JCO.Table operationData = savePlan.getTableParameterList().getTable("OPERATION");
                   for (int j = 0; j < plan.getAnzahl(); j++) {
                        operationData.appendRow();
                        operationData.setValue(plan.getVorgang(j).vorgang,"ACTIVITY");
                        operationData.setValue(plan.getVorgang(j).steuschl,"CONTROL_KEY");
                        operationData.setValue(plan.getVorgang(j).arbplatz,"WORK_CNTR");
                        operationData.setValue("1111","WORK_CNTR");
                        operationData.setValue(plan.getVorgang(j).text,"DESCRIPTION");
                        operationData.setValue(plan.getVorgang(j).basismenge,"BASE_QUANTITY");
                        operationData.setValue(plan.getVorgang(j).vw1,"STD_VALUE_01");
                        operationData.setValue(plan.getVorgang(j).vw2,"STD_VALUE_02");
                        operationData.setValue(plan.getVorgang(j).vw3,"STD_VALUE_03");
                        operationData.setValue(plan.getVorgang(j).ze1,"STD_UNIT_01");
                        operationData.setValue(plan.getVorgang(j).ze2,"STD_UNIT_02");
                        operationData.setValue(plan.getVorgang(j).ze3,"STD_UNIT_03");
                        operationData.setValue("1","DENOMINATOR");
                        operationData.setValue("1","NOMINATOR");
                        operationData.setValue("20070101","VALID_FROM");
                        operationData.setValue("20991231","VALID_TO_DATE");
                        operationData.setValue("ST","OPERATION_MEASURE_UNIT");
                   // Testflag
                   JCO.Structure test = savePlan.getImportParameterList().getStructure("TESTRUN");
                   test.setValue(" ","BAPIFLAG");
                   //BAPI ausführen (incl. Commit)
                   mConnection.execute(savePlan);
                   JCO.Function commit = null;
                   try {commit = this.createFunction("BAPI_TRANSACTION_COMMIT"); }
                   catch (Exception ex) { ex.printStackTrace();System.exit(1); }
                   JCO.ParameterList input = commit.getImportParameterList();
                   input.setValue("X","WAIT");
                   mConnection.execute(commit);
                   //Messages vom SAP-System holen
                   JCO.Table jcoReturn = savePlan.getTableParameterList().getTable("RETURN");
                   for (int k = 0; k < jcoReturn.getNumRows(); k++)
                        jcoReturn.setRow(i);
    //                    System.out.println(jcoReturn.getField("MESSAGE").getValue());
                        System.out.println(jcoReturn.getField("TYPE").getValue());
                        System.out.println(jcoReturn.getField("NUMBER").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V1").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V2").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V3").getValue());
                        System.out.println(jcoReturn.getField("MESSAGE_V4").getValue());
                   JCO.Structure output = commit.getExportParameterList().getStructure("RETURN");;
                   System.out.println(output.getString("MESSAGE"));
                   System.out.println(output.getString("TYPE"));
                   System.out.println(output.getString("NUMBER"));
                   System.out.println(output.getString("MESSAGE_V1"));
              closeConnectionToSAP();
              System.exit(1);

    Hi,
    perhaps you could use
    BAPI_HRMASTER_SAVE_REPL_MULT
    Regards
    Bernd

  • How to create shipment cost document through BAPI?

    Hi SAP Guru,
    My requirement is to create shipment cost document through BAPI.
    Is there any standard BAPI to create Shipment cost documents? If any buddy no please help me out.I am in client place i have find out the solution..
    Thanks & Regards,
    Pankaj Sinha

    Hi Pankaj,
    See the following link for more help.
    IDOC/BAPI for changing Shipment cost number/document
    Regards

  • Creating Move-Out Document by Program

    Hi,
    For an ISU Contract, I need to create Move-Out document programatically. Which BAPI or Function Module should I use regarding this purpose.
    I used BAPI_ISUMOVEOUT_CREATEFROMDATA to create Move-Out doc, but its generating it, but not updating them Contract. Even if I try to see the generated document in EC57, it gives an error that no document exists.
    Regards
    Pulokesh
    Edited by: Pulokesh Karmakar on Jul 12, 2010 4:29 PM

    Hi,
    you used a custom Web ADi integrator (XXFA_TEST).
    I think you have a grants problem, therefore with assigment of the system administrator, no problems exists.
    Have a look in the Web ADI Implementation Guide
    e.g. for R12.0.4 http://download.oracle.com/docs/cd/B40089_09/current/acrobat/120bneig.pdf
    Dirk

  • Create Webservice in Ver 4.70

    How to create a webservice for RFC function moldule in Version 4.70.
    I know to create this version ECC6. using se37> utilities> more utilites --> create webservice for fun module.
    But this i could not find in Ver.4.70
    a®s.
    Edited by: a®s on Jul 17, 2008 2:11 PM

    Hello a@s,
                        Check this thread :
    How to create web service in R/3 - 4.7 / WAS 6.20
    Creating a BAPI as a web service using Java
    Thanks,
    Greetson

  • How to create webservice in Webdynpro java

    Hi Experts,
          I need to develop one application in Visual Composer.Since VC doesn't support coding so i need to create Webservice in webdynpro java and use that webservice in VC.Can any one of you please suggest how to create Webservice in Webdynpro Java.
    Regards,
    Prasanna.

    Hi prasanna,
    Refer this links.
    /people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro
    BAPI Exposed as Web Service
    Connect R/3 from Java web application
    Web Dynpro integration with R/3
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/frameset.htm
    Regards,
    karthik.

  • Creating webservice in XI

    Hi Experts,
       I have created webservice using Define webservice from option Tools in Integration Directory,  this kind of webservice is used as sender( webservice). is  there any other way to create Webservice( to use it as Receiver Webservice) in XI. Plz help me out.
    Thanks
    Siva Grandhi.

    Hi
    in XI u can create the web servie using that option only.
    after creating the wsdl file using the ID u have to import as an external definition in XI.
    u can also create the web service using the RFC in the R/3 system.
    To create the web service using the RFC u have to create the function module using the transaction SE37, and that function should be RFC enabled.
    to make the function RFC enable go to the properties --->selce the ardio button RFC Enabled.
    now go to the  utilities->More utilities->create web service-->from function module
    a wizard will be open to create the web service.
    provide the mandatory field parametewrs like web service name , function module name and complete the wizard.
    the web service will be craeted using that wizard.
    now to see the web service go to the transaction wsadmin
    in wsadmin go to the
    SOAP Application for RFC-Compliant FMs
    and the web service that u have craeted is now present in the list.
    Thanks
    Rinku

  • How to create webservice from function module

    Hello,
    I'm trying to create webservice from function module from. I choose Utilities/More Utilities/Create Webservice/..From function Module. What data should I enter in section "Enter Package/Request" ?
    When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign namespaces"
    Is there any doc about this procedure (web service creation) with description of all sections ?
    thanks for any reply,
    Lukasz Ferenc

    Hi,
    Which SAP product of wich release of which SP are you using ?
    The procedure is documented in help.sap.com and in blogs and SDN forum messages.
    It means that the use of the SEARCH button should give plenty of answers...
    >When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
    As usual, begin your choosen name with an "Z".
    Regards,
    Olivier

  • Sale Order Item Quantity Not Populating When Create A Sale Order Using BAPI

    I am having a problem when creating a sale order using BAPI
    BAPI_SALESORDER_CREATEFROMDAT2
    Problem is that sale order item quantity field is not populating
    code is as follows
    ORDER_ITEMS_IN-ITM_NUMBER = '0010'.
    ORDER_ITEMS_IN-MATERIAL = '000000000010000262'.
    ORDER_ITEMS_IN-TARGET_QU = 'LB'.
    ORDER_ITEMS_IN-TARGET_QTY = 1.

    Hi,
    Try populating ORDER_SCHEDULES_IN table in the bapi field REQ_QTY.
    Regds,
    Rudra

  • Can position be created with out creating Job..

    Hi Experts,
    A simple question but quite complicated.
    Can position be created with out creating the job. ( yes it will give the warning and create).
    Here my actual question comes, what is the need of creating the Job. when we can create position without job in general Scenario.
    Is it compulsory to create job whenever we create position.
    Your replies are highly appreciated.
    Thanks in advance.
    Regards,
    Dollly

    Hi Dolly,
    I definitely aggree with what guru Sikindar mentions.
    One more point:
    SAP advises to create separate positions for each of the employees in your organizational structure.
    For example, there may be a hundred "Engineer" positions in your company (with codes: 50000001, 50000002, ... 50000100).
    At this point, when you're asked to take a report of all of the "Engineer"s in your company, then you need to enter all these position codes into the selection screen : Nearly impossible scenario!
    However, if you had linked all of these positions to a single job named "Engineer" and numbered "50000000", then you would be able to find all the positions linked to this job and all the employees holding these positions by entering a single object ID and evaluation path in the selection screen of a particular report.
    Regards,
    Dilek

  • Error in Creating Webservice in JDeveloper 10.1.3 EA

    hi,
    I'm trying to implement a java webservice using JDev 10.1.3 EA. I just create one simple class with one method returning a string. here is the class code:
    public class ServiceTest {
    public ServiceTest() {
    public String getMessage() {
    return "hello wooorld!";
    after that, i do right-click on it and select "Create J2EE Webservice", and I choose J2EE 1.4 (JAX-RPC), and let JDev do its job creating several classes. I'm trying to run its WSDL file and nothing happens except string message "Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview initialized" appears.
    After that, i'm creating web service proxy by right-click on WSDL file and select "Generate Webservice Proxy" and let JDev creates several class. But when I invoke webservice by calling method
    myPort.getMessage();
    in the MyWebService1SoapHttpPortClient.java and run it, the following error occurs:
    java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type: text/html
         at mypackage.proxy.runtime.MyWebService1SoapHttp_Stub.getMessage(MyWebService1SoapHttp_Stub.java:92)
    Is there any mistake in my code? I've also created Webservice Proxy for GoogleAPI Webservice using JDev 10.1.3 EA and it runs well. thanks a lot for any suggestion.
    regrads,
    fox

    yes, i found an URL and I try to access this via browser, and the following message appears:
    Error instantiating web-application
    Error compiling :C:\My Documents\Java\Webservice\Service3\public_html: Syntax error in source or compilation failed in: E:\master\Oracle JDeveloper 10.1.3 Early Access\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\current-workspace-app\Webservice-Service3-webapp\galih\service\runtime\MyWebService1SoapHttp_Tie.java E:\master\Oracle JDeveloper 10.1.3 Early Access\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\current-workspace-app\Webservice-Service3-webapp\galih\service\runtime\GalihServiceService_SerializerRegistry.java:36: error #300: MyWebService1_getMessage_ResponseStruct__LiteralSerializer not found in class galih.service.runtime.GalihServiceService_SerializerRegistry
    CombinedSerializer serializer = new galih.service.runtime.MyWebService1_getMessage_ResponseStruct__LiteralSerializer(type, DONT_ENCODE_TYPE);
    ^
    1 error

Maybe you are looking for

  • Multiple devices, chats privacy?

    I log onto multiple devices using the same skype name and not all my chats and calls seem to show up when i'm on the other device. It doen't always take me back as far as it says it will. Why is that? Is it something in my privacy settings? 

  • How many apple tv devices can stream personal videos from a single iTunes library

    I'm doing some initial investigation on the matter and I've not been able to get a definitive answer to this question... Is there a limit to the number of Apple TVs that can stream videos from the same iTunes library, and if so, what is the limit? I'

  • Hierarchy Reporting - Suppress levels

    Hi I am using a Hiearchy to provide Grouping and Order. However, for certain Queries, I need to report at the lowest level, in Hierarchy Order, but WITHOUT displaying the levels above the lowest level. Any tips on how to do this, preferably within th

  • Missing Mail Plug-ins?

    I sent an email containing a couple of jpg's. In the conversation view, my sent email has a blank space for each jpg's with the words "Missing Plug-in". Are there really some missing plug-ins or does this mean something else? Thanks HNick

  • Hyperion System 9 Enterprise Analytics

    Hi all, Can anyone tell me what is Enterprise Analytics in EPM 11 context. How do we use it ? I have seen the below link. Is this something similar/same to/as OBIEE ?? http://www.oracle.com/technetwork/middleware/bi-foundation/hs9-bi-analytics-93-132