2008 Jan 16 12:51 AM
Hi,
Can anyone please provide a Function that will do the following:
1. Take the value of the field
2. Take the field type
3. Output the value of the field with leading zero's.
Anything similar would be very helpful.
Thank You & Best Regards,
John
Sure use the function CONVERSION_EXIT_ALPHA_INPUT, this will add leading zeros to a character based field of any length.
data: lv_c(10) type c value '123'.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = lv_c
importing
output = lv_c.
write:/ lv_c.
Regards,
Rich Heilman
2008 Jan 16 1:02 AM
2023 Oct 20 11:21 AM
2008 Jan 16 4:45 AM
CONVERSION_EXIT_ALPHA_INPUT will serve ur purpose..
data:
f1 type char10.
f1 = 789.
passing f1 to CONVERSION_EXIT_ALPHA_INPUT will give you output as 0000000789.
2023 Nov 01 6:52 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |