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

Time calculation

Former Member
0 Likes
359

I was doing an object of online examusing ABAP Module pool..

How to display the time remaining..

Example : 10 min is the total duration of test means we want to minus from the 10 min..

I

2 REPLIES 2
Read only

franois_henrotte
Active Contributor
0 Likes
335

time_10min = '001000'.

when you start, you do GET RUNTIME and store sy-uzeit in time_beg.

then each time you display remaining time, you do

GET RUNTIME.

remaining = time_10min - ( sy-uzeit - time_beg ).

Read only

Former Member
0 Likes
335

Hi,

Use the function module

SD_CALC_DURATION_FROM_DATETIME