on 04-04-2017 2:23 PM
Hi SCN users,
I have to send the value 2250420.00 AUD from source field to target side by removing AUD. I know i can use replace string but there are other currencies also which is coming as input apart from AUD .
So overall I need to remove whatever characters are coming like AUD ,USD,etc.
To achieve this what is to be done at mapping Level.
Need help . Can anyone help me on this.
Thanks
SARIKA
Glad that it's working.
Regards
Baski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarika,
Adding to what Evgeniy, check if you need to do any rounding up as well.
Regards,
Sanjeev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now the requirement is slightly changed.
I have to send the value 2250420.00 AUD removing AUD. I know i can use replace string but there are other currencies also which is coming as input apart from AUD .
So overall I need to remove whatever characters are coming like AUD ,USD,etc.
To achieve this what is to be done at mapping Level.
Thanks
SARIKA
Hi Sarika,
I could see there is a space occurring between the zeros after decimal and the currency character. If that's correct, you can use the below logic in UDF.
return(Input_String.split(" ")[0]);
Regards
Baski
Hi Sarika,
Did you test the logic?
It will not ignore all the characters in the input string. I will ignore only the characters occurring after space. Actually the logic is simple, just splits the input string using space as a separator and returns the first part. Refer the sample data below.
Input Output
2250420.00 AUD 2250420.00
123ABC USD 123ABC
Is this what you are looking for?
If not, clarify us about you requirement.
Hi Sarika!
If you need to remove decimal part if it has zero value you can reach it by using standard function replaceString in graphical mapping. Just replace ".00" with "".
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.