<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic convert time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488692#M1420032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;Currently i am using sy-uzeit system variable for system time bur it is showing paris time i want indian time please help me for that,&lt;/P&gt;&lt;P&gt;and in our application server time is paris time only .&lt;/P&gt;&lt;P&gt;Thanks in advance.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2009 04:35:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-22T04:35:10Z</dc:date>
    <item>
      <title>convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488692#M1420032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;Currently i am using sy-uzeit system variable for system time bur it is showing paris time i want indian time please help me for that,&lt;/P&gt;&lt;P&gt;and in our application server time is paris time only .&lt;/P&gt;&lt;P&gt;Thanks in advance.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488692#M1420032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488693#M1420033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;GET TIME STAMP FIELD f&lt;/STRONG&gt; statement to get UTC (Greenwich Mean Time)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subsequently use statement &lt;STRONG&gt;CONVERT TIME STAMP tst TIME ZONE tz INTO DATE d TIME t&lt;/STRONG&gt; to get the desired zone time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer ABAPDOCU T-Code for these keyword help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488693#M1420033</guid>
      <dc:creator>SureshRa</dc:creator>
      <dc:date>2009-12-22T04:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488694#M1420034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can search in forums first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can use system variable SY-TIMLO for local time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488694#M1420034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488695#M1420035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already checked SY-TIMLO it is also showing paris time only and i checked in forum also...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:46:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488695#M1420035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488696#M1420036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Time in Paris = GMT + 1 hour and Time in India = GMT + 5.5 hours ( 5 hours 30 minutes )&lt;/P&gt;&lt;P&gt;Hence in your case,&lt;/P&gt;&lt;P&gt;  Time in India = Time in Paris + 4.5 hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488696#M1420036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488697#M1420037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;thanks for rply...&lt;/P&gt;&lt;P&gt;can you make it more clear please....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488697#M1420037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488698#M1420038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
From the link: http://searchsap.techtarget.com/tip/0,289483,sid21_gci970550,00.html
Here is how to handle time zones in ABAP when several time zones are involved in a project. This is quit helpful when processes are spread around several regions and/or countries.

Code

The time zone should be specified for each user with SU01. 
Instead of using the fields SY-DATUM and SY-UZEIT, use the fields SY-DATLO and SY-TIMLO to get local time from the specified time zone for the user. 

If you need to convert date and time into a local time zone, the function TZ_SYSTEM_TO_LOCAL should be used. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
From the link: http://searchsap.techtarget.com/tip/0,289483,sid21_gci826364,00.html

This is regarding the conversion of time between different timezones. In order to achieve this, first we need to convert the time to standard GMT and from GMT to the required timezone.

The following function modules does the same.

The function module IB_CONVERT_INTO_TIMESTAMP is used to convert the time to the GMT. The input parameters are DATE, TIME and the TIMEZONE(user's timezone, default ... 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:50:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488698#M1420038</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-12-22T04:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488699#M1420039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ankita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


CALL FUNCTION 'RKE_TIMESTAMP_CONVERT_INPUT'
    EXPORTING
      i_date       = sy-datum
      i_dayst      = sy-dayst
      i_time       = sy-uzeit
      i_tzone      = sy-tzone
    IMPORTING
      e_timestmp   = ch_timestmp
    EXCEPTIONS
      date_invalid = 1
      OTHERS       = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE e129(zms) WITH sy-datum sy-uzeit.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pravin s. on Dec 22, 2009 6:05 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488699#M1420039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488700#M1420040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please follow the link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="215059"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488700#M1420040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488701#M1420041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: time_stamp TYPE timestamp,&lt;/P&gt;&lt;P&gt;      dat TYPE d,&lt;/P&gt;&lt;P&gt;      tim TYPE t,&lt;/P&gt;&lt;P&gt;      tz   TYPE ttzz-tzone,&lt;/P&gt;&lt;P&gt;      dst(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tz = 'INDIA'.&lt;/P&gt;&lt;P&gt;GET TIME STAMP FIELD time_stamp.&lt;/P&gt;&lt;P&gt;SKIP.SKIP.&lt;/P&gt;&lt;P&gt;write time_stamp.&lt;/P&gt;&lt;P&gt;SKIP.SKIP.&lt;/P&gt;&lt;P&gt;CONVERT TIME STAMP time_stamp TIME ZONE tz&lt;/P&gt;&lt;P&gt;        INTO DATE dat TIME tim." DAYLIGHT SAVING TIME dst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: /(8) tim.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy paste this code and check ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 04:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488701#M1420041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T04:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: convert time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488702#M1420042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GET TIME STAMP FIELD f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns the time stamp in field f consisting of current date and time. The target field f contains the global reference time UTC (Universal Time Coordination). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then using this field f you need to get Indian Time using statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CONVERT TIME STAMP f TIME ZONE tz INTO DATE d TIME t&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Converts between UTC time stamp "f" to date "d" or time "t" for time zone "tz"&lt;/P&gt;&lt;P&gt;The time stamp "f" always refers to UTC time (which you got from &lt;EM&gt;GET TIME STAMP FIELD f&lt;/EM&gt;)&lt;/P&gt;&lt;P&gt;Refer values for timezone "tz" in table TTZZ (field TZONE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear. Refer ABAPDOCU Transaction code and see the keyword documentation of the above two statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 05:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-time/m-p/6488702#M1420042</guid>
      <dc:creator>SureshRa</dc:creator>
      <dc:date>2009-12-22T05:01:31Z</dc:date>
    </item>
  </channel>
</rss>

