<?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 time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time/m-p/3115878#M739897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guyz,&lt;/P&gt;&lt;P&gt;My requirement is populating all background jobs 30 mins before system time...&lt;/P&gt;&lt;P&gt;everything is fine when system time is more than half ...for example system 12:30 or more...if it system date less than 30 &lt;/P&gt;&lt;P&gt;for example 12:02 ...my from time should be 11:32 but for some reason iam getting 11:28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code for your reference....&lt;/P&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt; if ls_jselect-to_time+2(2) &amp;lt;= '30'.&lt;/P&gt;&lt;P&gt;   ls_jselect-from_time&lt;EM&gt;0(2) = ls_jselect-to_time&lt;/EM&gt;0(2) - 1.&lt;/P&gt;&lt;P&gt;   ls_jselect-from_time&lt;EM&gt;2(2) = ls_jselect-to_time&lt;/EM&gt;2(2) - 30.&lt;/P&gt;&lt;P&gt;   concatenate ls_jselect-from_time+0(2)&lt;/P&gt;&lt;P&gt;              ls_jselect-from_time+2(2)&lt;/P&gt;&lt;P&gt;              ls_jselect-to_time+4(2)&lt;/P&gt;&lt;P&gt;             into lv_from_time .&lt;/P&gt;&lt;P&gt;  ls_jselect-from_time = lv_from_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_jselect-from_time&lt;EM&gt;2(2)  = ls_jselect-to_time&lt;/EM&gt;2(2) - 30.&lt;/P&gt;&lt;P&gt; concatenate ls_jselect-to_time+0(2)&lt;/P&gt;&lt;P&gt;              ls_jselect-from_time+2(2)&lt;/P&gt;&lt;P&gt;              ls_jselect-to_time+4(2)&lt;/P&gt;&lt;P&gt;             into lv_from_time .&lt;/P&gt;&lt;P&gt;  ls_jselect-from_time = lv_from_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;**************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2007 13:25:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-29T13:25:02Z</dc:date>
    <item>
      <title>time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time/m-p/3115878#M739897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guyz,&lt;/P&gt;&lt;P&gt;My requirement is populating all background jobs 30 mins before system time...&lt;/P&gt;&lt;P&gt;everything is fine when system time is more than half ...for example system 12:30 or more...if it system date less than 30 &lt;/P&gt;&lt;P&gt;for example 12:02 ...my from time should be 11:32 but for some reason iam getting 11:28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code for your reference....&lt;/P&gt;&lt;P&gt;***********************************************************************************&lt;/P&gt;&lt;P&gt; if ls_jselect-to_time+2(2) &amp;lt;= '30'.&lt;/P&gt;&lt;P&gt;   ls_jselect-from_time&lt;EM&gt;0(2) = ls_jselect-to_time&lt;/EM&gt;0(2) - 1.&lt;/P&gt;&lt;P&gt;   ls_jselect-from_time&lt;EM&gt;2(2) = ls_jselect-to_time&lt;/EM&gt;2(2) - 30.&lt;/P&gt;&lt;P&gt;   concatenate ls_jselect-from_time+0(2)&lt;/P&gt;&lt;P&gt;              ls_jselect-from_time+2(2)&lt;/P&gt;&lt;P&gt;              ls_jselect-to_time+4(2)&lt;/P&gt;&lt;P&gt;             into lv_from_time .&lt;/P&gt;&lt;P&gt;  ls_jselect-from_time = lv_from_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_jselect-from_time&lt;EM&gt;2(2)  = ls_jselect-to_time&lt;/EM&gt;2(2) - 30.&lt;/P&gt;&lt;P&gt; concatenate ls_jselect-to_time+0(2)&lt;/P&gt;&lt;P&gt;              ls_jselect-from_time+2(2)&lt;/P&gt;&lt;P&gt;              ls_jselect-to_time+4(2)&lt;/P&gt;&lt;P&gt;             into lv_from_time .&lt;/P&gt;&lt;P&gt;  ls_jselect-from_time = lv_from_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;**************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 13:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time/m-p/3115878#M739897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T13:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time/m-p/3115879#M739898</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;it cannot calculate circular at least this way), change it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ls_jselect-to_time+2(2) &amp;lt;= '30'.&lt;/P&gt;&lt;P&gt;ls_jselect-from_time&lt;EM&gt;0(2) = ls_jselect-to_time&lt;/EM&gt;0(2) - 1.&lt;/P&gt;&lt;P&gt;ls_jselect-from_time&lt;EM&gt;2(2) = ls_jselect-to_time&lt;/EM&gt;2(2) &amp;lt;b&amp;gt;+&amp;lt;/b&amp;gt; 30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 13:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time/m-p/3115879#M739898</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-11-29T13:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time/m-p/3115880#M739899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sudheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_TEST.

DATA : time type sy-uzeit.
data : time1(2) type c.
break akumar.
time = sy-uzeit.

time1 = time+2(2) - 30.

write : time.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    INPUT         = time1
 IMPORTING
   OUTPUT        = time1
          .


CONCATENATE time+0(2) time1 time+4(2) into time.

WRITE / time.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aneesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 13:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time/m-p/3115880#M739899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T13:42:25Z</dc:date>
    </item>
  </channel>
</rss>

