cancel
Showing results for 
Search instead for 
Did you mean: 

Call methods in a UDF

Former Member
0 Kudos

Hi SDN,

I just want to call a Java method in my UDF.

How can I do ?

Please reply me...

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Thx a lot SDN

Former Member
0 Kudos

Hi S.P

Stefen already answered this

Its simple

Just bring the java class/package as imported archives(zip/jar) and import the definition while creating the UDF. Thats it !!!

Thanks

Gaurav

Former Member
0 Kudos

Look at the below blog where RFC lookup method is called from UDF.

chirag

Former Member
0 Kudos

Hi,

You can follow these steps:

1. Write your library functions class into any Java IDE(for that you need to download the api aii_map_api.jar[Contact with basis team to get this library]).

2.Compile your classes into a jar file.

3. go to the Integration Repository and create a new Imported Archives(inside Mapping Object), the choose you jar file. finally save and active the object.

4.Now you are able to use the classes and their method inside you UDF. for that You need to import the namespace of where your class is.

5. Use you class and methods as you want.

I hope It helps you. If you have any doubt, contact me.

BRegards

Ivan

stefan_grube
Active Contributor
0 Kudos

- upload the library as external definition

- ínsert an import statement at the top of the UDF

- use the method as usual