Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

alpha numeric value.

Former Member
0 Likes
1,868

hi experts..

i am new for abap..

how to increment alpha numeric value..

8 REPLIES 8
Read only

Former Member
0 Likes
1,414

Hi


DATA : lv_number TYPE i.

lv_number = lv_alpha_num.
ADD 1 TO lv_number.
lv_alpha_num = lv_number.

Pushpraj

Read only

0 Likes
1,414

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

Read only

0 Likes
1,414

Hi

But alphanumeric doesnn't contain A, B, C, etc.

DATA lv_num_aplha TYPE n.

Read only

former_member222860
Active Contributor
0 Likes
1,414

Hi

DATA: COUNT TYPE N.

COUNT = 0.
DO 10 TIMES.
COUNT = COUNT + 1.

WRITE:/ COUNT.
ENDDO.

Read only

Former Member
0 Likes
1,414

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.

Read only

0 Likes
1,414

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.

Read only

0 Likes
1,414

Hi,

Here's the similar thread of ur requirement

Cheers\

Mahesh

Read only

Former Member
0 Likes
1,414

thanks