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

Similar Messages

  • 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...

  • 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

  • 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.

  • 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

  • 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)

  • Standard BAPI for creating groups in SAP using JAVA and JCO

    Hi,
    I have a requirement for creating user groups in SAP from java using JCO but i am unable to find the standard BAPI name to creating user groups.
    Can anyone let me know whats the bapi name for creating user groups in SAP?
    Thanks in advance,
    Ani

    Hi,
    I think you can search for it or you can create a thread at ABAP section.

  • SAP Business Connector and EDI

    Hi,
    I need to implement a new EDI version to use within Business Connector. However, I cannot remember where to extract the EDI template files from. Has anybody done this before and can inform me where to extract the EDI template files from.
    Thanks
    Martin

    Hi,
        DATA: L_DIRNAME LIKE EPSF-EPSDIRNAM,
            L_FILEMASK LIKE EPSF-EPSFILNAM,
    CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
        EXPORTING
          dir_name                     = l_dirname
          file_mask                    = l_filemask
    IMPORTING
      DIR_NAME                     =
      FILE_COUNTER                 =
      ERROR_COUNTER                =
        TABLES
          dir_list                     = pi_filelist
    EXCEPTIONS
       invalid_eps_subdir           = 1
       sapgparam_failed             = 2
       build_directory_failed       = 3
       no_authorization             = 4
       read_directory_failed        = 5
       too_many_read_errors         = 6
       empty_directory_list         = 7
       OTHERS                       = 8
    <b>Reward points</b>
    Regards

Maybe you are looking for

  • Data Provider Internal error(-3000): please help!

    Hi, I've a Web Application using Oracle Data Provider 9.2.0.2 to communicate with mu oracle DB. I'm using the ExecuteNonQuery function to run a SQL statement (it's a select connect by), but after some time, I get the following error: Data Provider In

  • Cannot access remote FoxPro dbf file using jdbc-odbc and system DSN

    Hi all, I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a

  • Picking list determination

    hi, we're using WM which needs to print picking list for picking(TO), i would like to know how the picking list is determined, i mean the logic setup for picking list, where is the path for config in the system. i knew that if we are using by Tcode t

  • How to see the connected computers in to my network?

    Hello I am just curios How can I see the connected computers to my network? I also want to remove them from my network

  • Setting for GL assignment with WBS

    Hi Experts, When we create Project PO with acct assignment P, system ask for GL. suppose i have entered material consumption GL so in that case system should ask for WBS . without entering WBS system should not allow to create PO. Please suggest wher