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

integer counter giving error

Former Member
0 Likes
701

hi all,

I am using the following logic for counter:

data: count type i.

count = count + 1.

but when the value gets to double figures i.e. 10 for count then the count value becomes *. giving error at this stage.

Any suggestions. Thanks.

Regards,

FS

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
663

Define the Counter with numeric field.

Regards,

madan.

5 REPLIES 5
Read only

Former Member
0 Likes
664

Define the Counter with numeric field.

Regards,

madan.

Read only

Sm1tje
Active Contributor
0 Likes
663

works fine for me.

Is this the whole coding or anything left out? What error message are you getting?

Read only

Former Member
0 Likes
663

Hi,

I tried with this:I didn't get any error.

data: count type i.

Do 111 times.

count = count + 1.

enddo.

write:/ count.

Regards,

Shiva K

Read only

Former Member
0 Likes
663

Just u declare like this

data : lv_count(10) type c.

lv_count = lv_count + 1.

The problem will be solved.

Regards,

Lokesh

Read only

Former Member
0 Likes
663

thanks...