‎2006 Nov 17 2:08 PM
Hi,
i want to append zeros to my sales order no. what function I should use.
i.e. I have enterd 5500001 then I want to convert it into 0005500001
if I have entered 1 then i wnat to convert it into 0000000001
Regards
Hemant
‎2006 Nov 17 2:15 PM
Hi,
try to use the below code....
if not v_vbeln is initial.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = v_vbeln
IMPORTING
OUTPUT = v_vbeln.
endif.
Madhavi
‎2006 Nov 17 2:10 PM
hi Hemanth,
Use FM <b>CONVERSION_EXIT_ALPHA_INPUT</b>
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_list '' 55
IMPORTING
OUTPUT = lv_list ''0055
.Regards,
Santosh
‎2006 Nov 17 2:10 PM
Hi
Use
<b>CONVERSION_EXIT_ALPHA_INPUT</b>
Or
<b>CONVERSION_EXIT_ALPHA_OUTPUT</b>
<b>Ex
CALL CONVERSION_EXIT_ALPHA_INPUT
importing
INPUT = '1'
exporting
output = output</b>
write: output.
Regs
Manas Ranjan Panda
Message was edited by:
MANAS PANDA
Message was edited by:
MANAS PANDA
‎2006 Nov 17 2:14 PM
Use FM CONVERSION_EXIT_ALPHA_INPUT.
Best Regards,
Vibha
*Please mark all the helpful answers
‎2006 Nov 17 2:15 PM
Hi,
try to use the below code....
if not v_vbeln is initial.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = v_vbeln
IMPORTING
OUTPUT = v_vbeln.
endif.
Madhavi
‎2006 Nov 17 2:15 PM
You can use this FM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = input
IMPORTING
OUTPUT = output
Note: The length of the field should be the output length that you want with zeroes
‎2006 Nov 17 2:28 PM
Hi,
you may either use the FM for that as given in replies
Or
use UNPACK command for that.
Regards,
Amit