cancel
Showing results for 
Search instead for 
Did you mean: 

replace Fixvalue function with a JAVA UDF

Former Member
0 Kudos

Hi,

I need to replace the fixvalue standard function by an UDF, is there anyway to fulfil this requirement?

thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Hakimos.

public String fixValueUDF(String a,Container container)

{ /start/

if ( a.equals("1"))

{

return "One";

}

else if ( a.equals("2"))

{

return "Two";

}

else

{

return "Null";

}

} /End/

Hope this help You.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>is there anyway to fulfil this requirement?

yes of course - why not ?

just use java if statements...

Regards,

Michal Krawczyk

Former Member
0 Kudos

i mean somrthing that looks like XIVMService.executeMapping

stefan_grube
Active Contributor
0 Kudos

> i mean somrthing that looks like XIVMService.executeMapping

Here is the API:

http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/value/api/XIVMService.html

Check if you can use it.

former_member518917
Participant
0 Kudos

[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5?quicklink=index&overridelayout=true]

This blog may help.

Former Member
0 Kudos

Hi,

You can use if.. else if.. else statements in Java UDF to replace the fixedvalues standard function.

Regards,

Subbu