on 03-03-2008 6:09 PM
Can anyone tell me how we can import a .class file written in NDS into the import parameters of User Defined Functions in XI ?
Hi,
for importing if your class name is Abc
in the package com.company then type
import com.company.Abc;
While importing in the Imported Archives make sure the jar created by you has the .project and .classpath files also in it..
Reward if useful.
Edited by: Fariha Kazi on Mar 4, 2008 11:23 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Prashanth,
First ensure that ur .class file is getting compiled and executed fine.
Check if there r any syntax errors in the file.
Then add it to a .zip file.
Import it to ur imported archives in IR.
After that call it from ur UDF using ur package and the class name.
Eg: Packagename.classname;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Prashant,
First of all you need to zip the class file and import it into Imported Archives. Now in the UDF you can call it. If it has class name say MyownClass
then in UDF import section give it as MyownClass
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys,
i created a zip file of all the files alon with the class file...
imported it in Imported Archive ...
the file name is "writesplit.zip".
In the UDF i imported it as writesplit; and am getting the following error.
Source code has syntax error: D:/usr/sap/PI7/DVEBMGS01/j2ee/cluster/server0/./temp/classpath_resolver/Map7b55e690e96811dca799000e7f303916/source/com/sap/xi/tf/_MM_CannonicalToWRITE6Split_.java:3: '.' expected import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.;import writesplit;import java.io.; ^ 1 error
Prashant,
What is the name of your class file? I asked u to give the class file name in import section, not the Imported archives name.
To make it more clear, let say you create java program whose name is MyFirstClass.java , after you compiled it you might have got MyFirstClass.class file.
Now zip the MyFirstClass.class file and name it as your wish, let say StringSplit.zip. Import into ImportedArchives.
Now in the UDF you need to give. - MyFirstClass that's it.
Not import MyFirstClass
raj.
Hi,
I am getting below error,
D:/usr/sap/PI7/DVEBMGS03/j2ee/cluster/server0/./temp/classpath_resolver/Map1a6bf613eeb011dc9b6200137254e21e/source/com/sap/xi/tf/_MM_RFCLookUP_Material_.java:3: '.' expected
import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.*;import LookupHandler;
even after uploading corresponding class file.
Any inputs?
Thanks,
Vijay Kuma T.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.