<?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 Re: changing the system time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611520#M274128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one more question. I am printing this time in text editor next to one more field. Do I use continuation or just define it from the next line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2006 18:19:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-19T18:19:47Z</dc:date>
    <item>
      <title>changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611512#M274120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am printing the system time in one of the forms. Now I have to reduce the time by two hours. Is it possible for me to change the time by doing 'SY-UZEIT - 2'. If not please suggest me as to how to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611512#M274120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T16:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611513#M274121</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;SY-UZEIT is system time, so you can change it, I don't understand why you want to update it, but you can use a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NEW_TIME TYPE SY-UZEIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A) Minus 2 second: NEW_TIME = SY-UZEIT - 2. &lt;/P&gt;&lt;P&gt;B) Minus 2 minute: NEW_TIME = SY-UZEIT - 120.&lt;/P&gt;&lt;P&gt;C) Minus 2 hours : NEW_TIME = SY-UZEIT - 7200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:11:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611513#M274121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T16:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611514#M274122</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;  data: v_time type syuzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_time = sy-uzeit - 7200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: /'Minus 2 hours - ', v_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611514#M274122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T16:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611515#M274123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: time type sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Time = sy-uzeit - 7200.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611515#M274123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T16:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611516#M274124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do this in the text editor. Can I use the same in the text editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611516#M274124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T16:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611517#M274125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about using &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;write sy-uzeit TIME ZONE tz.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For tz, a data object of type TIMEZONE from the ABAP Dictionary must be specified. It must contain a time zone from the column TZONE of the database table TTZZ in uppercase letters. If tz is initial, the UTC reference time is output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look into the statement documentation for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611517#M274125</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-09-19T16:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611518#M274126</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;  I believe you cannot declare time specific data type in the Sap script editor..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  And it has to be done in the print program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you are having smartforms..you can do it initialization event..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611518#M274126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611519#M274127</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 try to create a form and call it in the sapscript.&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;MY_TIME&amp;amp; = ' '&lt;/P&gt;&lt;P&gt;/: PERFORM CHANGE_TIME IN PROGRAM &amp;lt;Z....&amp;gt;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;MY_TIME&amp;amp;&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In program Z.... you have to define the routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CHANGE_TIME TABLES IN_TAB STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                  OUT_TAB STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: NEW_TIME TYPE SY-UZEIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;NEW_TIME = SY-UZEIT - ......&lt;/P&gt;&lt;P&gt;WRITE NEW_TIME TO OUT_TAB-VALUE.&lt;/P&gt;&lt;P&gt;MODIFY OUT_TAB INDEX 1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 16:54:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611519#M274127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T16:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611520#M274128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one more question. I am printing this time in text editor next to one more field. Do I use continuation or just define it from the next line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 18:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611520#M274128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T18:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611521#M274129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max. That solved my problem. I've awarded points to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 19:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611521#M274129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T19:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611522#M274130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem again. My company is located in US and in London. This form is being used even in London. Th server is taking London time and so for US orders I subtracted two hours from the system time. Now I need to add a condition in the program that the system takes the system time at London and subtract the two hours in USA. Can you give me the code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2006 22:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611522#M274130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-21T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611523#M274131</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;I believe you should check the user data there you can find the Time zone of the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the system variable SY-TZONE you have the time zone of the server and in SY-ZONLO user one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 09:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611523#M274131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T09:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611524#M274132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;since I am trying to print the time, I have used SYST-TIMLO which is the local time of the user, but did not work. Would you suggest if that can be made to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 16:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611524#M274132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T16:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611525#M274133</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; For sy-timlo see the documentation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following cases, the local time cannot be calculated:                                                                                &lt;/P&gt;&lt;P&gt;-   The time zone has not been entered in the user master record &lt;/P&gt;&lt;P&gt;        or                                                                                &lt;/P&gt;&lt;P&gt;-   The time zone in the user master record is invalid           &lt;/P&gt;&lt;P&gt;        or                                                                                &lt;/P&gt;&lt;P&gt;-   The time zones are inactive (table TTZCU).                                                                                &lt;/P&gt;&lt;P&gt;If this happens, the system time (SYST-UZEIT) is returned.                                                                                &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 16:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611525#M274133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T16:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: changing the system time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611526#M274134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Narendran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My system is returning Sy-UZEIT  same as you mentioned. What would be my other option? Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 18:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-the-system-time/m-p/1611526#M274134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T18:32:12Z</dc:date>
    </item>
  </channel>
</rss>

