Problem creating JCo rfcs

Hi,
I want to create JCo rfcs in systems.
But confused between these functionalities :
1> JCo rfc prvider : This is present in Visual Admin and is used to register J2EE engine as rfc destination.
2> Maintain JCo connection : This is present in content admin in WebDynpro tool. Here we can provide details.
Whats the difference between two and which is to be used when?
Thanks

Hi,
JCo RFC Provider Service:
The RFC is an SAP interface protocol, which simplifies the programming of communication processes between systems. The RFCs enable you to call and execute predefined functions in a remote system, or in the same system. The RFCs manage the communication process, parameter transfer, and error handling.
In the J2EE Engine the RFC functions are implemented by the JCo RFC Provider service, which is used for processing ABAP to Java requests. A feature is provided for receiving calls from the SAP systems u2013 this is done by registering the J2EE Engine as a RFC destination.
The JCo RFC Provider Service processes calls from the SAP systems. It dispatches the calls to a stateless session bean, which is registered in the J2EE Engine naming system. By naming convention the JNDI name used is identical to the name of the SAP function module.
Technically, the service is based on the JCo (SAP Java Connector).
Please refer the sap help link:
http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/content.htm
What is JCo connection and use please refer the following URL:
http://wiki.sdn.sap.com/wiki/display/Java/JCO+Connection

Similar Messages

  • Problems creating JCO connector

    We are having some problems when attempting to follow the steps indicated in the Post-Installation Slide Deck of RAR version 5.3. In step 4 (Create JCO Connectors) we are not able to create a new JCO connector associated with the given models in the WebDynpro Content Administrator. The "create" button displayed next to each model is disabled and the status indicated is "Status Unknown" (gray color).
    When we test the SLD connection it is pointing to the default URL,  while a different URL was specified during installation given an SLD already existed previous to SAP GRC installation.
    Any ideas of where we need to be looking in order to fix this?

    Hi Pablo,
    This happens because your SLD bridge is not configured correctly ,
    Please follow the steps as under :
    Login to  Visual Administrator.
    Expand Navigation menu under J2EE Server Name ,
    Expand Services List
    Click On SLD Data Suppllier
    Click On http settings tab
    Enter Host name and port number , user name /password for your system connection.
    Click Save.
    Click on CIM Client Generation settings tabs
    Enter host name port , user account details you entered in http settings tab .
    Click Save.
    Click Supplier ( data transfer)icon on top of pane to transfer data information you have entered in sld supplier.
    A pop up window appears  " trigger SLD data transfer" )
    Click = yes.
    A pop-up with appear indicating transfer successful.
    If this window does not appear , then SLD needs to be configured properly,
    launch http://<hostname>:<portnumber>/sld
    Click on Administration > Initial setup
    Fill in values for :
    Object server name :Name of computer <SPACE> 1
    E.g AG500900A 1
    Gate way host : Name of computer as above.
    gateway port : portnumber as used in URL .
    Import software catalog check box = OK
    Import SLD objects
    (close to 95791 objects need to get imported , wait for sometime till they are imported )
    After importing is done , refresh once.
    This should resolve, however if you still face it then setup technical system at
    http://<hostname>:<portnumber>/sld
    HOME > Techinical systems .
    Click new technical system
    Select webas ABAP
    the details need to be fetched from SAP R/3 system for which JCO is to be created.
    thnks

  • Problems creating JCO Connections

    Hi experts,
    I have a question regarding the JCO Connection creation in Content Administrator.
    My first doubt is if it's necessary to create each JCO Connection for each backend system that I'll run RFC functions?
    If is it true, during Creation I must specify user and password. I have to specify the Backend User and Pass, right?
    Finally, could you explain me why there are several JCO connections created?
    When I create the JCO connection I will be able to invoque Backend RFC functions from, for example, a webdynpro?
    Kind Regards,
    Martin.

    Hi Martin,
    1. Yes, provided you want to use the RFC functionality.
    2. Yes, you would be giving the username and password for the metadata.
    Please refer to [Creating JCo Destinations|http://help.sap.com/saphelp_nw70/helpdata/EN/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm]
    3.Generally, when you install business packages like ESS MSS etc, there are a bunch of JCO which are installed as well, but all you would have to do is edit its properties and point them to the correct location.
    4. Yes, you can.
    Regards,
    Sandeep Tudumu

  • Problems with JCO RFC Provider in a cluster J2EE

    Hello all,
    We've defined a JCO RFC Provider because we need to call an EJB from a SAP R3 program. If I configure it in a J2EE with a unic server all works fine, but when I configure this scenario in a cluster J2EE (a central instance with two servers and a dialoge instance with three servers) it isn't working.
    I've tried different configurations:
    Configure the JCO RFC Provider in all the servers.
    Configure the JCO RFC Provider only in one server, but this configuration is replied to the rest of the servers.
    The previouse configuration, but stopping all the JCO RFC Provider services and starting it in a unic server.
    Configure the JCO RFC Provider only in one server and checking "Local bundle" checkbox.
    But it's not working... v_v
    Has anyone configured a similar scenario? I don't know what is the correct way to configure it...
    Thanks in advance...
    jc!

    Did you create the corresponding RFC connection in ECC transaction sm59 ?
    with the same program ID.
    both pointing on the same application host.
    Regards,
    Chris

  • Problem create jco connection in webdynpro application run time

    Hi There,
    I created webdynpro application using rfc model.
    After deploy the project , i created two jco connection
    for data & meta data this is work o.k (test with no errors). the sld is o.k.
    We are using application server (Single Server) for data
    & message server for meta data (Load Balance).
    During run time there is an error message:
    Error stacktrace:
    com.sap.tc.webdynpro.services.exceptions.WDTypeNotFoundException: type com.ness.crm.customerlasttwo01pckg.model.types.Datab could not be loaded: com.sap.dictionary.runtime.DdException:
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:205)
         at com.sap.tc.webdynpro.progmodel.context.AttributeInfo.init(AttributeInfo.java:471)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAttributes(NodeInfo.java:771)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:756)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:433)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:371)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:400)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:138)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:746)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:761)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:134)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:374)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:593)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sap.dictionary.runtime.DdException:
         at com.sap.dictionary.runtime.ProviderFactory.internalGetProvider(ProviderFactory.java:225)
         at com.sap.dictionary.runtime.ProviderFactory.getProvider(ProviderFactory.java:180)
         at com.sap.dictionary.runtime.DdDictionaryPool.getProvider(DdDictionaryPool.java:78)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:64)
         at com.sap.dictionary.runtime.DdDictionaryPool.getDictionary(DdDictionaryPool.java:39)
         at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:149)
         at com.sap.dictionary.runtime.DdBroker.getSimpleType(DdBroker.java:170)
         at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:234)
         ... 44 more
    <u>Can some one help me with this matter?</u>
    Best regards Nir Shohat.

    Hi Nir,
    We also had same problem but no we won't. Check ur config on SLD again and the try to the test connection from the http://localhost:4444/webdynpro ( WAS 6.4 )server.
    If this connection is OK then deploy some small application n see.
    Is ur's JCo connection working for J2ee application?
    Arnigs

  • Problem creating JCo

    I'm having problems configuring the SLD and creating the JCo.
    I'm using a RFC model from a R3 server that is not on the same network of my WEB AS. I want to configure the SLD using the IP address, but it only accepts the hostname.
    There's a way I can configure the SLD with the IP address??.
    Thank you.

    Hi Joaquin,
    did you solve your problem by yourself and/or was Gregor's answer helpful for you? In the latter case, don't forget to reward some points for Gregor's answer.
    Regards
    Stefan

  • SSO between EP and ECC-- JCo RFC Provider- Error-- JCO_ERROR_SERVER_STARTUP

    Hello Everyone
    I am setting Up SSO between my EP 7.0 and my ECC 6.0 system. During the phase JCO RFC PRovider i am giving the following values:
    The following was done;
    1. start Visual Administrator -> Service : Choose JCo RFC Provider
    2. Created JCo RFC provider:
    Program ID: SAPJ2EE_Port
    Gateway host: EPDEV ( host of my EP System)
    Gateway service: sapgw00
    Server Count 5
    Application Server Host: ERP6 ( Host of my ECC System)
    System Number: 00
    Client: 000
    Language: EN
    User: SAPJSF
    Password: ..
    When i click on SET i am getting the error " ERROR When ADDING TO BUNDLE" Check LOG FOR DETAILS".
    I checked the DEFAULTTRACE.TRC and get the following MEssage :
    Date , Time , Message , Severity , Category , Location , Application , User
    03/01/2011 , 3:33:30:101 , Error changing bundle SAPJ2EE_PORT , Error , /System/Server , com.sap.engine.services.rfcengine.RFCRuntimeInterfaceImpl.addBundle(BundleConfiguration conf) ,  , Administrator
    03/01/2011 , 3:33:30:085 , com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Tue Mar 01 03:33:30 PST 2011.
    This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 1 seconds.
    Could not start server: Connect to SAP gateway failed
    Connect parameters: TPNAME=SAPJ2EE_PORT GWHOST=EPDEV GWSERV=sapgw00
    ERROR       partner 'EPDEV:sapgw00' not reached
    TIME        Tue Mar 01 03:33:30 2011
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -10
    MODULE      nixxi.cpp
    LINE        2823
    DETAIL      NiPConnect2
    SYSTEM CALL connect
    ERRNO       10061
    ERRNO TEXT  WSAECONNREFUSED: Connection refused
    COUNTER     1
    I have configured my SLD as well. Any suggestions. Please Advise.

    Hi Ahmed,
    Please do check the validity of the certificate.
    Please do cross check these steps again.
    1.     Transaction u2013 STRUSTSSO2 (Trust Manager for Logon Ticket)
    2.     Double Click Owner certificate. It gets reflected under the certificate tab.
    3.                  Choose Format Binary
    4.                  Choose File Path.
    5.                  Enter the File Name
    6.                 saved in local drive.
    You can import into portal as x.509 certificate.
    check this thread -
    Certificate no longer has signature (use restriction)
    Renew certificate via SAP MarketPlace, and install from tcode slicense.  If you are working on a trial version, there is a SAP license request application form. Fill the form with the hardware key. you will get the new license via email. Install using slicense. Then try exporting the certificate.
    Thanks,
    Divya
    Edited by: Divya V on Mar 10, 2011 11:25 AM

  • JCO RFC Provider problem

    Hi!
    We are having some problems in 2 PI 7.1 SP7 Development and Project
    systems. Both have the same problem... We cannot see JCO RFC Provider
    connections and we cannot create new JCO RFC connections.
    Our Project system is copy of development and JCO connections are being
    registered on Development causing some problems in proxy connections.
    the problem is that we cannot change the JCO RFC connections on both
    systems.
    If I try to create a new JCO RFC Connection or even a dummy JCO connection it gives the error "The Program ID already exists. Type in an other name."
    These systems are a SAP PI 7.1 upgrade from SAP XI 3.0. In version XI 3.0 the connections were OK.
    In quality Assurance and Production we don't have this problem.
    I've applied the latest AS Java patches but didn't changed the strange behaviour.
    Have any one notice

    In the default trace file we've found something like
    "com.sap.engine.services.jmx.exception.JmxSecurityException: Caller <(>
    <<)>some generated user id> not authorized, required permission missing"activate the UME super user, delete the deleted users, deactivate the UME super user and restart the system.
    For further information you should see note 1261071

  • SLD problem while creating JCO

    Hi all,
               I am creating JCO from WebDynpro Content Administration for a RFC model but when I go to JCO connections it don't allow me to create. The link is disabled and when I "check SLD" it gives error "Connection to System Landscape Directory (SLD) could not opended successfully"
    can any one help me in this?
    Thanks
    Ninad

    Hi,
    You can check and modify the SLD configuration settings of the J2EE Engine using the Visual Administrator. Log on as an administrator user and double click on Server  ->  Services  ->  SLD Data Supplier.
    Switch to tab CIM Client Generation Settings. If the HTTP connection parameters host, port, user and password are not set, then the SLD is not configured to be used by Web Dynpro applications. Configure the parameters with the values of the central SLD system and save the configuration. Select CIMClient Test to test if the configuration data is correct and the connection to SLD could be established.
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/1a1041a0f6f16fe10000000a1550b0/frameset.htm
    Regards
    Ayyapparaj

  • Error while Create an JCo RFC provider in J2EE engine of portal system

    Hi all:
    I got the following error while Create an JCo RFC provider in J2EE engine of portal system:
    Bundle can not be added YEPRI-EPD_EPD,
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=YEPRI-DEV.domain.ext SYSNR=00 GWHOST=YEPRI-DEV.domain.ext GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       hostname 'YEPRI-DEV.domain.ext' unknown
    TIME        Fri May 07 10:18:25 201
    RELEASE     701
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -2
    MODULE      ninti.c
    LINE        361
    DETAIL      NiPGetHostByName2: hostname 'YEPRI-DEV.domain.ext' not found
    SYSTEM CALL gethostbyname_r
    ERRNO       11004
    ERRNO TEXT  WSANO_DATA: Valid name, no data record of requested type
    COUNTER     1
    could you please tell me how solve it ?

    Hi,
    Try the steps mentioned below.
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION
    Regards,
    Koti Reddy

  • Problem in creating an RFC

    hi
    i am creating an RFC in that i need start date and end date as my import parameters
    but now the system is showing a message like
    'Reference parameters are not allowed with RFC'
    then how can i resolve this

    Hi,
    All the parameters should be Pass by value.
    Tick that button in the import parameters tab.
    For RFCs all the parameters should be pass by value.
    Call by value
    You pass the parameter with values. This means that the parameter contents are copied both when the parameter is passed and when it is transferred back to the calling parameter. For structures that contain tables, performance may be reduced considerably. Therefore, you should not do this.
    Regards,
    sasi
    Edited by: sasidhar yalamanchili on Apr 18, 2008 11:18 AM

  • Problem while calling RFC function module in java

    Hi all
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  GWHOST=<system.ab.ydydy.yyyd.com>, GWSERV=sapgw00, ASHOST=<system.ab.ydydy.yyyd.com>, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       hostname '<system.ab.ydydy.yyyd.com>' unknown
    TIME        Mon Jun 06 14:50:25 2005
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -2
    MODULE      ninti.c
    LINE        332
    DETAIL      NiPGetHostByName2: hostname '<system.ab.ydydy.yyyd.com>' not found
    SYSTEM CALL gethostbyname_r
    COUNTER     1
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:2983)
         at MyProject.Bapi2.<init>(Bapi2.java:43)
         at MyProject.Bapi2.main(Bapi2.java:231)
    Pl help me
    pradeep

    Hi
    This is my code....
    Created on Jun 2, 2005
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package MyProject;
    @author pradeep
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    import com.sap.mw.jco.*;
    public class Bapi2 extends Object {
       JCO.Client mConnection;
       JCO.Repository mRepository;
       public Bapi2() {
           try {
              // Change the logon information to your own system/user
              mConnection =
                JCO.createClient("122", // SAP client
                   "<pradeep>", // userid
                   "*****", // password
                   "EN", // language
                   "<abc11.aa.abc23.company.com>", // application server host name
                   "<00>");//system no
              mConnection.connect();
              mRepository = new JCO.Repository("HLL", mConnection);
          catch (Exception ex) {
            ex.printStackTrace();
            System.exit(1);
          JCO.Function function = null;
          JCO.Table codes = null;
            try {
               function = this.createFunction("BAPI_COMPANYCODE_GETLIST");
               if (function == null) {
                 System.out.println("BAPI_COMPANYCODE_GETLIST" +
                                         " not found in SAP.");
                 System.exit(1);
               mConnection.execute(function);
               JCO.Structure returnStructure =
                 function.getExportParameterList().getStructure("RETURN");
               if (! (returnStructure.getString("TYPE").equals("") ||
                        returnStructure.getString("TYPE").equals("S")) ) {
                 System.out.println(returnStructure.getString("MESSAGE"));
                 System.exit(1);
               codes =
                 function.getTableParameterList().getTable("COMPANYCODE_LIST");
               codes.setRow(2);
    codes.deleteRow();
    codes.deleteRow(5);
    codes.appendRow();
    codes.setValue("XXXX", "COMP_CODE");
    codes.setValue("Does not exist", "COMP_NAME");
    codes.appendRows(2);
    codes.setValue("YYYY", "COMP_CODE");
    codes.setValue("Does not exist either", "COMP_NAME");
    codes.nextRow();
    codes.setValue("ZZZZ", "COMP_CODE");
    codes.setValue("Nor does this", "COMP_NAME");
    for (int i = 0; i < codes.getNumRows(); i++) {
    codes.setRow(i);
                 System.out.println(codes.getString("COMP_CODE") + '\t' +
                                         codes.getString("COMP_NAME"));
            catch (Exception ex) {
               ex.printStackTrace();
               System.exit(1);
            try {
               codes.firstRow();
               for (int i = 0; i < codes.getNumRows(); i++, codes.nextRow()) {
                 function = this.createFunction("BAPI_COMPANYCODE_GETDETAIL");
                 if (function == null) {
                    System.out.println("BAPI_COMPANYCODE_GETDETAIL" +
                                            " not found in SAP.");
                    System.exit(1);
                 function.getImportParameterList().
                    setValue(codes.getString("COMP_CODE"), "COMPANYCODEID");
                 mConnection.execute(function);
                 JCO.Structure returnStructure =
                    function.getExportParameterList().getStructure("RETURN");
                 if (! (returnStructure.getString("TYPE").equals("") ||
                          returnStructure.getString("TYPE").equals("S") ||
                          returnStructure.getString("TYPE").equals("W")) ) {
                    System.out.println(returnStructure.getString("MESSAGE"));
                 JCO.Structure detail =
                    function.getExportParameterList().
                    getStructure("COMPANYCODE_DETAIL");
                 System.out.println(detail.getString("COMP_CODE") + '\t' +
                                         detail.getString("COUNTRY") + '\t' +
                                         detail.getString("CITY"));
           catch (Exception ex) {
              ex.printStackTrace();
              System.exit(1);
           mConnection.disconnect();
         public JCO.Function createFunction(String name) throws Exception {
           try {
              IFunctionTemplate ft =
                mRepository.getFunctionTemplate(name.toUpperCase());
              if (ft == null)
                return null;
              return ft.getFunction();
          catch (Exception ex) {
            throw new Exception("Problem retrieving JCO.Function object.");
       public static void main (String args[]) {
          Bapi2 app = new Bapi2();
    This is the error i'm getting...
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  GWHOST=<abc11.aa.abc23.company.com>, GWSERV=sapgw00, ASHOST=<abc11.aa.abc23.company.com>, SYSNR=00
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       hostname '<abc11.aa.abc23.company.com>' unknown
    TIME        Mon Jun 06 17:15:12 2005
    RELEASE     640
    COMPONENT   NI (network interface)
    VERSION     37
    RC          -2
    MODULE      ninti.c
    LINE        332
    DETAIL      NiPGetHostByName2: hostname
                '<abc11.aa.abc23.company.com>' not
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
         at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:2983)
         at MyProject.Bapi2.<init>(Bapi2.java:45)
         at MyProject.Bapi2.main(Bapi2.java:233)
    Thx
    PRadeep

  • LCRSAPRFC is missing in Visual Admin (JCo RFC Provider)

    H y,
    I'm facing a problem while connecting our SolMan via RFC to SLD.
    Found documents explainig how to set up connection to SLD.
    SAPSLDAPI (was present in Abap and Java - wrong credentials - repaired)
    LCRSAPRFC (only present as RFC CONN in ABAP, but missing in Java, Visual Administrator JCo RFC Provider
    How can be the LCRSAPRFC added to JCo RFC Providers?
    Do I have to create the RFC Conn LCRSAPRFC again in Abap/SM59 to get the LCRSAPRFC visible again in Visual Admin?
    Thanks in advance
    Tom

    Hi,
    Do I have to create the RFC Conn LCRSAPRFC again in Abap/SM59 to get the LCRSAPRFC visible again in Visual Admin?
    Not Required.
       LCRSAPRFC (only present as RFC CONN in ABAP, but missing in Java, Visual Administrator JCo RFC Provider
    Usual Process
    Maintaining the RFC Connections (Transaction SM59)
    1. Log on to your SAP Exchange Infrastructure central instance host.
    2. Call transaction SM59.
    3. Choose Create.
    4. Enter at least the following:
    RFC destination:LCRSAPRFC
    Connection type: T
    Description: <your description>
    5. Choose ENTER
    6. Choose the tab Technical settings and do the following:
    a. Select Registered Server Program
    b. In the Program ID field, enter: LCRSAPRFC_<SID>
    where <SID> is the SAP system ID of your Integration Server host.
    Use uppercase letters only.
    c. Enter Gateway host and Gateway service of your Integration Server host.
    To find out the required parameters:
    a. On the Integration Server host, call transaction SMGW
    b. Choose Goto u2192 Parameters u2192 Display (see entries for gateway hostname and
    gateway service)
    7. Choose tab Special Options and select the flag Unicode in the box Character Width in
    Target System.
    8. Save your settings.
    Java Stack
    SAP J2EE Configuration for the Destinations (Visual Administrator)
    1. On your SAP Exchange Infrastructure central instance host, start the SAP J2EE
    Engine administration tool.
    If you do not know how to start, see section How to start the SAP J2EE Administration Tool .
    2. Choose Cluster u2192 Server u2192 Services u2192 JCo RFC Provider
    3. In the section RFC destination, enter exactly the same program ID and gateway options for LCRSAPRFC that you used in the step Maintaining the RFC connection above.
    Additionally, set the number of processes to 3.
    4. In the section Repository, do the following:
    a. Enter the parameter for the SAP XI host: Application Server, System Number, Client
    and Language.
    b. For User and Password maintain the login parameters for the user SAPJSF.
    c. Select the flag Unicode.
    6. Choose Set.
    Testing
    After you have maintained an RFC destination in both the ABAP and Java environment,
    you can check it as follows:
    1. Call transaction SM59 again.
    2. Open your RFC destination.
    3. Choose Test Connection.
    No error should be displayed.
    Regards,
    Rao.Mallikarjuna
    Edited by: Rao Mallikarjuna on May 31, 2008 11:40 AM

  • JCO RFC provider: Server function not found, short dump

    Hi all,
    I'm trying to use the JCO RFC provider service of NW04s (SP15) together with an ABAP 4.6C system. I've followed all the documentation that I could find, but couldn't get it to work yet. This is what I've done so far:
    Using SM59 I've had a destination APP_JK1 created for me on the R/3 system. AFAIK it's set up correctly and marked as a "registered server", connection tests were successful.
    On the portal, I've created a RFC portal destination using my R/3 credentials and successfully tested it. Then I created an entry in the RFC provider service, using the correct values for system, id & gateway, and let it point to my RFC destination for the repository connection. The program ID is also APP_JK1.
    Next, I created a stateless session bean which is part of an EAR, gave it a JNDI name of "RFCTEST" and added a method like this:
        * @ejb.interface-method view-type="both"
        * @param function called function
       public void processFunction(com.sap.mw.jco.JCO.Function function) {
          JCO.ParameterList input  = function.getImportParameterList();
          String query = input.getString("I_STRING_SEARCH");
          JCO.ParameterList output = function.getExportParameterList();
          output.setValue(query, "ECHOTEXT");
    (The project uses xdoclet for the creation of J2EE stuff)
    In application-j2ee-engine.xml located in the META-INF directory of my EAR, I've added:
    <reference reference-type="hard">
         <reference-target provider-name="sap.com" target-type="library">com.sap.mw.jco</reference-target>
    </reference>
    The application deploys without errors, and besides from my RFC connection works as expected. In the JNDI registry view of VisualAdmin I see the corresponding entry: "rfcaccessejb/RFCTEST" is a local reference to my stateless session bean.
    On ABAP, I have a tiny little program that calls my function, mainly looking like this:
    CALL FUNCTION 'RFCTEST' DESTINATION 'APP_JK1'
      EXPORTING
        I_STRING_SEARCH = query
      IMPORTING
        ECHOTEXT = t1.
    Unfortunately, it short dumps immediately. The error message is:
    JCO.Server could not find server function 'RFCTEST'
    I'm lost. What could be wrong? Any help is greatly appreciated. Kind regards,
    Christian Aust

    Hello Perry song,
    You got the short dump bcoz, there is no perform by the name you provided in the program,
    for example. consider there are 2 programs.
    Program 1 :
    REPORT  ZPGM1.
    *Calling a perform SNAME1 , the code of perform is written in ZPGM2.
    perform sname1 IN PROGRAM ZPGM2.
    Program 2 :
    REPORT  ZPGM2.
    perform sname1 .
    Form SNAME1 .
    write : 'Text in form SNAME1' .
    endform.                    " SNAME1
    (here SNAME1 is found and it works perfectly )
    Change in Program 1 :
    REPORT  ZPGM1.
    *Calling perform DELTA ,
    perform DELTA IN PROGRAM ZPGM2 IF FOUND.
    Now the perform statement will search for perform " DELTA " in ZPGM2 , but there is no perform by name DELTA , so here we need to mention the condition " IF FOUND "  , so now by mentioning the condition " IF FOUND " in perform statement ,  if the perform DELTA is not found then it wont go to DUMP.
    If condition " IF FOUND "  is not mentioned in perform statement like
    perform DELTA IN PROGRAM ZPGM2 . ( This gives DUMP )
    just type " IF FOUND " when u r calling a perform from other program ( i guess this will solve the problem ).
    Hope it might be helpfull,
    Regards ,
    Aby
    Edited by: abhi on Nov 6, 2008 10:14 AM

  • Buttons disabled while creating JCO- SLD configured in solman

    Hi All,
    I have configured SLD in solman.And I have made relevant entries in Visual Administrator also.
    When I try to create jco in my portal,all buttons are disabled.
    I had faced this problem when I had configured SLD in portal itself and that got resolved after I searched through the forum.
    But here I have no clue where i am going wrong.
    Regards
    Akshaya

    Hi,
    Check all these in VA.
    Go to Visual Composer
    1)Make new Connecion
    a)User name->
    b)Host ->
    c)Port->50004
    Goto cluster ->got to server->services->sld Data supplier.
    Set RFC Settings
    a)Gateway Host ->ip of ep
    b)GateWay service/port->sapgw00/3300
    CIM client generation settings
    Host->ip address of ep
    Port ->50000
    user->
    Set Http Settings
    Host->ip of ep
    port->50000
    user->j2ee_admin
    Do these steps  and check the CIM generation has displayed successfully or not.?
    It might helps you.

Maybe you are looking for

  • Can I take use the RAM from my old Macbook pro and put in in my new one?

    Hi guys, wondering if I can do this to save money on buying new RAM? I have a 13" Macbook pro and have just bought a new 15" Macbook pro the 13" Has 8gb of RAM the 15" has 4 gb of RAM I want to swap them over if its possible. This is the info I have

  • Tabel name for PO and Invoice combination

    Hi, Can any one help me, which table we can use to find whether the invoce complete or not for the list of PO's or GR's. If there is no standard table, then advice me how to see the list of 100 po's which have completed invoice or not? Thanks, Saran

  • TS3682 Trying to update my iOS 4 to iOS 6

    I am trying to update my iOS 4 from my IPad 2 to a newer version of iOS . They have the worst instructions on how to upgrade to iOS 5. Usually Apple is really easy, but not with this. And, unlike my iPhone 5, you can't go to General settings. I have

  • Cant view video on the internet

    when i go to a site and it has video, I see a Q with a ? over top of it. why cant I view these videos

  • "+" Over Applications, "?" Over Application Icons

    Hey all, I just purchased a new Macbook Pro 15" (2.53GHz, 4GB, 320GB HDD). I was skeptical of using Migration Assistant to move all my stuff from my old G5 desktop (see signature) that was still in PowerPC world (3 years old this past May!). All went