cancel
Showing results for 
Search instead for 
Did you mean: 

Data Lookup with XI mapping.

Former Member
0 Kudos

Hi,

I am trying to write a user define function to do a data

lookup by calling an RFC function. I am trying this out as per the document available in SDN namely "How to Perform SAP Data Lookups Within XI Mappings". The user defined function does not compile and give me the following error. Can someone help me out with this problem.

Compilation error

D:/usr/sap/X3A/DVEBMGS31/j2ee/cluster/server0/./temp/classpath_resolver/Map370955f0cc2311d8959a00d0b77fc64c/source/com/sap/xi/tf/_gwMsgRFC_msg_.java:3: package com.sap.mw.jco does not exist

import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import com.sap.mw.jco.;

^

D:/usr/sap/X3A/DVEBMGS31/j2ee/cluster/server0/./temp/classpath_resolver/Map370955f0cc2311d8959a00d0b77fc64c/source/com/sap/xi/tf/_gwMsgRFC_msg_.java:30: package JCO does not exist

Regards

Jayanthan

Accepted Solutions (0)

Answers (2)

Answers (2)

franz_forsthofer
Employee
Employee
0 Kudos

Hallo Jayanthan,

I guess you have XI3.0;

please check OSS 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.

Other terms

Mapping, JCO, logging, XML tools, compilation

Reason and Prerequisites

You must specify the libraries in the class path of the compiler.

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 this does mean you have to import the jar jrfc.jar which you find in the path

[j2ee engine instalation directory]\cluster\server0\bin\ext\com.sap.mw.jco.

Regards Franz

former_member189324
Contributor
0 Kudos

Hi Jayanth,

Did you import the file to XI correctly as an Archive zip?????

Regards

Prasad

SAP Netwaver RIG-XI

SAP Labs LLC, USA