Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Convert TimeStamp?

Former Member
0 Kudos

Hi Guys,

Can anybody tell me how to convert Time Stamp Filed into Time Format?

I donnot know what is Time Stamp Field?Can anybody explain me and tell how to convert?

Thanks,

Gopi.

4 REPLIES 4

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check this weblog perhaps it may help.

/people/horst.keller/blog/2004/11/29/abap-geek-8-150-summertime-blues-133

Regards,

Ferry Lianto

0 Kudos

Hi Ferry,

In COEP table there is a filed called TIMESTMP and the value is like this 5,206,199,010,000.How to intepret and convert this.

But the link which u send and the format of that explained TIMESTAMP is YYYYMMDDHHMMSS.

can u explain me how to solve this becoz i think both are not same?

Thanks,

Gopi.

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this FM RKE_TIMESTAMP_CONVERT_OUTPUT (Convert GMT to local time/date).


  ...
  
  move COEP-TIMESTMP to timestmp.
  
  CALL FUNCTION 'RKE_TIMESTAMP_CONVERT_OUTPUT'
       EXPORTING i_dayst    = sy-dayst
                 i_tzone    = sy-tzone
                 i_timestmp = timestmp
       IMPORTING e_date     = wa_date
                 e_time     = wa_time.


  write: / wa_date, wa_time.

Regards,

Ferry Lianto

0 Kudos

It is work!

Thank you Ferry Lianto