on 11-12-2013 8:36 AM
Hi Experts,
I have an scenerio where sender is sending the value for Qty(quantity) field as 000056.765kg and Receiver is expecting the value to come in 56.765kg.
How to do this in mapping.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have a Standard function available in the Message mapping.
Its FormatNumber use it with the value ##.##
that will give you the necessary output.
mvh
Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
You can write a simple udf to remove the leading zeroes in this case:
int c = 0;
char[] arr = qty.toCharArray();
for(int i = 0; i < arr.length; i++) {
if(arr[i] != '0') {
c = i;
break;
}
}
qty= qty.substring(c);
return qty;
Hope this helps!!!
Regards,
Anurag Mahendru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.