SAP Enterprise Connector and service....

Hi everyone,
After creating, via the plugin "SAP Enterprise Connector", a proxy pointing on a BAPI, how can I create a service for this (and a web service).
I know that you can create a web service directly using ABAP transaction se37. But our SAP version is quite old and we haven't this option.
Thanks for the help.
Message was edited by: David Fryda

HI Jerin,
Can be please little bit elaborate ur scenario.Because Enterprise Connector is deprecated in NWCE 7.1 onwards...

Similar Messages

  • SAP Enterprise Connector and JCo

    Hello All,
          I have a question.
    I wánt to know regarding -->
    SAP Connector  &
    JCo.
    Are both of them same ?
    Regards,
    Deepu.K

    hi,
    <b>They are different:</b>
    SAP Connector : A development tool, that helps classes and RFC function module method calls in Java application.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm
    JCO : They are often called as JCO RFC provider service. They offer two types of connection a)TCP/IP b)Through shared memory
    http://help.sap.com/saphelp_nw2004s/helpdata/en/83/85343e8c7f6329e10000000a114084/frameset.htm
    (soon my blog on SAP Enterprise connector will be published)
    hope it helps'
    regards

  • SAP Enterprise Connector: omitting parameters like ParameterList.setActive

    Hello,
    I use the SAP Enterprise Connector and i've got a question:
    how can i avoid that the unnecessary optional parameters are requestet during the call, as i could do it with pure JCO.ParameterList.setActive(false).
    Thanks,
    Gena

    Hello,
    I use the SAP Enterprise Connector and i've got a question:
    how can i avoid that the unnecessary optional parameters are requestet during the call, as i could do it with pure JCO.ParameterList.setActive(false).
    Thanks,
    Gena

  • Creating a WEB Service for SAP enterprise connector

    Hi,
    I am using the SAP enterprise connector plugin for Netweaver 04.
    It generated me all the classes that I need for the BAPI.
    It also generated me a Proxy class.
    I want to create a service.
    This is what I've done :
    1) create a portal service.
    2) create a methode in the service :
    public Bapi_Companycode_Getdetail_Output execute_BAPI_COMPANYCODE_GETDETAIL(
    Bapi_Companycode_Getdetail_Input arg1)
    try {
    return new MyProxy_PortType().bapi_Companycode_Getdetail (arg1);
    } catch (Exception e) {
    return null;
    3) after I created a web service from the portal service.
    Is it the right way ?
    Thanks a lot.

    Hi Marcin and everyone,
    Thanks for the precious explanations.
    I created a client and I have an exception.
    1) I made a portal service from wsdl - client side.
    2) I created a DynPage.
    3) Here is the code :
    IMyBAPI4Service client = (IMyBAPI4Service) PortalRuntime.getRuntimeResources().getService(
    IMyBAPI4Service.KEY);
    IMyBAPI4Service securedClient = (IMyBAPI4Service) client.getSecurisedServiceConnection(                 request.getUser());
    //this is null.
    if (securedClient.getURLEndPoint().getURL() == null) {      
    securedClient.setURLEndPoint(new URLEndpoint("http://<server>:<port>/irj/servlet/prt/soap/com.sap.portal.prt.soap.MyBAPI4Service?style=doc_lit"));
    Bapi_Companycode_Getdetail_Input importParams =     new Bapi_Companycode_Getdetail_Input();
    importParams.setCompanycodeid("0500");
    Bapi_Companycode_Getdetail_Output exportParams = null;
    securedClient.execute_BAPI_COMPANYCODE_GETDETAIL(importParams);                         
    Do I have to use a secured client ? What is it ?
    The exception is :
    Problem at execution: SOAP Fault Error (java.lang.NoClassDefFoundError) : java.lang.NoClassDefFoundError
    Thanks Marcin....
    Message was edited by: David Fryda

  • Runtime error while using SAP Enterprise Connector in a J2EE Web Servlet

    Hello,
    I'm facing problems while trying to do a RFC call out of a Servlet.
    I'm using Development Components (DCs) and my project setup is as follows:
    Firstly I've created a DC of type J2EE/Web Module. This DC implements an absolutly simple servlet which has to do the RFC-Call.
    The relevant code is:
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       JCO.Client jcoclient = JCO.createClient("010", "DV*****", "***", "DE", "ovd***", "01");
       jcoclient.connect();
       Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
       input.setAirline("LH");
       SAPProxies_PortType myproxy = new SAPProxies_PortType();
       myproxy.messageSpecifier.setJcoClient(jcoclient);
       try {
          Bapi_Flight_Getlist_Output output = myproxy.bapi_Flight_Getlist(input);
          BapisfldatType_List list = output.get_as_listFlight_List();
          int listsize = list.size();
          for (int i = 0; i < listsize; i++) {
             BapisfldatType elem = list.getBapisfldatType(i);
             response.getWriter().print("Date: " + elem.getArrdate() + '\t' + "Arrive: " + elem.getArrtime());
       } catch (Exception e) {
          response.getWriter().print(e.toString());
       jcoclient.disconnect();
    The proxy for the RFC Module "BAPI_FLIGHT_GETLIST" - in this case the classes around "SAPProxies_PortType" were generated by NWDS ("SAP Enterprise Connector" Wizard).
    I had to manually add following DCs as "Used DCs" to get my DC built:
    com.sap.aii.proxy.framework (default)
    com.sap.aii.util.misc (default)
    com.sap.mw.jco (default)
    So far, so good...
    As a J2EE/Web module DC can't be deployed I've created a second DC of type J2EE/Enterprise Application and referenced the first DC. This DC is also built fine and can be deployed.
    But... When I call my servlet I get following Error Message on the web browser:
    The request cannot be processed.
      Details:      
      com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Cannot load the requested servlet [LocalDevelopmentservletxxx.com/servlet/TestServlet].
    Exception id: [000C295D60FB006F0000003600000EA8000461A05860B4BA]
    I also had a look in the trace files:
    Vollstu00E4ndiger Nachrichtentext
    application [LocalDevelopmentservletxxx.com] Processing HTTP request to servlet [TestServlet] finished with error. The error is: com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Cannot load the requested servlet [LocalDevelopmentservletxxx.com/servlet/TestServlet].
    at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:330)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:354)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.NoClassDefFoundError: com/sap/aii/proxy/framework/core/AbstractType
    Loader Info -
    ClassLoader name: [xxx.com/testear]
    Parent loader name: [Frame ClassLoader]
    References:
       common:service:http;service:servlet_jsp
       service:ejb
       common:service:iiop;service:naming;service:p4;service:ts
       service:jmsconnector
       library:jsse
       library:servlet
       common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
       library:ejb20
       library:j2eeca
       library:jms
       library:opensql
       common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore
       interface:resourcecontext_api
       interface:webservices
       interface:cross
       interface:ejbserialization
    Resources:
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\ibm.com\testear\servlet_jsp\LocalDevelopmentservletxxx.com\work
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\ibm.com\testear\servlet_jsp\LocalDevelopmentservletxxx.com\root\WEB-INF\classes
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\ibm.com\testear\src.zip
    Loading model: {parent,references,local}
    The error occurred while trying to load "com.xxx.test.sap.connector.Bapi_Flight_Getlist_Output".
    at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:401)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
    at java.lang.Class.getConstructor0(Class.java:1930)
    at java.lang.Class.newInstance0(Class.java:278)
    at java.lang.Class.newInstance(Class.java:261)
    at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.getServlet(WebComponents.java:319)
    ... 14 more
    I think it has something to do with the used DCs... but I don't know why the classes are not found after deployment. I also tried
    to package the relevant jar-files from the used DCs into the EAR-File - but the I faced problems with the JCo
    Thank you for any help.
    Osman

    Hi,
    One thing that can be helpful is to add the references of the JAR files that you are adding as Used DC in the EAR.
    This can be done by adding Library type References in the application-j2ee-engine.xml Deployment descriptor in the EAR project.
    Following link will be helpful: http://help.sap.com/saphelp_nw70/helpdata/EN/83/82814282cfc153e10000000a1550b0/content.htm
    Regards,
    Alka.

  • EJB Modul: SAP Enterprise Connector, configuring build path

    Hello,
    first of all I'm using SAP NW CE.
    I created an 2 Development Components, an EJB Module and a Enterprise Application(EAR). In the EJB Module I use the SAP Enterprise Connector to generate Java Proxy Classes to do RFC calls.
    In the EAR-DC I add in Properties-->J2EE Module Dependencies the needed jar-files. And in the EJB-DC I reference this.
    When I don't work with DCs and I create a "normal" EJB and EAR project that is the way it works.
    But with DCs I have a problem when I want to build the DC. I have this error:
    package com.sap.aii.proxy.framework.core does not exist
    So the build-process don't realize the J2EE Module Dependencies. How can I solve this problem?
    Regards,
    Armin

    Did you mean the Development Infrastructure Perspective? If yes I don't find DC -> DC Metadata -> DC Definitino -> Right-click Used DCs -> Add Used DC... if I browse through my DC.
    Apart from that I don't want to reference DCs as I write above. I want to reference only jar-files. Because the DCs com.sap.aii.proxy.framework, com.sap.aii.util..misc and com.sap.mw.jco are deprecated. And if I reference DCs I have to use this DCs to use the proxy classes made by the SAP Enterprise Connector. So I want to reference the jar-files where the needed source isn't deprecated.
    By the way I use SAP NW CE.

  • Need help with the SAP Enterprise connector wizard at the NWDS

    Hello,
    I am trying to create new proxy using the SAP Enterprise connector at the Netweaver Developer Studio.
    The problem is that at the 2nd stage I am unable to connect to the server. Can someone please explain me in details:
    1. Which tab should I chose there: Load balancing server or single server?
    2. Which parameters should I enter there and from where can I take them (uch as System number...)
    I tried to enter my server's parameters but I couldn't connect.

    Hi Roy,
         It depends on what type of R/3 server you are connecting. Usually development & Quality assurance systems for R/3 are not load balanced. You can find it out from your Basis people that server you are connecting is load balanced.
    If it is not load balanced  then the select the single server and enter the following parameters.
    1. Host Name: Server Name (or ip address)
    2. System Number: (00)
    If it is load balanced then fill out all the information on load balancing tab.
    You only need to fill one of the tabs. thank you.

  • ABAP Sneak Preview SP11 - NWDS:SAP Enterprise Connector error

    Hello
    I have installed the ABAP 6.4 Sneak Preview SP11 (It works fine with the SAP GUI). I am trying to call Bapis from Java with the help of the proxies generated by "SAP Enterprise Connector". But the problem is that the "SAP Connection Wizard" does not progress any further after providing the R/3 system details(like hostname, sys number, client) and username/pasword. When I click the "Next Button" after providing the correct connection parameters it just stays there.
    -->Would the license be a problem. I did not apply for the 90 day license yet, I wanted to do that once everything is working fine.
    --> Should I do any additional configuration on the R/3 side.
    --> Should I add any extra setting to the environment variable path.
    Your help will be greatly apprecaited!!!
    Thanks
    Yasu

    Hello some more information....
    I have installed the ABAP 6.4 Sneak Preview SP11 (It works fine with the SAP GUI). I am trying to call Bapis from Java with the help of the proxies generated by "SAP Enterprise Connector". But the problem is that the "SAP Connection Wizard" does not progress any further after providing the R/3 system details(like hostname, sys number, client) and username/pasword. When I click the "Next Button" after providing the correct connection parameters it just stays there.
    -->Would the license be a problem. I did not apply for the 90 day license yet, I wanted to do that once everything is working fine.
    --> Should I do any additional configuration on the R/3 side.
    --> Should I add any extra setting to the environment variable path.
    Your help will be greatly apprecaited!!!
    Thanks
    Yasu

  • SAP Enterprise Connector Error - NWDS

    Hello I have the following issue, I found the same problem in the eariler forums(no solution though) and pasting it here...
    the content is copied from /thread/9971 [original link is broken]
    Hi
    I've installed the sneak edition of the NDS which is a part of the WAS 6.40 sneak preview. Everything seams to work just fine except for the proxy generation in a portal application using the SAP Enterprise Connector tool.(choose new>other>SAP connectivity-->SAP Enterprise Connector) I get to the point where I have to enter connection information's for a single server like Host name, system nr, client, etc...However when everything i filled out and I push next nothing happens. The process line in the bottom shortly fills but the same screen is shown.
    Have anyone run into the same problem?
    Best Regards
    Ole Mose Nielsen
    the problem I have is exactly the same. But say if I change the system number to '04' than I get an error - "connect to sap gateway failed".
    Thanks,
    Yasu

    Hello some more information....
    I have installed the ABAP 6.4 Sneak Preview SP11 (It works fine with the SAP GUI). I am trying to call Bapis from Java with the help of the proxies generated by "SAP Enterprise Connector". But the problem is that the "SAP Connection Wizard" does not progress any further after providing the R/3 system details(like hostname, sys number, client) and username/pasword. When I click the "Next Button" after providing the correct connection parameters it just stays there.
    -->Would the license be a problem. I did not apply for the 90 day license yet, I wanted to do that once everything is working fine.
    --> Should I do any additional configuration on the R/3 side.
    --> Should I add any extra setting to the environment variable path.
    Your help will be greatly apprecaited!!!
    Thanks
    Yasu

  • SAP Enterprise Portals and Webdynpro application development environment

    Hi,
    Is there a way to set up a Development environment for SAP Enterprise Portals and Webdynpro on a laptop/desktop without SAP-GUI.
    Any help/guidance will be truly appreciated.
    Thanks,
    Prasanna

    hi,
    can you look at this
    [http://www.sap-hefte.de/download/dateien/1000/075_leseprobe.pdf]
    [http://www.octavia.de/fileadmin/octavia_files/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Tutorial_1.pdf]
    [http://www.sercononline.com/suntechnovate07/images/images/13%20-%20Rajiv%20Jain%20-%20SAP.pdf]
    Regards,
    Muralidhar

  • SAP Enterprise Connector

    Hi Experts
    I tried generating Proxy classes for first time for FlightAppList using SAP Enterprise connector by selecting Single Server option, I have installed SAP Management Console on the system having host name 'sap-server', the details i provided was as follows:
    HostName:'sap-server'
    System Number: 00
    SAP Router:
    User Account
    Client : 001
    LogonName: pradeep
    Password: password
    Language:ENG
    but i get the error as
    Connect to SAP failed
    Error: Partner not reached
    Do i need to do any settings on SAP Netweaver console.
    Kindly let me know.

    Configuring webasabap needs SAP security library which can be downloaded at sap market place, but it needs a license username password which i dont have.
    I have only downloaded the trial version "SAPNW2004sJavaSP9_Trial"  is there a way i can connect my java program to SAP database without having any license?

  • TEP15 SAP Enterprise Portal and KMC Development Book Required.

    Hi everyone....
    can someone please let me know where i can download book "<b>TEP15</b> - SAP Enterprise Portal and KMC Development" from?
    Its urgent please.
    Thanks in advance.
    Regards,
    Tejas

    See https://forums.sdn.sap.com/thread.jspa?threadID=398494

  • Problem: Accessing BAPI using SAP System Connector and setting SELOPT_TAB

    Hi,
    I am trying to use the SAP System Connector (based on JCA) to connect to a BAPI and do a search for a customer with EP SP15. (Using BAPI_CUSTOMER_FIND).
    I established the connection and can set simple input parameters, however I didn't find a way for setting the SELOPT_TAB in the IInteraction instance.
    This is what the table should contain:
    Table SELOPT_TAB
    Field Content
    COMP_CODE SPACE
    TABNAME KNA1
    FIELDNAME NAME1
    FIELDVALUE Ma*
    Here the import parameter:
    IMPORT-Parameter
    MAX_CNT 100
    PL_HOLD X
    And here the code for the IInteraction without the SELOPT_TAB that I want to include.
    // Get the Interaction interface for executing the command
    IInteraction ix = connection.createInteractionEx();
    IInteractionSpec ixspec = ix.getInteractionSpec();
    String functionName = "BAPI_CUSTOMER_FIND";
    ixspec.setPropertyValue("Name", functionName);
    String function_out = "RESULT_TAB";
    RecordFactory rf = ix.getRecordFactory();
    MappedRecord input = rf.createMappedRecord("input");
    // put function input parameters
    input.put("MAX_CNT", "100");
    input.put("PL_HOLD", "X");
    MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
    Does anybody know how to set the SELOPT_TABLE as input parameter?
    Any help would be appreciated.
    Regards, Andy

    Maybe your application isn´t run in x84
    #Go to properties of your project ->Build -> changed platform target of "Any CPU" to "x86"
    #Copy these libraries from our 32-bit environment :
    *SAP.Connector.dll
    *SAP.Conector.Rfc.dll
    *librfc32.dll
    *msvcp71.dll
    *msvcr71.dll
    In 64 bits environment:
    1. librfc32.dll to C:WINDOWSsystem
    2. msvcp71.dll to C:WINDOWSsystem32
    3. msvcp71.dll and  msvcr71.dll to C:WINDOWSSysWOW64
    4. SAP.Connector.dll and SAP.Conector.Rfc.dll to C:WINDOWSassembly (DRAG)

  • SAP Management Console and Services

    Good morning everyone,
    I am trying to understand more about the services used by the SAP System, the order in which they are / need to be started.
    First I have a precise question regarding what appears to be, to me, as a discrepancy between the SAP Management Console and The Services Console.
    At the moment I have a Server with the SAP System stopped. It shows the correct information in the SAP Management Console but when I look at the Services Console the following services show as started:
    SAPOsCol, SAPPRD_00 & SAPPRD_01
    SAPCCMSR.01 & SAPCCMSR.11 are set to manual
    Has anyone got an explanation on why different info are displayed in both console?
    Also, is there a way of checking if the SAP Services are running without going through any interface (Management Console)?
    Finally,
    In the Services Console the SAPOsCol, SAPPRD_00 & SAPPRD_01 services are set to automatic but when we restart the Server the services do not restart automatically even so they show as starter. Can anyone give me direction on what I need to check or change for these to start properly?
    Thank you
    Corinne

    Corinne,
    The Services SAPOsCol, SAPPRD_00 & SAPPRD_01 started doesnot mean that SAP is up. So even if you stop SAP through MMC it will show these services as started. These Services denote whether the Instance PRD_00 and PRD_01 are enabled in MMC. So if you stop these services, you wont be able to start SAP through MMC.
    SAPCCMSR.01 & SAPCCMSR.11 are set to manual --  These are optional CCMS Agents , so they are set to manual. If you need them you can change them to Automatic
    SAPOsCol, SAPPRD_00 & SAPPRD_01 are set to automatic. This should mean that they get strated with the start of OS during a reboot. If they are not getting started there is some issue.
    Hope this helps!
    Reward points if useful!!!
    Cheers!
    Bidwan

  • SAP Business Connector MIME Services to SAP XI Transition

    Today we are using the built in MIME services in Business Connector (pub.mime) to format a MIME message, and are then using https to post it to an external business partner by placing the data into the "mimeStream".
    Is there a way to perform this same functionality in SAP XI?
    Thanks
    Peter

    Hello Prateek,
    Thank you very much for your answer. The AdapterGuide was really helpfull.
    Now the routing rule is associated to the correct Service (that was a the problem). So the rule started to process the XML files from the folder (the XML files disappeared immediately after I corrected the rule).
    But now my problem is that on the SAP side there is no inbound IDOCs so it seems the trasmission may failed.
    Moreover under "Routing"-->"Transactions" I don't see these entries with the the current date.
    Our routing rule is simple: "wildcard" "wildcard" "wildcard" "ALE (R/3 IDOC)"--><OUR SAP SYSTEM>
    The SAP connection is working as I can test under "SAP..." menu.
    Is there any other way to monitor what had happened with these XML files? I'm sure the BC processed as the files are gone, but there is no IDOC in the destination SAP...
    Thanks a lot!

Maybe you are looking for

  • Cannot send email using SMTP

    Hi, For the last three days I have been unable to send any email via outlook using the SMTP server (mail.btinternet.com). I get repeated requests to enter my network password, but it is not accepted. The password is correct (I have tried retyping it

  • Cast exception error in

    I extended a OAF controller in HR: AssignmentCO.  For the processRequest method in the extended controller, I simply did a super.processRequest(pageContext, webBean);  The processFormRequest method has the additional business logic. When I set the pe

  • Packing material consumsion

    Hi , I am doing packing at the time of delivery. When i do PGI the packing material stock is not reduce. if the packing material is not present it also not giving any error.When I checking the Handling Unit " status " tab it is showing the field " HU

  • I want to play my songs in a specific order

    I just bought a Nano, and put on it a playlist of songs to play in a specific order. But when I play the playlist, the songs are shuffled. Is there a way to play them in the order I want them in?

  • Problem login denied as sys as sydba

    Hi, I was able to login as sys/passwd@dbname. But when I tried to connect sys/passwd@dbname as sysdba, I got this error : ORA-01017: invalid username/password; logon denied I was doing this using SQL*Plus and on the server where the database resides.