Advertisement
Guest User

Untitled

a guest
Mar 14th, 2017
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.43 KB | None | 0 0
  1. data: Start__Time type sy-uzeit.
  2. data: End__Time type sy-uzeit.
  3.  
  4. If sy-uzeit < 14400.
  5.  
  6. *Sets time to zero for four hours
  7.   Start__Time = 0.
  8. *Number of seconds in a day, minus 1
  9.   End__Time = 86399.
  10.  
  11. Else.
  12. *Sets start to four hours earlier and end to now
  13.   Start__Time = sy-uzeit - 14400.
  14.   End__Time =  sy-uzeit.
  15. Endif.
  16.  
  17. l_t_range-sign = 'I'.
  18. l_t_range-option = 'BT'.
  19. l_t_range-low = Start__Time.
  20. l_t_range-high = End__Time.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement