2006 Oct 23 1:38 PM
Hello all ,
Does anybody know any function module to put leading zeros to an alphanumeric sequence (18 characters)?
Example : 12wer should be '000000000000012wer'
CONVERSION_EXIT_ALPHA_INPUT only works with numbers.
Thanks in advance ,
Snehal
Hello all ,
Does anybody know any function module to put leading zeros to an alphanumeric sequence (18 characters)?
Example : 12wer should be '000000000000012wer'
CONVERSION_EXIT_ALPHA_INPUT only works with numbers.
Thanks in advance ,
Snehal
2006 Oct 23 1:40 PM
2006 Oct 23 1:42 PM
U can use the below code.
data : lcons(18) type c value '000000000000000000',
lstring(36) type c.
==>lval is your value.
concatenate lcons lval to lstring.
write lstring(18) to lval.
2006 Oct 23 1:52 PM
Hi Snehal,
<pre>
shift [field] right deleting trailing ' '.
replace ' ' in [field] with '0'.
</pre>
OK?
Regards,
Clemens
2007 Mar 30 10:41 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |