on 02-02-2006 6:16 PM
Hi
Can any one tell me
there is a mapping field which will fill prefix as ZEROs.
For ex:
Gl Code coming from source : It is dynamically change based on transaction. sample Gl codes:
12001, 23001,4511
In traget side i shoud map this field followed by zeros.
Total string length is 10.
so according to GLcodes i should fill zeros as prefix in target field mapping?
I'm doing graphical mapping..but i'm unable to do it..!
please give me ur suggestions..
thank u
regards
rambarki
hi,
write a simple userdefined function: prefixZeros
int maxlength = 10;
for( int i = 0 ; a.length() < maxlength ; i++ )
a = "0" + a;
return a;
if you pass 11 it will return 0000000011
cheers,
Naveen
Message was edited by: Naveen Pandrangi
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.
try using the standard function "FormatNum" it is an arithmetic function...
it has to be given the property '0000000000' - 10 zeroes....so the total length of the output would be 10 with padded zeroes as you require...
Thanks,
Renjith
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 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.