cancel
Showing results for 
Search instead for 
Did you mean: 

existance of decimal point in String using UDF

Former Member
0 Kudos

hi,

How would i know the existance of decimal point in String using UDF in SAP XI message mapping?

Regards,

Sanghamitra

Accepted Solutions (0)

Answers (2)

Answers (2)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

You can also use str.indexOf(".") to check for the occurrence of a string.

Regards,

Mark

former_member854360
Active Contributor
0 Kudos
public String calculate(String var1, Container container) throws StreamTransformationException

{
Boolean b=var1.contains(".");

if(b)
{

return "true";
}
else
{
return "false";
}
}

Also using standard function IndexOf you can achive this.