cancel
Showing results for 
Search instead for 
Did you mean: 

How to share java user defined function in graphical mapping XI 3.0?

Former Member
0 Kudos

I want to use the same java user defined function in graphical message mapping in XI 3.0. I tried to search but found that it's is only possible in PI 7.1 using "Function Library" ( /people/william.li/blog/2008/01/02/sap-pi-71-mapping-enhancements-series-share-user-defined-functions ).

But I have not PI 7.1. I have only XI 3.0.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You cannot share the JAVA UDF in XI 3.0, as rightly said this functionality is available with PI 7.1.

There is no other way, but you have to create the UDF for the other mapping again.

If the entire message mapping is same, then make it dependable for both the SWCV using Dependency concept in SLD.

-Supriya.

Former Member
0 Kudos

Thank you. I need not to copy entire message. I need to change only 1 field in big message. But I need to write my function only once and use it in many mappings. And in case of changes of my function I don't want to copy it in every mapping where I use it.

stefan_grube
Active Contributor
0 Kudos

When your UDF is complex, you can write a Java class and upload this as imported archive.

But you have to create a UDF to call this class anyway.

A trick is creating a mapping template for one element and add all UDFs here. Then you can apply that template to all mappings and can use the UDFs there. But as all UDFs now are locally, a change in them would not have impact to other mappings.

Former Member
0 Kudos

Thank you for interesting answer but it don't solve the question.

stefan_grube
Active Contributor
0 Kudos

The answer to your question is:

This is not possible.

Answers (1)

Answers (1)

Former Member
0 Kudos

The answer is "It's impossible. Be patiant and copy your function manually or use PI 7.10"