cancel
Showing results for 
Search instead for 
Did you mean: 

User Defined Function

Former Member
0 Kudos

Hi Folks,

    Basically I am a PI consultant from the ABAP background. I really find it difficult when it comes to a UDF scenario or say I just don't know what to do in that case. Can somebody let me know about some good blogs where I can educate myself on UDFs. FYI I have already followed the below Blogs & wikis which I feel didn't help me much as I don't know the starting point.

http://scn.sap.com/people/william.li/blog/2008/01/02/sap-pi-71-mapping-enhancements-series-share-use...

http://wiki.sdn.sap.com/wiki/display/XI/User+Defined+Function's+Part+1

Regards,

  Santosh

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

it's good you want to learn something new

I'd start with doing some java collections (book or tutorial pages):

http://www.tutorialspoint.com/java/java_collections.htm

with collections you will be able to do 95% of all difficult UDFs I believe,

Regards,

Michal Krawczyk

Answers (4)

Answers (4)

iaki_vila
Active Contributor
0 Kudos
baskar_gopalakrishnan2
Active Contributor
0 Kudos

Can somebody let me know about some good blogs where I can educate myself on UDFs ?

One thing for sure, you can go through java String class and familiar with all the String class methods. You would understand more and you will know how the standard graphical functions are implemented. The same will be useful for writing UDFs.

http://docs.oracle.com/javase/6/docs/api/java/lang/String.html

You will also focus on converting dates to string and string to date.  please search java.util package.

http://docs.oracle.com/javase/6/docs/api/java/util/package-summary.html

Plus as Michal suggested collection classes are useful for handling contexts. and large volume of data . (like arrays, hashtable(key,value) , Lists, Sort etc).

Learn from the same above java.util. package link

You can also google for code samples. You will find plenty of examples.

hope that helps

former_member184789
Active Contributor
0 Kudos

Hi,

The below link could also be of help:

http://sappivnr.blogspot.in/2011/12/java-functions-in-xi.html

Muniyappan
Active Contributor
0 Kudos

Dear Santosh,

as mentioned by michal you need java knowledge to write udf.

follow those to learn java.

if you want to start from very basic mapping then udf you can follow this also.it helped me a lot.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c...

below are for advanced one.

http://scn.sap.com/people/rohit.kalugade/blog/2008/12/08/context-and-queue-in-message-mapping-udf

http://scn.sap.com/people/rohit.kalugade/blog/2009/02/09/context-and-queue-in-message-mapping-udf-pa...

if you have eclipse or nwds you can first practice very simple functions like adding two numbers and returning it.manipulating strings.etc.

it will be easy as you are from ABAP background.

Regards,

Muniyappan.