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 overflow in get run time field

hnguyen_kinaxis
Explorer
0 Likes
1,258

Greetings,

It appears that the ABAP command get run time field fname returns an integer value in microseconds. The first get run time initializes fname. Subsequent get run times get overflow if the application run time is over 75 minutes (4500000000 microseconds).

I have declared fname as P DECIMALS 0 but it still gets overflow.

Is there anyway to overcome this? Can we initialize run time more than once to avoid overflow?

Thanks,

Hung Nguyen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
991

Use GET TIME instead.

Rob

Use GET TIME instead.

Rob

3 REPLIES 3
Read only

Former Member
0 Likes
992

Use GET TIME instead.

Rob

Read only

0 Likes
991

Thanks, I should use GET TIME in this case.

Read only

Clemenss
Active Contributor
0 Likes
991

Hung Nguyen,

as Rob recommends: For a runtime of more than an hour microseconds may not be required. If you want to use get run time, a type F field may eventually help - although you may loose some accuracy it should not lead to overflow.

Regards,

Clemens