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.
Hello,
Use this sample.
DATA: CHAR TYPE I.
DATA: OUTPUT(10).
CHAR = 6000034.
WRITE: CHAR TO OUTPUT.
TRANSLATE OUTPUT USING '. '.
CONDENSE OUTPUT NO-GAPS.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = OUTPUT
IMPORTING
OUTPUT = OUTPUT.
WRITE: OUTPUT.
REgards,
VAsanth
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 | |
| 4 | |
| 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.