03-28-2008 4:04 AM
hi,
there is one auto increament number.
its displayed like 1, 2, 3..................
but i want to display 01, 02, 03.................
i tried with int as well as char having length 3.
but not showing.
can any one help me?
thanks
Santosini
03-28-2008 4:12 AM
Hi,
check this Function module in SE37
CONVERSION_EXIT_ALPHA_INPUT
it will return the value in ur required format
reward if useful
~Lakshmiraj~
03-28-2008 4:07 AM
Hi,
declare it as type n ........
data v_num(3) type n.
Cheers,
jose.
03-28-2008 4:08 AM
Hi,
TCODES SNRO
FUNCTION MODULE
NUMBER_GET_NEXT
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = '01'
object = 'ZGPNO' "SNRO OBJECT NAME
importing
number = gexno
exceptions
interval_not_found = 1
number_range_not_intern = 2
objec
t_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
others = 8.
Regards,
V.Balaji
Reward if Usefull...
03-28-2008 4:09 AM
HI, you can try this.
data: l_out(2) type n.
l_out = sy-index.
write: /l_out.
03-28-2008 4:12 AM
Hi,
check this Function module in SE37
CONVERSION_EXIT_ALPHA_INPUT
it will return the value in ur required format
reward if useful
~Lakshmiraj~
03-28-2008 4:13 AM
Hi,
data num(2) type n.
num = 1.
do 5 times.
write :/2 num.
num = num + 1.
enddo
03-28-2008 4:29 AM
i am using this autoincreament number in a table of smartform.
how i will define the lenghth like sl_no(3) type n.
03-28-2008 4:37 AM
Use pack & unpack
data: vno(2),
vno1(2).
vno1 = vno1 + 1.
unpack vno1 to vno1.
Hope u'll problem will be resolved
Edited by: ABHUT on Mar 28, 2008 10:10 AM
03-28-2008 4:41 AM
03-28-2008 4:41 AM
Use pack & unpack
data: vno(2),
vno1(2).
vno1 = vno1 + 1.
unpack vno1 to vno1.
Hope u'll problem will be resolved
03-31-2008 5:26 AM
thanks, its been solved.
i used this FM
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = sl_no
IMPORTING
OUTPUT = i.
and got my req. output.
thank you very much.