Error:No Jco RFc metadata found

Hi Moderator,
Pls don't block this question ,previously also ,I have closed the questionin another forum but you blocked here.
Closed the questionin another forum as I think that this is appropriate forum.
=========================================================
Hi All,
We are using ESS MSS on SAP EP 7.0 SP 15 and using ERP 6.0 EHP 3 .
In Portal while navigating to ESS -> leave_>apply leave we are getting this error
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: no jcoMetadata found for RFC function 'PT_ARQ_ACCOUNTS_GET_CE'! Please verify, that your model is consistent with the ABAP backend:
Detail information
==============
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to create or init instance of model 'com.sap.xss.hr.lea.model.LeaveRequestAdaptiveModel' in scope APPLICATION_SCOPE with instanceId 'null'
at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getOrCreateModelInstanceFromScopeMaintainer(WDModelFactory.java:341)
at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getModelInstance(WDModelFactory.java:155)
at com.sap.tc.webdynpro.progmodel.model.api.WDModelFactory.getModelInstance(WDModelFactory.java:102)
==============
These are the details:
WebDynpro Content
SAP_ESS 603 SP3
SAP_MSS 600 SP14
SAPPCUI_GP 603 SP3
Business Package
BP_ERP5COM 1.31 SP3
BP_ERP5ESS 1.31 SP3
BP_ERP5HRA 1.11 SP7
BP_ERP5MSS 1.31 SP3
These are the details of ABAP backend
SAP_HR 600 29 SAPKE60029
EA-FINSERV 603 2 SAPK-60302INEAFINSRV
EA-HR 603 3 SAPK-60303INEAHR
EA-APPL 603 2 SAPK-60302INEAAPPL
Pls suggest how to resolve this.Is this related to Version mismatch of support packs.
I have checked the Jco RFC.All are working fine.
Regards
Ajay

Hi Ajay,
   I am facing the same issue and am trying to follow the note that you had suggested. The note says to create the dummy RFCs "PT_ARQ_ACCOUNTS_GET_CE", "PT_ARQ_REQLIST_GET_CE" and PT_ARQ_READ_CE_SWITCH, But doesn't say which package I should save the RFC/structures/table types in. I tried saving them in EA-HR, but got the following error. "EA-HR cannot be extended."
Please help.
Regards,
JS.

Similar Messages

  • Error in BPM: "COMMUNICATION FAILURE" during JCo call. Error opening an RFC

    hello experts
    i am receiving the above error incase of BPM scenario where i am having a Transform step and synchronous RFC step.
    i referred to the few threads discussing such problems and was trying to find whether my mapping is correct and i tested my mappings using my payload which looks good.
    When looked into the Mapping trace of the BPM "Show container" i found error ""COMMUNICATION FAILURE" during JCo call. Error opening an RFC connection" and it seems that when BPM is attempting to call interface mapping it is throwing this error.
    Thanks in advance.
    Regards
    rajeev

    hi,
    I think no problen with the mapping part,
    jco connection requird when xi try to stablish the connection with the adapter .
    please look the link provided.
    Setup and test SAP Java Connector outbound connection
    please also check the following parameter at the exchange profile
    com.sap.aii.rwb.server.centralmonitoring.r3.ashost
    com.sap.aii.rwb.server.centralmonitoring.r3.client
    com.sap.aii.rwb.server.centralmonitoring.r3.sysnr
    com.sap.aii.rwb.server.centralmonitoring.httpport
    these parameter must be given properly.
    if every thing is ok than and problem still exist than try to restart the system.
    for us after restarting its worked fine.
    regards,
    navneet

  • 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

  • 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

  • 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

  • Error while loading service JCo RFC Provider

    When I click on the "JCo RFC Provider" node under services in Visual administrator, I get an error:
    "Error while loading service JCo RFC Provider"
    Does anyone know what has gone wrong here, and how I go about fixing it?
    Thanks in advance
    Regards
    Richard
    PS. We're using EP6sp14

    You have to use the correct Visual Admin version:
    if your netweaver is 6.40 use VA 6.40 ... and for 7.00 the same, VA 7.00
    (you get them from OS where netweaver is installed)
    other possiblity: use Administrator login and check if it works, then correct your permissions (mostyl 'Administrators' group is missing)
    Regards,
    Chris

  • Error while creating RFC Jco provider in visual Admin

    Hi,
    I have crated a rfc jco provider in visual admin , I have given all the ECC related details both in registered server AND Spcific application server. In both of these I have given R/3 related details like host of ecc and all.
    All i have given correct used ID and passowrd also (I am using my own user id and password in this jco rfc provider). that user id is there in ecc with sap all in profile and in roles also i have given 2 roles for that used id, namely sap_bc_jsf_communication AND sap_bc_usr_cua_client_rfc
    Still when i try to  start it its giving me error:  Error starting bundle
    please help

    This I am getting:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=sapecdsrv SYSNR=00 GWHOST=sapecdsrv GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       hostname 'sapecdsrv' unknown
    TIME        Wed May 26 14:26:21 2010
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -2
    MODULE      nixxhsl.cpp
    LINE        223
    DETAIL      NiHsLGetNodeAddr: hostname cached as unknown
    COUNTER     2
    at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)
    at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1025)
    at com.sap.mw.jco.JCO$Client.connect(JCO.java:3255)
    at com.sap.mw.jco.JCO$Pool.initPool(JCO.java:4725)
    at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:6180)
    at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:6135)
    at com.sap.mw.jco.JCO.getClient(JCO.java:8803)
    at com.sap.engine.services.rfcengine.Bundle.startAll(Bundle.java:248)
    at com.sap.engine.services.rfcengine.RFCRuntimeInterfaceImpl.addBundle(RFCRuntimeInterfaceImpl.java:350)
    at com.sap.engine.services.rfcengine.RFCRuntimeInterfaceImpl.changeBundleConfiguration(RFCRuntimeInterfaceImpl.java:654)
    at sun.reflect.GeneratedMethodAccessor401.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
    at com.sap.pj.jmx.mbeaninfo.AdditionalInfoProviderMBean.invoke(AdditionalInfoProviderMBean.java:289)
    at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
    at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
    at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
    at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
    at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
    at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
    at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
    at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
    at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:131)
    at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
    at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:766)
    at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:102)
    at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
    at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
    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(AccessController.java:219)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172

  • Getting error in XI"RFC Program Not Found"

    Hi All,
    I am getting error in SXMB_MONI "RFC Program not found via SAP XI".
    So please suggest me what is the problem behind this..For these SAP XI and R/3 i made 3 to 4 RFC program but only 1 RFC program name not getting Via SAP XI.
    Thanks
    Amit

    Hi,
    I am calling RFC FM via SAP XI.
    Main Records are coming from siebel and recevied by SAP XI and XI will do some changes in records and calling REC FM from SAP R/3.
    Problem is siebel to xi records coming fine but xi to sap R/3 error message coming "Program not Found".
    Thanks
    Amit

  • JCO RFC Provider: "Bean not found" when calling EJB from ABAP via RFC

    Hello,
    I'm having trouble calling an EJB in a CE 7.1 system from ABAP via RFC. I'm trying to use the JCO RFC Provider service, which mean that I want to expose an EJB so that it can be called via Remote Function Call.
    I have documented everything, including the code and the deployment descriptors I wrote, in this thread in the CE forum: Jco RFC Provider: Bean not found
    If there's any chance you can help, please do me a favour and look into the problem.
    Thanks a lot!
    Thorsten

    Hi Vladimir,
    Thank you very much, your help was immensely valuable.
    I just had to add the function declaration to the Home Component interface, everything else was correct, and now it works.
    Cheers,
    Thorsten

  • Error msg-Adaptive RFC reimport could lead to inconsistency of R/3 metadata

    Hi Experts,
    I am trying to reimport the model for Webdynpro application.
    I wanted to include more BAPIs to the existing model.
    When i am trying to do that I get pop up, with following message;
    "Adaptive RFC reimport could lead to inconsistency of R/3 metadata cached on J2ee server.
    Thus it is recommended to invalidate the cache this could be done either by re starting the J2EE server or by using adaptive RFC metadata cache invalidatation tool within webdynpro Console"
    Could anyone one help me in resolving this?
    Thanks and regards,
    Pradnya

    Hi,
    When you reimport an RFC/BAPI the metadata which is stored in the cache is not cleared. So it still refers to the old RFC/BAPI metadata. We need to clear this. This can be done by either restarting the server or webdynpro console.
    For Clearing through webdynpro console the version should be NW04 or 6.40 SP21 Onwards 2. NW04S or 7.0 SP12 Onwards
    Check this link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
    Thanks,
    Gopi

  • Third party system (JCO) ---RFC--- PI ---RFC--- ECC

    Hello all,
    We are trying to implement the following scenario:
    Third party system (JCO) -RFC-> PI -RFC-> SAP ECC
    The third party system connect to PI via Java Connector API with a know user id in PI. After that third party system tries to obtain the RFC that is already implemented and remote enabled in SAP ECC environment. But at this step there is something wrong in third party system software because we are not able to obtain the RFC interface and metadata from PI repository.
    1. This step is working correctly. Connection is OK.
                JCO.Client mConnectionPI = JCO.createClient("100", // SAP client
                                                                                    "user_id", // userid
                                                                                    "********", // password
                                                                                    "pt", // language
                                                                                    "10.x.x.x", // application server host name
                                                                                    "01"); // system number
                mConnectionPI.connect();
    2. This step is not working correctly:
                JCO.Repository repository = new JCO.Repository("TestRep", mConnectionPI);
                IFunctionTemplate ftemplate = repository.getFunctionTemplate("Z_RFC_XXX"); - not found exception
    We would like to know if there is something missing in any environment that we have to configure or implement in order to fix this issue. Thanks a lot.

    Hi Primini,
    couple of stupid-but-necessary questions:
    1) have you imported the RFC model in PI Repository?
    You don't need to have the RFC metadata in PI ABAP stack (there is no point in doing that), but rather in the PI Repository/ESR, within the SWCV you've created.
    Check the "Activities" session of this link for more details:
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/2b/a48f3c685bc358e10000000a11405a/frameset.htm
    2) if you have done 1), have you configured the RFC Sender scenario properly?
    I mean, have you ran the configuration wizard to create the agreements & determinations, setting the RFC interface as both the sender and the receiver interface? Of course, the systems would be different: as the sender system, you'll have a Business Service representing the legacy/JCo system; as the receiver, you'll have the ERP Business System.
    This should make your scenario work.
    If it doesn't, try one more thing: in the JCo code, just for the metadata repository connection, use a connection to the ERP system. But for the actual call, use the PI system.
    Let us know the results.
    Best regards,
    Henrique.

  • 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

  • Error In JCO Connection

    Folks,
    I am getting the following error listing while connecting to R/3 system using JCO.
    In first try block
    sales order
    In sales order try block
    java.lang.NoClassDefFoundError
         at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:831)
         at com.sap.mw.jco.JCO$Client.connect(JCO.java:2992)
         at com.sap.mw.jco.JCO$Pool.initPool(JCO.java:4449)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:5827)
         at com.sap.mw.jco.JCO$PoolManager.getClient(JCO.java:5782)
         at com.sap.mw.jco.JCO.getClient(JCO.java:8059)
         at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:19581)
         at com.sap.mw.jco.JCO$Repository.getFunctionInterface(JCO.java:19705)
         at com.sap.mw.jco.JCO$BasicRepository.getFunctionTemplate(JCO.java:18773)
         at com.i3l.sukanta.project.tCon.salesOrders(tCon.java:57)
         at com.i3l.sukanta.project.tCon.main(tCon.java:112)
    Exception in thread "main"
    I am following the following program below:
    Created on Jul 5, 2006
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package com.i3l.sukanta.project;
    @author sukanta
    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.*;
    //import com.sap.mw.jco.rfc.*;
    public class tCon {
         static final String SID = "KDC";
         IRepository repository;
         public tCon()
              try
                   JCO.addClientPool(
                   SID,               // System ID i.e alias for this pool ??
                   10,                    // max no of connections
                   "100",               // SAP Client
                   "XXXXX",          // userid
                   "XXXXX",     // password
                   "EN",               // language
                   "XXXXX",          // host name
                   "00"               // system number ??
                   repository = JCO.createRepository("MYRepository", SID);
                   System.out.println("In first try block");
              catch(JCO.Exception ex)
                   System.out.println("In first catch block");
                   System.out.println("From Sukanta:Exception throuwn"+ ex);
         //Retrieves and prints list of sales orders
         public void salesOrders()
              System.out.println("sales order");
              JCO.Client client = null;
              try
                   System.out.println("In sales order try block");
                   //Get a function template from the repository
                   JCO.Function function = repository.getFunctionTemplate("BAPI_SALESORDER_GETLIST").getFunction();
                   System.out.println("after BAPI & BEFORE RECORD");
                   //Fill in input parameters
                   JCO.ParameterList input = function.getImportParameterList();
                   input.setValue("0000001200", "CUSTOMER_NUMBER");
                   input.setValue("1000", "SALES_ORGANIZATION");
                   input.setValue("0", "TRANSACTION_GROUP");
                   System.out.println("AFTER RECORD");
                   //Get a client from the pool
                   client = JCO.getClient(SID);
                   //Execute function the remote system
                   client.execute(function);
                   //Print return message
                   JCO.Structure ret = function.getExportParameterList().getStructure("RETURN");
                   System.out.println("RETURN MESSAGE: " + ret.getString("MESSAGE"));
                   //Get a reference to the table which contains the orders
                   JCO.Table orders = function.getTableParameterList().getTable("SALES_ORDERS");
                   if(orders.getNumRows() > 0)
         //            Loop over all rows
                        do
         //                      Loop over all columns in the current row
                             for(JCO.FieldIterator e = orders.fields(); e.hasMoreElements();)
                                  JCO.Field field = e.nextField();
                                  System.out.println(field.getName() + ":\t" + field.getString());
                             }//for
                   while(orders.nextRow());
                   else
                        System.out.println("No results found");
                   }//if
                   catch(Exception ex)
                        System.out.println("Caught an exception: " + ex);
                   finally
                        // Always release client !!!
                        JCO.releaseClient(client);
                   //try
         //            Main program
                   public static void main(String[]argv)
                        tCon jcoconnection= new tCon();
                        jcoconnection.salesOrders();
    Plz help me asap.
    regds,
    S

    Hello S,
    you've marked your question as solved. What was your solution?
    Regards
    Gregor

  • How to handle JCO Exceptions at JCO (RFC) function call

    Hello Forum,
    I am implementing an JCO Server scenario.
    I use dynamic repositories like Example7.java from the JCO documentation.
    Example7 throws an JCO.AbapException if anything went wrong, e.g. the function is not implemented.
    How to react on this AbapException?
    The examples in SAP Help documentation only catch
    SYSTEM_FAILURE and COMMUNICATION_FAILURE.
    All other RFC modules I have seen which declare the function modules to be used by dynamic JCO repositories (like Example7.java) do not define any other Exception parameters.
    But these two are only thrown and caught when something with communication went completely wrong, e.g. RFC not found.
    But when RFC can be reached and the JCO Server is executing the Java method, an AbapException could be thrown on error. How to react on this?
    In my implementation based on the examples I always get a ABAP dump. The dump says:
    Exception named  without message text. Why that name?
    How to handle this type of exception in order to avoid the dump?
    Can anyone post an example please?
    Thanks,
    Carsten
    Edited by: Carsten Schön on Apr 15, 2008 4:22 PM
    Edited by: Carsten Schön on Apr 15, 2008 4:24 PM

    Hi Micky,
    thanks for your quick response.
    If so, to throw JCO.AbapException on JCO Server side is not correct?
    What I do is throwing the JCO.AbapException (like in the JCO Example 7).
    At the RFC call in APAB I handle both exceptions SYSTEM_FAILURE and COMMUNICATION_FAILURE like
    CALL FUNCTION 'MY_JCO_FUNCTION_MODULE'
        DESTINATION JCO_DEST
        <...>
        EXCEPTIONS
          SYSTEM_FAILURE        = 1  MESSAGE RFC_MESS
          COMMUNICATION_FAILURE = 2  MESSAGE RFC_MESS.
    This works as far something with RFC is wrong, e.g. Server can not find the function or Server not reachable.
    But the AbapException thrown by the JCO Server (Java) is not handled that way. Why?
    Sorry if this is the wrong forum but I tried posting in Netweaver integration and got no answer for 1 week and because it's ABAP related I thought the topic suites here.
    Carsten
    Edited by: Carsten Schön on Apr 15, 2008 5:10 PM

  • 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

Maybe you are looking for

  • Transfer few files from Macbook Pro to iPad 2

    I It says i need to click Apps ( i think it in Itunes) and then activate filesharing at the bottom after it is connected to computer's usb to from Ipad 2 I need more documentation.

  • UDF in Query PLD

    Hi All, I have designed query pld for a screen in which i have few user defined fields also. When i excute a query pld with values in user defined field it is not giving any out put. Same query with out user defined field values is working problem. C

  • XI 2004s configuration

    Hello everybody, Does anyone have an idea of how long it takes to configure XI 04S? and what are the material requirements? I'm new in XI and i worked on the configuration of XI 3.0 but i haven't allready configured XI 2004s, so i wondered how long i

  • How do i get the round micrphone thing to go away?

    how do you get the round micrphone thingy to go away? And i played chess and i can't reset it?

  • How do I stop Photoshop from loading photos on a MAC?

    I have a MAC.  I started loading photos on a file over 18 hours ago and it still is going.  I want to stop it, but cannot figure out how to do that.  Any suggestions?  Thanks