cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a User Defined Funtion

Former Member
0 Kudos

Hi

How to create a user defined funtions.. i need a complete example of user defined fution

Thanks & Regrads

Ravi Shankar B

Accepted Solutions (0)

Answers (2)

Answers (2)

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Ravishankar,

check this forum which helps u

Regards

Sridhar

Former Member
0 Kudos

Hi,

In Message Mapping Editor at lower-left hand (bottom) you can see a button to write function. You can write simple as well as advanced functions with defining number og args and all.

Import Java packages if required,

e.g. sap.xi.mytools.; sap.xi.myutils.;

Do not need to import java.lang., java.io. and java.lang.reflect.*

EXAMPLE OF SIMPLE FUNCTION

public String chVal(String a, Container container){

if(a.equals("Private"))

return "P";

else

return "B";

}

-NILKANTH.