Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Test for Numeric Value

Hi All,

Quick question! is there a way to test for Numeric value in the Graphical mapping?

Thank you in Advance,


Former Member
Former Member replied


There is no way to check for numeric characters in Graphical Mapping.You can use this UDF for the same.Also you need not import any class for this.

function IsNumeric(strString)

// check for valid numeric strings


var strValidChars = "0123456789.-";

var strChar;

var blnResult = true;

if (strString.length == 0) return false;

// test strString consists of valid characters listed above

for (i = 0; i < strString.length && blnResult == true; i++)


strChar = strString.charAt(i);

if (strValidChars.indexOf(strChar) == -1)


blnResult = false;



return blnResult;



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question