Application Development and Automation 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: 
Read only

time stamp conversion

Former Member
0 Likes
771

Hi,

Whether there is any FM to convert local time to GMT and vice versa.

Thanks in advance,

Message was edited by:

Srinath Srinivasan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
658

Hello,

The function module <b>IB_CONVERT_INTO_TIMESTAMP</b> is used to convert the time to the GMT. The input parameters are DATE, TIME and the TIMEZONE(user's time zone, default value SY-ZONLO). The output parameter is the timestamp in GMT.

Check out this link for a complete program on time zone conversion:

http://saptechnical.com/Tips/ABAP/ConvertTime.htm

Regards,

Deepu.K

3 REPLIES 3
Read only

Former Member
0 Likes
659

Hello,

The function module <b>IB_CONVERT_INTO_TIMESTAMP</b> is used to convert the time to the GMT. The input parameters are DATE, TIME and the TIMEZONE(user's time zone, default value SY-ZONLO). The output parameter is the timestamp in GMT.

Check out this link for a complete program on time zone conversion:

http://saptechnical.com/Tips/ABAP/ConvertTime.htm

Regards,

Deepu.K

Read only

former_member386202
Active Contributor
0 Likes
658

Hi,

use fm FITP_CONVERT_LOCAL_TIME_GMT

Regards,

Prashant

Read only

Former Member
0 Likes
658

Hi Srinath,

Try these FM

RKE_TIMESTAMP_CONVERT_INPUT - to convert local time /date to GMT]

RKE_TIMESTAMP_CONVERT_OUTPUT - to convert GMT to local

To get the timestamp , use the fm "TZON_GET_OFFSET"

Reward if Useful.

Regards,

Chitra