cancel
Showing results for 
Search instead for 
Did you mean: 

Create cust. functn?

Former Member
0 Kudos

hi, Can anyone tel me how to create customer function,

Also I hav to import java package for that..

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>>Can anyone tel me how to create customer function

Are you talking about User Defined Functions in Message Mapping?

If so, have a look at this

http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm

By default, the following packages are imported

java.lang.*

java.util.*

java.io.*

java.lang.reflect.*

If you are using any other pakages in your function, you need to decalre them in the import section..

Regards,

Jai Shankar

Answers (3)

Answers (3)

Shabarish_Nair
Active Contributor
0 Kudos

In case of user defined functions (UDF), there are two types

1. simple - they expect string as input and return string as output.

2. advanced - they can take multiple inputs (all values from the context)

http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm

You can also import external jars for your UDF.

Former Member
0 Kudos
bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Your question is not very clear?

Can you please elaborate.

if you need to know how to create a Java User Defined Function, well its qutie simepl, click on user defined functions and then create a new one and write your code. Like any other java function.

If your question is whether you can invoke an external java class inside your User defined function. the answer is YES..!! Import the Class under imported archies in XI and then instantiate the class inside the UDF and then invoke its methods,

Regards,

Bhavesh