<?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 hlep. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979282#M71582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can someone help me in implementing this simple logic in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set of values :  (00:10:00,00:18:00,02:14:00,05:30:00,10:40:00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value is not in this interval then it is updated to next higher value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;1)If the hour timing is 02:18:00 , it will be updated to 05:30:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)If the hour timing is 06:40:00 , it will get updated to 10:40:00.&lt;/P&gt;&lt;P&gt;The value gets updated to nest higher value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tushar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2005 16:30:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-06-29T16:30:35Z</dc:date>
    <item>
      <title>hlep.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979282#M71582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can someone help me in implementing this simple logic in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set of values :  (00:10:00,00:18:00,02:14:00,05:30:00,10:40:00)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the value is not in this interval then it is updated to next higher value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: &lt;/P&gt;&lt;P&gt;1)If the hour timing is 02:18:00 , it will be updated to 05:30:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)If the hour timing is 06:40:00 , it will get updated to 10:40:00.&lt;/P&gt;&lt;P&gt;The value gets updated to nest higher value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tushar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 16:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979282#M71582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T16:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: hlep.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979283#M71583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tushar, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really understand the purpose but you can try something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-uzeit lt '001000'.
w_next_time = '001800'.
elseif sy-uzeit lt '001800'.
w_next_time = '021400'.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 17:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979283#M71583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T17:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: hlep.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979284#M71584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tushar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my reply to your earlier post: &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="48606"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change all the integer data types to Type UZEIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_val TYPE uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  result TYPE uzeit,&lt;/P&gt;&lt;P&gt;  BEGIN OF it_num OCCURS 0,&lt;/P&gt;&lt;P&gt;    val TYPE uzeit,&lt;/P&gt;&lt;P&gt;  END OF it_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Populate the int. table with your values as below or you can read from a db table.&lt;/P&gt;&lt;P&gt;  it_num-val    = '001000'. APPEND it_num. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do award points and close messages if your question is answered. It helps others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramki Maley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow the link below to learn how and why to award points. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm" target="test_blank"&gt;https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ramki Maley&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 17:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979284#M71584</guid>
      <dc:creator>ramki_maley</dc:creator>
      <dc:date>2005-06-29T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: hlep.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979285#M71585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never seen this type of requirement, interesting.  Maybe you could elaborate on why exactly you need this type of functionality.  Anyway,  here is a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0005.


parameters: p_time type sy-uzeit.

data:  begin of itab occurs 0,
       low type sy-uzeit,
       high type sy-uzeit,
       next type sy-uzeit,
       end of itab.

start-of-selection.


  itab-low  = '001000'.
  itab-high = '001759'.
  itab-next = '001800'.
  append itab.

  itab-low  = '001800'.
  itab-high = '021359'.
  itab-next = '021400'.
  append itab.

  itab-low  = '021400'.
  itab-high = '052959'.
  itab-next = '053000'.
  append itab.

  itab-low  = '053000'.
  itab-high = '103959'.
  itab-next = '104000'.
  append itab.

  loop at itab where low &amp;lt; p_time
                 and high &amp;gt; p_time.
    write itab-next.
    exit.
  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 17:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979285#M71585</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-06-29T17:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: hlep.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979286#M71586</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;   Maybe is better than you are created a table (SE11) and add the values to which you want to do convertion to him.  Soon access to that table and sera much but simple the transformation.  In the programation is recommendable not to use hard.  Perhaps better you functions with a conversion table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings &lt;/P&gt;&lt;P&gt;Ronald Mundo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2005 17:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hlep/m-p/979286#M71586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-06-29T17:48:43Z</dc:date>
    </item>
  </channel>
</rss>

