Friday, March 24, 2017

System Fields / Time Fields


SYST - ABAP System Fields

Sy-subrc  - Checking the rightness of a Statement
= 0 ; Success
= 4 ; Record Not Found

TimeZone
sy-timlo - Gives the timezone of the user : EST, CST 

Date
Sy-datum - Gives local date of the user

Time 
SY-UZEIT - Gives in Local time of the user

Getting Timestamp
lv_sys_timestamp TYPE timestampl.  -- Gives Timestamp with millisecods
lv_tstamp TYPE TZNTSTMPS            -- Gives Timestamp with YYYYMMYYHHMMSS

GET TIME STAMP FIELD lv_sys_timestamp.
This gives the timestamp in UTC format.

No comments:

Post a Comment