on 2007 May 02 11:30 AM
Hi,
I need to convert an integer to a 10 digit character.Could you help me to know how I could do it?
e.g. if the integer is 6000034, the converted value must be 0006000034.
I need to have the leading zereos.
Thanks,
Sandeep.
Request clarification before answering.
Hi sandeep,
the following code snippet solves ur problem.
data : abc type i value 6000034,
abc1(10) type c.
abc1 = abc.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = abc1
IMPORTING
OUTPUT = abc1
.
abc1 has ur required output.
please reward if helpful.
regards,
Ravi G
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.