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: 

Need to convert current date and time into COEP-TIMESTMP format

Former Member
0 Kudos

Hi Experts,

I need to compare whether COEP-TIMESTMP GE Last program run.

The last program run is captured using sy-datum and sy-uzeit. Now i need to convert this into the format of COEP-TIMESTMP ( eg. 5.494.232.400.000 - Time created (Greenwich Meantime) representing "Seconds since 1.1.1990,0:00 GMT * 10000" )

I tried many ways but unable to find the right solution for converting sy-datum and sy-uzeit into Timestamp format of COEP.

Appreciate your help greatly and Thanks in Advance.

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check these FM.

RKE_TIMESTAMP_CONVERT_INPUT (Convert local time/date to GMT)

RKE_TIMESTAMP_CONVERT_OUTPUT (Convert GMT to local time/date)

Regards,

Ferry Lianto

2 REPLIES 2

Former Member
0 Kudos

Hi karsar,

1. we can use the syntax CONVERT to TIMESTAMP (see f1 help on convert command)

regards,

amit m.

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please check these FM.

RKE_TIMESTAMP_CONVERT_INPUT (Convert local time/date to GMT)

RKE_TIMESTAMP_CONVERT_OUTPUT (Convert GMT to local time/date)

Regards,

Ferry Lianto