cancel
Showing results for 
Search instead for 
Did you mean: 

UDF Help

Former Member
0 Kudos

Hi All

I'm new to PI, and I'm interested in learning and creating UDF's.

Could anyone tell me what are the prerequisites to learn UDF in PI.

I know core java, I've seen few UDF snippets "collections" are included there. So what other topics are needed?

Any documents or links to UDF are appreciated.

Thanks & Regards,

Abhinaya

Accepted Solutions (1)

Accepted Solutions (1)

azharshaikh
Active Contributor
0 Kudos
Former Member
0 Kudos

Is it necessary to use java IDE to write UDF? My PI version is 7.3

azharshaikh
Active Contributor
0 Kudos

Hi,

You can write the UDF in your MM directly and do a syntax check  using F7....

However if you are writing a complex UDF, you can always code it in IDE (Eclipse tool) and also test it / debug if required..

Regards,

Azhar

iaki_vila
Active Contributor
0 Kudos

Hi Abinaya,

In your PI version is not necessary, you can develop your java code directly in the ESR, check Sunil Chandra's blog

However, if you want to debug the code you only have the possibility to add trace.addLog in your code, if you want a relevant debug environment you will need an external IDE and to download the PI API (aii_map_api.jar) for your PI version in local. This wiki can be helpful Where to get the libraries for XI development - Process Integration - SCN Wiki


Hope this helps.


Regards.

Former Member
0 Kudos

That link will definitely help me a lot!! Thank yo and . Which all topics in JAVA I should be knowing to write UDF? I know Core Java.

azharshaikh
Active Contributor
0 Kudos

Hi Abinaya,

Basic knowledge of Java is sufficient since you already have a coding background. You need to understand commonly used functions in UDFs and standard java APIs.

Please refer similar queries for further details:

Regards,

Azhar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You may find a lots of help from SCN and help.sap.com by using a simple search.

To start with here are few url's which would help you.

http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=79954137

User-Defined Functions - Managing Services in the Enterprise Services Repository - SAP Library

Thanks,

Sudhansu

iaki_vila
Active Contributor
0 Kudos

Hi Abinaya,

For UDF development you need to know a bit of JAVA and later you need to know how PI mapping works with the queue and context terms.

To develop UDF you can check these links:

User-Defined Functions and Function Libraries - SAP NetWeaver Process Integration - SAP Library

UDF Execution Type - Context and Queue. - Process Integration - SCN Wiki

If you search by SCN or google you can find more links quickly.

Regards.