ā2013 Apr 16 4:52 AM
Hi All ,
I have field UTCTIME in table SRGBTBREL .
in Selection screen i'm entering date and time depending on selection criteria it should display value in grid .
in table date and time is stored as 20,130,205,055,431 format .
can any one tell me how to convert date(YYYYMMDD) and time(HH:MM:SEC) from selection screen to above format mentioned in table .
ā2013 Apr 16 5:21 AM
ā2013 Apr 16 5:26 AM
You can use FM OIL_DATE_TO_TIMESTAMP. Just pass date and time. It will give ypou time stamp in reuired format.
ā2013 Apr 16 5:47 AM
Hi Smitha,
Try the following code:
DATA: time_stamp TYPE timestamp,
dat TYPE d,
tim TYPE t,
tz TYPE ttzz-tzone.
tz = 'INDIA'. "Time Zone
dat = '20030309'. "Date
tim = '013000'. "Time
CONVERT DATE dat TIME tim
INTO TIME STAMP time_stamp TIME ZONE tz.