Created
August 7, 2013 03:20
-
-
Save zhjuncai/6170905 to your computer and use it in GitHub Desktop.
Demostrate how to get timestamp in ABAP and setup timezone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*&---------------------------------------------------------------------* | |
*& 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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ckckckck