on 07-23-2010 7:27 AM
Hi All,
Is there any node function for converting the string to number?
Do I need to write the UDF for that ?If so,then please provide me the UDF for that.
Thanks in advance
There is no standard function. Write a UDF
MyNumber = Integer.parseInt(MyString);
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have used this UDF for converting string to integer, use this according to ur requirement:
Input Variable = String input
input=input.replaceAll(" ","");
// checking for null or spaces,if found return 0
if ((input.length() == 0) || ( input == "") )
return ""+0;
else{
Integer x = new Integer(input);
return x.toString();
}
Thanks
Amit
as prateek mentioned search in sdn for to know how to write UDF... there are many documents available on the same topic if you read those documents in future it will help you to write UDF easily.
pass one argument , select value,
there is concept when we seelct value , context and queue...
feel free to seach in sdn..
Regards,
Raj
Hi Shweta,
Create simple type UDF and input parameter is one, give that name (Ex: Str, so you need to give only one input value and you will get one output value)
write this code
return Integer.parseInt(Str);
Check this links about the all types of UDFs
http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/frameset.htm
/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
/people/venkat.donela/blog/2005/06/09/introduction-to-queues-in-message-mapping
Regards
Ramesh
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.