Skip to content

Instantly share code, notes, and snippets.

@zhjuncai
Created August 7, 2013 03:20
Show Gist options
  • Save zhjuncai/6170905 to your computer and use it in GitHub Desktop.
Save zhjuncai/6170905 to your computer and use it in GitHub Desktop.
Demostrate how to get timestamp in ABAP and setup timezone
*&---------------------------------------------------------------------*
*& Report Z_TIMSTAMP_DEMO
*&
*&---------------------------------------------------------------------*
*& Demostrate how to get timestamp in ABAP and setup timezone
*&
*&---------------------------------------------------------------------*
REPORT Z_TIMSTAMP_DEMO.
DATA: ts TYPE timestampl,
output TYPE string.
GET TIME STAMP FIELD ts.
" TIMEZONE must be 6 character long, kind of stupid.
output = |{ ts TIMESTAMP = ISO TIMEZONE = 'UTC+8 ' }|.
WRITE / output.
@nurulhasni
Copy link

ckckckck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment