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 zone

Former Member
0 Likes
1,062

Hi Experts,

Can any one please help me how to change the system time to a particular time zone in ABAP program, for example India time zone.

Is there any function module for that?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
945

Hi Vikram,

The function module IB_CONVERT_FROM_TIMESTAMP is used to get the time in required timezone.

The input parameters for this are the timestamp obtained from the above function module and the timezone, to which the time needs to be converted.

Hope this helps you.

Regards,

Chandra Sekhar

6 REPLIES 6
Read only

Former Member
0 Likes
946

Hi Vikram,

The function module IB_CONVERT_FROM_TIMESTAMP is used to get the time in required timezone.

The input parameters for this are the timestamp obtained from the above function module and the timezone, to which the time needs to be converted.

Hope this helps you.

Regards,

Chandra Sekhar

Read only

0 Likes
945

JIT03_CONVERT_TIME_BY_TIMEZONE

make use of the above....Hope it helps...

Read only

bpawanchand
Active Contributor
0 Likes
945

Hi

try out this Fm Iam not sure but I hope it ll help you

BDL_GET_CENTRAL_TIMESTAMP

RKE_TIMESTAMP_CONVERT_INPUT (COnverts Local time to GMT )

RKE_TIMESTAMP_CONVERT_OUTPUT(Converst GMT to Local Time)

REGARDS

Pavan

Read only

Former Member
0 Likes
945

Hi Vikram,

CONVERT for Timestamps

Converts a timestamp into the correct date and time for the current time zone

Syntax

CONVERT TIME STAMP <tst> TIME ZONE <tz> INTO DATE <d> TIME <t>.

CONVERT DATE <d> TIME <t> INTO TIME STAMP <tst> TIME ZONE <tz>.

As long as <tst> has type P(8) or P(11) with 7 decimal placed, and <tz> has type C(6), the time stamp <tst> will be converted to the correct date <d> and time <t> for the time zone <tz>.

Read only

Former Member
0 Likes
945

Hi Vikram,

Make use of FM " /ISDFPS/CONV_TIME_ZONE".

Provide all the necessary parameters and you will get the time in the new time zone.

Reward points if helpful.

Thanks ,

Asha

Read only

Former Member
0 Likes
945

FM TZON_GET_OFFSET and other FM of this group may be helpfull.

Kind regards,

hp