‎2008 Dec 19 3:02 PM
Hi,
How does FM Determine how many leading 0's to add coz I dont see an import export param for that.
I have a field which is char(17). Now from the input field value I want to add leading 0's.
How can this be done? Please advice.
Thanks,
CD
‎2008 Dec 19 3:05 PM
it will always add so many, that the field will be to its full length. in the specific case the field will be 17 characters long, so if currently contains 123, than it will get 14 zeros
‎2008 Dec 19 3:05 PM
hi there
ur field is 17 charac .. think you have 4 charracters input the rest will be filled by zeros...
17 - 4 = 13 no. of zeros.
writing a small sample code.. would have been more useful to u..
Edited by: J@Y on Dec 19, 2008 10:05 AM
‎2008 Dec 19 3:05 PM
it will always add so many, that the field will be to its full length. in the specific case the field will be 17 characters long, so if currently contains 123, than it will get 14 zeros
‎2008 Dec 19 3:11 PM
Why Don't you bother to read Documentation of FM?
Well enough information with good example is already there!!
Example:
(Input field and output field are both eight characters in length)
1. '1234 ' --> '00001234'
2. 'ABCD ' --> 'ABCD '
3. ' 1234 ' --> '00001234'