Skip to Content
avatar image
Former Member

Error in User defined function

I have created a user defined function to make a call to SAP using JCo.

But I am getting an error "package com.sap.mw.jco does not exist"

Do we need to install JCo on our server?

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Aug 17, 2004 at 09:09 AM

    Hallo Vijaya,

    you have just to upload the jar into the Integration Repository as "Imported Archive" object as suggested in the note. And you need not to activate this Imported Archive.

    Regards Franz

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 11, 2004 at 12:55 PM

    Hello, please check if the sap.jco jar library is in your XI classpath if not please be sure that you have it there.

    regards

    Ernesto Duran

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Ernesto,

      Is XI class path , the class path specified or the place where XI is installed.

      Also, Please can u let me know from where can I find these files.

      Thanks in advance

      Regards

      vijaya

  • Aug 12, 2004 at 03:06 PM

    Hallo Vijaya Kumari,

    if you use XI3.0 then you should check csn note 753294:

    Symptom

    A message mapping contains a user-defined function that uses a class

    from the "com.sap.mw.jco", "sapxmltoolkit" or "com.sap.tc.Logging"

    library. An error stating that the source code contains syntax errors

    occurs when you test or activate the message mapping. When you use a

    class from "com.sap.mw.jco", the system reports, for example, "package

    com.sap.mw.jco does not exist".

    This error only occurs in systems containing a Support Package lower

    than 5.

    Solution

    Import Support Package 5 or higher.

    You can use the following workaround as a short-term solution: Upload

    the library that is referenced in the message mapping into the software

    component of the message mapping as an "imported archive". Do not

    activate the "imported archive" with the library since it is not needed

    for the runtime. The only purpose of the archive is to allow the message

    mapping to be compiled. To avoid version conflicts with newer libraries,

    you should delete the archive again after you import Support Package 5

    or higher.

    In your case you will find the relevant jar file in the path

    [sap_j2ee_engine_installaltion_path]\cluster\server0\bin\ext\com.sap.mw.jco\jrfc.jar

    Regards Franz

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Franz,

      We are on XI 3.0 SP3. For tempoaray measure, I could see the folder specified in the path by you but where do I put this folder?

      do I need to put it in any specified path.

      Thanks