JCO RFC Problem

Hello,
I am trying to call BAPI Using RFC - JCO connections from EJB with the help of below document.
http://help.sap.com/saphelp_nw04/helpdata/en/17/d609b48ea5f748b47c0f32be265935/frameset.htm
I have two questions here,
    DestinationService dstService = (DestinationService)
    ctx.lookup(DestinationService.JNDI_KEY);
DestinationService is null here, i guess i could not get destination service from IntialContext.
After getting the client, how do we call Function module?
JCO.Client client = JCO.createClient(jcoProperties);
is it the same way as direct connection...
http://help.sap.com/saphelp_nw04/helpdata/en/de/e6c9255044b241a9401a3a1b7009a9/frameset.htm
Please help me, how to solve this issue.
Regards,
Learner

Destination Serive is null, because you have not specified any Reference to the interface.
in the .ear project - application-j2ee-engine.xml file, you need to specify the refence like this,
     <reference
          reference-type="hard">
          <reference-target
          provider-name="sap.com"
          target-type="interface">tcsecdestinations~interface</reference-target>
          </reference>
After getting client connection same way you will access the, JCO direct connection.
RFCDestination rfcDestionation =
          (RFCDestination) dstService.getDestination("RFC", "RFC_Destination");
Properties jcoProperties = rfcDestionation.getJCoProperties();          
mConnection = JCO.createClient(jcoProperties);
mConnection.connect();
JCO.Repository sapJcoRepository = new JCO.Repository ("SAPJCorep", mConnection);
JCO.Function iFunction = sapJcoRepository.getFunctionTemplate("Z2_INCOMING_MOVEMENTS").getFunction();
get and set paramters, in regular way. Reply me, if you have any more issues.
Regards,
Sridhar

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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: "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

  • 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

  • JCO connection problem at web dyn pro

    HI all,
    I was installed sneak preview of Net weaver 6.4,
      I want to do some web dynpro (java) programs which connect to back end systems.(R/3 system).
      The R/3 system which I want to connect is at remote place, i have connectivity to that R/3 system using VPN connectivity. With this I am not having any problem. Since I am able to connect using User name and password, and able to do some transactions like RZ70, etc.
       I developed an application which calls COMPANY_CODE_GET_LIST (BAPI function).
    for the above requirement what I did was
       (1)I created SLD setting.
           (a)Web as Java (I am not having any problem to
              Create this.
           (b) Web as ABAP.
              When i am trying to create
              This, there are some steps like i need to go to SAP log in and I need to run the transaction RZ70. For this i need to create an enter in visual administrator>JCO RFC Provider>runtime-->Bundles i need to create an entry for RFC destination as well as Repository.
          under <b>RFC destination </b> there are some fields which i need to enter those are  (a)Program ID as <b>mySLD</b>  (b) Gateway Host as <b>10.10.10.125</b> (c)Gateway service as <b>sapgw00</b>  (d)Number of processes as <b>1</b>
          Under <b>Repository</b>  (a) Application server host <b>10.10.10.125</b> (b)system number as <b>00</b> (c)Client number as <b>100</b> (d)Language as <b>en</b> (e)user as <b>ABCD</b>  (f)password as <b>1234</b>
      I haven't choosed the check boxes <b> Local bundle </b> and <b> Unicode </b> and pressed the set button. So like this i created the RFC destinations. under the <b>properties</b> tab  there is a property called <b>RFC_DEFAULT_DESTINATION</b> by default it was false so i made it as <b>true.</b> .
    I also went to <b>SLD Data Supplier</b>,under <b>Runtime</b> tab , HTTP  Settings , I mentioned
               (a)Host: pava-vis75
               (b) Port: 50000
               (c) user: administrator
               (d) password: abcd1234
               RFC Settings, I mentioned as
               (a)Gateway Host: 10.10.10.125 (which is SAP R/3 system)
                (b)Gateway Service/Host: sapgw00
               CIM Client Generation settings, as
               (a)Host: pava-vis75
               (b)Port (http/https):50000
               (c) user: administrator
               (d) Password : abcd1234
        I tested the CIMClient Test by click the the button. I got the successful message.
        Then I came back to HTTP settings and clicked the button with tilted arrow mark [This triggers data transfer to system landscape directory], for this also I got a successfully message.[data transferred successfully]
        Next I been to SAPLOGON and went to RFC Destinations by using <b> sm59 </b> transaction. There under TCP/IP connections i been to <b> SLD_NUC </b>, opened this by double clicking that and under Technical settings for <b> Program ID </b> I had given the ID which I created at visual administrator [JCO RFC Provider] which is <b>mySLD </b>, under gateway options for Gateway Host as <b>10.10.10.125</b>and Gateway service as <b> sapgw00 </b> then i tested the connection, it was also successfully.
    Then I opened the SLDAPICUST and i created a new entry for maintaining the SLD Access Data by giving some couple of entries as
                (a)Alias: vissldtest
                (b)Host Name: pava-vis75
                (c)Port: 50000
                (d) user: administrator
                (e) password: abcd1234
    Then saved it.
    Next I created <b>sapmsUV0         3600/tcp </b> entry at
    <b>WINDOWS\system32\drivers\etc</b>\services file, and also there are some required entries which are already existing those are <b>sapgw00</b> <b>3300/tcp</b> to <b>sapgw99</b> <b>3399/tcp</b> , another entry starts from  <b>sapdp00s</b> <b>4700/tcp</b> to <b>sapdp99s</b> <b>4799/tcp</b> , next entry starts from  <b>sapgw00s</b> <b>4800/tcp</b> to <b>sapgw99s         4899/tcp</b> and <b>sapmsJ2E      3601/tcp </b> .
    I restarted the system, as well as server.
    Now my problem is when I was trying to create JCO destination at web dynpro content administrator. For that I navigated as “create JCO Destination &#61664;Deployed Content&#61664;local-&#61664;local/CompanyCodeGetList-&#61664;Applications&#61664; CompanyCodeGetList
    I Choosed the JCO Connections tab-&#61664; there are 2 entries those are
                (1) COMPANY_CODE_MODEL
                (2) COMPANY_CODE_RFC_METADATA
    So I started creating connection for COMPANY_CODE_RFC_METADATA.
      First one is
                   General data <b> Name </b>: COMPANY_CODE_RFC_METADATA
                                        <b> Client </b> : 100
                                        I didn’t changed any default JCo pool configuration.
                     J2EE Cluster
                                        There is a check box called “Use Local J2EE engine J2E on pava-vis75’ so I choosed that.
                  Connection Type
                                       <b>Dictionary Meta Data</b> and <b>application Data </b>
                            I choosed the first one.
                 Then
                           Msg. Server Connection
                            Security
                            After these, I tried to test the connection by clicking the ‘Test Connection.
             It is saying the error as
         First time
            com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=v011 GROUP=DEFAULT R3NAME=UV0 MSSERV=sapmsUV0 PCS=1 ERROR service 'sapmsUVO' unknown TIME Fri Jul 01 07:20:41 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1                                      
    second time
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=v011 GROUP=DEFAULT R3NAME=UV0 MSSERV=sapmsUV0 PCS=1 ERROR service '?' unknown TIME Fri Jul 01 07:20:41 2006 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -3 COUNTER 1
    Can any body please help me to solve this problem.
    From past 1 week on wards I have been trying to resolve this. But in vain.

    answer in your other thread on the same topic
    problem in connecting JCO destination in web dynpro
    (Kindly avoid double posting)
    Regards
    Raja

  • PI System Copy (JCO RFC destinations missing)

    Hi,
    We are doing a Homogeneous System Copy of a PI 7.0 system:
    - Source system --> PI 7.0 Production system ("PIP")
    - Destination system --> PI 7.0 Development system ("PID")
    We are executing the specific POST activities for a PI system (point 5.2.3.2.4 in the "System Copy for NW2004s SR2 Abap+Java" guide). In point 5.2.3.2.4.2, PI RFC destinations must be adapted in both Abap (SM59) and Java (Visual Administrator, JCO RFC Provider). The problem is that in all PI abap RFC destinations (AI_RUNTIME_JCOSERVER etc) the program_id is pointing to our PI
    Production system ("AI_RUNTIME_PIP"), is it OK?
    Besides, in Visual Administrator (JCO RFC Provider service), all the required RFC listeners for PI ("AI_DIRECTORY_PIP", "AI_RUNTIME_PIP", etc.) are missing after the system copy (???). Must these RFC listeners be manually created? How can we do it? Must we create them with the development SID ("AI_RUNTIME_PID") or with the production SID ("AI_RUNTIME_PIP")? Perhaps PI configuration wizard must be executed after the system copy of a PI system so that these JCO RFC destinations are created, but we are afraid executing the wizard could harm the PI configuration...
    Thanks in advance.
    Jon Larrucea

    Hi Jon
    Probably the best thing to do is just create these destinations manually. You will need to do this in SM59 and the Visual Administrator. See the link below:
    Creating RFC Destinations in the ABAP and Java Environments 
    http://help.sap.com/saphelp_nw70/helpdata/en/be/6e0f41218ff023e10000000a155106/content.htm
    Regards
    Mark

  • JCO Ejb problem

    Hi all,
    i'm developing a ejb to execute a function from a JCO Rfc provider. I got a lot of problem:
    1) How can i set the correct JNDI name for the ejb?
    2) What type of bean i need?
    3) What is the correct sign for the function procedure?
    Thanx

    Hi Francesco,
    This depends on what your application is doing, so there's two options a Stateless or Stateful Session bean. There's lots of info about these types on the net.  During development of this you will provide a JNDI name, when looking for the bean in your code you would prefix lookup with "java:comp/env/ejb/xxx" xxx being Bean name.
    I don't understand the last question? please clarify.
    Raj

  • JCO Client Problem

    Hello,
    I’m having a problem with JCo client connection. I am doing some BW queries that are bringing back a significant amount of data.  Every now and then JCo crashes (bringing down the JVM as well) and this error message is dumped to the screen.
    JCO [JNI-LAYER] cannot load backtrace library [jcobtrace.dll]
    ===== BEGIN DUMP =============================================================
    Error Message: Illegal memory access. [54]
    Exception Rec: EXCEPTION_ACCESS_VIOLATION (0xc0000005) at 0x341FC99D - memory at 0x00000000 could not be written.
    Does anybody know what might be causing this?  I would very much appreciate any help on this.
    Thanks,
    Corey

    I've added the stack trace as well if that is of any help to someone.
    [code]http-8081-Processor 16 id=63 idx=0x78 tid=3460 lastJavaFrame=0x2FCFF3BC
    Thread Stack Trace:
         at [email protected]+763()@0x341FC99D
         at Javacom_sap_mw_jco_rfc_MiddlewareRFC_nativeSetMode@12+6533()@0x341F3EFD
         at Javacom_sap_mw_jco_rfc_MiddlewareRFC_nativeSetMode@12+9731()@0x341F4B7B
         at [email protected]+2007()@0x341FC0EC
         at com/sap/mw/jco/rfc/MiddlewareRFC$Client.nativeExecute(Lcom/sap/mw/jco/JCO$Client;Ljava/lang/String;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Ljava/lang/String;Ljava/lang/String;I)V(Native Method)
         at com/sap/mw/jco/rfc/MiddlewareRFC$Client.execute(Lcom/sap/mw/jco/JCO$Client;Ljava/lang/String;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Ljava/lang/String;Ljava/lang/String;I)V(MiddlewareRFC.java:1211)
         at com/sap/mw/jco/JCO$Client.execute(Ljava/lang/String;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Lcom/sap/mw/jco/JCO$ParameterList;Ljava/lang/String;Ljava/lang/String;I)V(JCO.java:3684)
         at com/sap/mw/jco/JCO$Client.execute(Lcom/sap/mw/jco/JCO$Function;)V(JCO.java:3129)[/code]

  • 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

  • Services in JCo RFC not getting started after Changing the client from 001

    Hi SAP Stars,
                               I have recently Installed Quality and Production servers with PI 7.1 on windows 2003, Sqlserver 2005, when I'm doing Post Activities(http://host:port/nwa) in which I try to change the client from 001 to 300(newly created) in  JCo RFC(4 services) and start the service it is throwing error when I again change it to 001 client and start the service it is getting started, Could anyone help me in solving this issue same issue I facing in PI 7.1 Quality and Production
    Thanks In Advance
    Anil Kumar

    Hi Anil,
    All these JCo RFCs are client specific RFCs.
    Please logon your PI NWA
    Choose Configuration Management - Infrastructure- JCo RFC Provider
    Then, Select the RFC
    Under Details -> Choose Repository Configuraton
    Change the client name to 300 (your new client)
    Save
    And repeat the same for all JCo RFC that you want to work for your newly created client.
    Please ensure that you are using SAPJSF user & correct password for all these RFCs.
    Ideally, these rfcs shuould work now if now please restart your PI  (mostly Java alone also do)
    I hope this helps you.
    Regards
    Sekhar
    Edited by: sekhar on Dec 17, 2009 11:39 AM

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

Maybe you are looking for

  • HTTP Adapter issue

    I am using an HTTP adapter to send a message from XI to a url http://www.ustreas.gov/offices/enforcement/ofac/sdn/sdn.xml When I make a request to this url, my response should be a string of xml data.  This is a list of people / nations to whom my co

  • Problem compiling in Linux using ant

    Hi, I have a problem using ant in Linux. When I build my application using ant in Windows it works fine, but when I try to build the same application with ant in Linux it gives me the following exception: /identifier/MidiReader.java:5: error: Class o

  • AT200 pairing with Bluetooth Mouse

    I've just bought an AT200 tablet, my first Android device which i've upgraded to ICS (Android v4.02) I'm trying to pair a bluetooth mouse with the tablet. Like many bluetooth devices, the mouse requires no passcode, but when I try to pair with it And

  • Lost Photos in sync

    I was syncing my daughter's ipod touch 4th generation to the itunes account and her photos are gone. I have not disconnected. Is there anyway to revert the sync? Or are they somewhere on the computer? (They aren't in the photo library)

  • How do I convert a hand drawn ink image to layers?

    I have an hand drawn image in jpg of black lines on white background (similar to line art) and I want to convert the black lines to a layer. How can I do this?