on 12-15-2015 7:03 AM
Hi Experts,
I have a requirement in which i need to put minus sign as prefix.
For e.g. If the input is like 234756- , than my output would be with minus sign in front rather than back like -234756.
Can you please help on how to achieve this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eng,
Better to put this in UDF because this is a common requirement when we work with IDOCs, because from ERP the minus sign is placed in right side of the amount.
In my project i have created the UDF for this in common function library under common software component and i used it in the all the mappings where i need this requirement.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is easily done so I won't bother putting the logic for it. Basically check if the input "endsWith" a minus sign, if yes, then replace the minus with a blank and concatenate it with a minus prefix.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
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.