‎2009 Feb 25 8:27 AM
hi experts..
i am new for abap..
how to increment alpha numeric value..
‎2009 Feb 25 8:29 AM
Hi
DATA : lv_number TYPE i.
lv_number = lv_alpha_num.
ADD 1 TO lv_number.
lv_alpha_num = lv_number.
Pushpraj
‎2009 Feb 25 8:42 AM
but what do u mean by 'lv_alpha_num'.
and in case of alpha numeric 0,1,2,3,4,5,6,7,8,9 and after 9, 'A' should come.
how to do that.
Edited by: SAP ABAPER on Feb 25, 2009 9:43 AM
‎2009 Feb 25 8:56 AM
Hi
But alphanumeric doesnn't contain A, B, C, etc.
DATA lv_num_aplha TYPE n.
‎2009 Feb 25 8:37 AM
Hi
DATA: COUNT TYPE N.
COUNT = 0.
DO 10 TIMES.
COUNT = COUNT + 1.
WRITE:/ COUNT.
ENDDO.
‎2009 Feb 25 9:04 AM
Hello, do like this
data: lv_count type i. " define a parameter(alfanumeric)
<id u want to increase the parameter value>
<u cad in diff statments>
DO 5 times.
lv_count = lv_count + 1.
enddo.
Or in Loops
LOOP itab
lv_count = lv_count + 1.
.......
ENDLOOP.
Regards.
‎2009 Feb 25 9:45 AM
see if i have '12345'.
i want to increment it...
till '12349' i can increment easily, but when '9' will come at last position i want 'A' there..means '1234A'..
and i want to increment '1234A' as '1234B', '1234C' ..D,,E,,till Z.
how to increment A to B.
‎2009 Feb 25 9:52 AM
‎2009 Apr 28 7:22 AM