cancel
Showing results for 
Search instead for 
Did you mean: 

user-defined function(java)

Former Member
0 Kudos

hi expects,

how to write user defined finction in javain meesage mapping.please help me.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Rohit,

Use an IDE to develop a JAVA class and archive the file.Upload the archived file in to XI with the option "IMPORTEDARHIVES" available in IR.The uploaded function can be seen in the Message mapping editor.

Thanks &Regards,

Kiran.

former_member529475
Active Contributor
0 Kudos

Hi Rohit,

In order to create UDFs, you need to have a basic idea about using Core Java. Also, based on the kind of functonality of the code, you will need to know if you require any extra jar files.

To create a UDF, all you need to do is click on LHS icon in the graphical mapping editor. Also, keep in min that the input and otput of a udf is always in strings.

To test your functions, you can either use the test tab present in the mapping editor or you can even use the following editor(blog by Sravya):-

/people/sravya.talanki2/blog/2006/07/24/integrating-java-editor-in-xi-integration-stack

I think info will be enough for you to start off with creating and using UDFs:)

This link for User Defined Functions,

http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm

Writing use defrined functions in XI is quite simple. Create a simple UDF, give the import parameters and then just go ahead with the logic coding and then return the output from the UDF.

Just remember that all inputs and outputs to an UDF are always Strings.

Cheers...

Vasu

<b>** REward Points if found useful **</b>

santhosh_kumarv
Active Contributor
0 Kudos

Hi

In the message mapping editor to the left of the node function u will find a "create new function" button. Click on that button name u UDF and insert ur code in it.

Regards

Santhosh

Former Member
0 Kudos

Hi

Go through this

http://help.sap.com/saphelp_erp2005/helpdata/en/45/244c40aa6a0272e10000000a155106/frameset.htm

/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi

http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm

/people/vijayasarathy.raghunathan/blog/2005/12/28/java-editor-inside-abap

/people/sravya.talanki2/blog/2006/07/24/integrating-java-editor-in-xi-integration-stack

/people/stefan.grube/blog/2005/12/30/test-user-defined-functions-for-the-xi-graphical-mapping-tool-in-developer-studio

http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm

Thanks