*&--------------------------------------------------------------------
-*
*& Form GET-DATA
*&--------------------------------------------------------------------
-*
* text
*---------------------------------------------------------------------
-*
* --> p1 text
* <-- p2 text
*---------------------------------------------------------------------
-*
FORM GET-DATA.
SELECT * FROM ZTIME
INTO CORRESPONDING FIELDS
OF TABLE IZTIME.
ENDFORM.
" GET-DATA
*&--------------------------------------------------------------------
-*
*& Form CAL-TOT-TIME
*&--------------------------------------------------------------------
-*
* text
*---------------------------------------------------------------------
-*
* --> p1 text
* <-- p2 text
*---------------------------------------------------------------------
-*
FORM CAL-TOT-TIME.
LOOP AT IZTIME.
TOTTIME = TOTTIME + IZTIME-ZTIME.
ENDLOOP.
LOOP AT IZTIME.
N = IZTIME-ZTIME+0(2).
TOTHRS = TOTHRS + N.
ENDLOOP.
ENDFORM.
" CAL-TOT-TIME
*&--------------------------------------------------------------------
-*
*& Form WRITE
*&--------------------------------------------------------------------
-*
* text
*---------------------------------------------------------------------
-*
* --> p1 text
* <-- p2 text
*---------------------------------------------------------------------
-*
FORM WRITE.
DATA : HRS TYPE I, MIN TYPE I, SECS TYPE I.
LOOP AT IZTIME.
WRITE :/ IZTIME-ZTIME.
ENDLOOP.
SKIP 2.
HRS = TOTHRS.
MIN = TOTTIME+2(2).
SECS = TOTTIME+4(2).
Social Plugin