<?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: Problem with CONVERT DATE. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783320#M1120486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the point, but I do not agree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just checked this out in one of our internal systems. In the configuration timezone &lt;EM&gt;AUSNSW&lt;/EM&gt; is defined UTC+10. Assigned to this timezone you can find daylight saving rule &lt;EM&gt;AUS&lt;/EM&gt;. According to this rule DST becomes active as +1 hour on last Sunday of October at 2 o'clock. I.e. the system determines your local time to be 11 hours ahead of UTC. Consequently &lt;EM&gt;20,081,126,234,238.0000000&lt;/EM&gt; is perfectly correct according to the configurational settings of the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harald Keimer&lt;/P&gt;&lt;P&gt;XI Development Support&lt;/P&gt;&lt;P&gt;SAP AG, Walldorf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2008 23:27:56 GMT</pubDate>
    <dc:creator>former_member334189</dc:creator>
    <dc:date>2008-12-16T23:27:56Z</dc:date>
    <item>
      <title>Problem with CONVERT DATE.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783317#M1120483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a problem with a SAP Standard bit of code that is calculating the date and time.  This SAP standard program is used to determine if Jobs are to be scheduled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens is that instead of my jobs being run at 22:30 they are being run at 13:30.  I have figured out it is due to the SAP standard code calculating a CET timezone.&lt;/P&gt;&lt;P&gt;My TimeZone config appears to be correct in the IMG. With the System and Default timezone to be AUNSW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the snippet of code that I have ripped from a SAP standard program that is causing the problem&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZZZTEST.
 DATA: job_wa TYPE sxmsjobs,
        text TYPE string,
        error TYPE REF TO cx_xms_system_error,
        jobs_tab TYPE sxmsjobs_ttyp,
        job TYPE REF TO cl_xms_job,
        now TYPE tzntstmpl.

CONVERT DATE sy-datum  TIME sy-uzeit INTO
  TIME STAMP now TIME ZONE sy-zonlo.


  write /: sy-datum.
  write / sy-uzeit.
  write / sy-zonlo.
  write / now.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note that&lt;/EM&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;My SU01 Profile shows Personal Time Zone&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;of the User         AUSNSW&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sys. Time Zone  AUSNSW&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Run in R/3 at 10:42:38 on 27th November&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;27.11.2008&lt;/P&gt;&lt;P&gt;10:42:38&lt;/P&gt;&lt;P&gt;AUSNSW&lt;/P&gt;&lt;P&gt;20,081,126,234,238.0000000   &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;THIS IS WRONG. SHOULD BE 27TH !.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 23:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783317#M1120483</guid>
      <dc:creator>former_member183909</dc:creator>
      <dc:date>2008-11-26T23:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CONVERT DATE.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783318#M1120484</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;CONVERT DATE sy-datum  TIME sy-uzeit INTO&lt;/P&gt;&lt;P&gt;  TIME STAMP now TIME ZONE sy-zonlo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
CONVERT DATE sy-datum  TIME sy-uzeit INTO
  TIME STAMP now TIME ZONE sy-zonlo.

instead of sy-datum and sy-uzeit can u modify this based on sy-datlo and sy-timlo ..."&amp;lt;--

CONVERT DATE sy-datlo  TIME sy-timlo INTO
  TIME STAMP now TIME ZONE sy-zonlo.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 02:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783318#M1120484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-27T02:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CONVERT DATE.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783319#M1120485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same result anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is that the code is from a SAP standard program.  It is actually in SAP XI SXMS_START_JOBS and this calls a method that has that statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is SAP standard code.  I do not want to repair it just yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to understand why it does not calculate the value as expected.  So if anyone can confirm my suspicions that would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 04:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783319#M1120485</guid>
      <dc:creator>former_member183909</dc:creator>
      <dc:date>2008-11-27T04:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CONVERT DATE.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783320#M1120486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the point, but I do not agree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just checked this out in one of our internal systems. In the configuration timezone &lt;EM&gt;AUSNSW&lt;/EM&gt; is defined UTC+10. Assigned to this timezone you can find daylight saving rule &lt;EM&gt;AUS&lt;/EM&gt;. According to this rule DST becomes active as +1 hour on last Sunday of October at 2 o'clock. I.e. the system determines your local time to be 11 hours ahead of UTC. Consequently &lt;EM&gt;20,081,126,234,238.0000000&lt;/EM&gt; is perfectly correct according to the configurational settings of the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harald Keimer&lt;/P&gt;&lt;P&gt;XI Development Support&lt;/P&gt;&lt;P&gt;SAP AG, Walldorf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 23:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-convert-date/m-p/4783320#M1120486</guid>
      <dc:creator>former_member334189</dc:creator>
      <dc:date>2008-12-16T23:27:56Z</dc:date>
    </item>
  </channel>
</rss>

