SAP ABAP WAIT 小数秒

DATA: l_time_stamp TYPE timestampl,
      l_interval   TYPE f,
      l_new_time   TYPE timestampl.
l_interval = '.2'.
GET TIME STAMP FIELD l_time_stamp.
WRITE: / l_time_stamp.
l_new_time = l_time_stamp + l_interval.
DO.
  GET TIME STAMP FIELD l_time_stamp.
  IF l_time_stamp >= l_new_time.
    EXIT.
  ENDIF.
ENDDO.
WRITE: / l_time_stamp.
WRITE: / 'waited for 200 millisecond'.

你可能感兴趣的:(SAP ABAP WAIT 小数秒)