<?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: Ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/3426556#M822870</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;That's because p1-high is initial. I suggest you to default p1-high to 16 when it is initial. Check below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table p1 index 1.&lt;/P&gt;&lt;P&gt;r1-sign = 'I'.&lt;/P&gt;&lt;P&gt;r1-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF p1-high IS INITIAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;p1-high = 16.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;while p1-low LE p1-high.&lt;/P&gt;&lt;P&gt;r1-low = p1-low.&lt;/P&gt;&lt;P&gt;append r1.&lt;/P&gt;&lt;P&gt;p1-low = p1-low + 1.&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2008 09:33:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-14T09:33:12Z</dc:date>
    <item>
      <title>Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/3426555#M822869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi evryone,&lt;/P&gt;&lt;P&gt;The below code am using ranges.It is executing well when there is LOW and HIGH values for p1.But if i give only P1-LOW in the input then am not getting the output.Please Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay&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;SELECT-OPTIONS: p1 FOR v_p1 OBLIGATORY.&lt;/P&gt;&lt;P&gt;RANGES:r1 for v_p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table p1 index 1.&lt;/P&gt;&lt;P&gt;r1-sign = 'I'.&lt;/P&gt;&lt;P&gt;r1-option = 'EQ'.&lt;/P&gt;&lt;P&gt;while p1-low LE p1-high.&lt;/P&gt;&lt;P&gt;r1-low = p1-low.&lt;/P&gt;&lt;P&gt;append r1.&lt;/P&gt;&lt;P&gt;p1-low = p1-low + 1.&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt; t_power_cost_p1-power_cost_p1_apr&lt;/P&gt;&lt;P&gt; = t_power_cost_p1-power_cost_p1_apr + it_faglflext-hsl01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt; t_power_cost_p1-power_cost_p1_may&lt;/P&gt;&lt;P&gt; = t_power_cost_p1-power_cost_p1_may + it_faglflext-hsl02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 3.&lt;/P&gt;&lt;P&gt;t_power_cost_p1-power_cost_p1_jun&lt;/P&gt;&lt;P&gt; = t_power_cost_p1-power_cost_p1_jun + it_faglflext-hsl03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 4.&lt;/P&gt;&lt;P&gt;t_power_cost_p1-power_cost_p1_jul&lt;/P&gt;&lt;P&gt;= t_power_cost_p1-power_cost_p1_jul + it_faglflext-hsl04.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 09:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/3426555#M822869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T09:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/3426556#M822870</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;That's because p1-high is initial. I suggest you to default p1-high to 16 when it is initial. Check below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table p1 index 1.&lt;/P&gt;&lt;P&gt;r1-sign = 'I'.&lt;/P&gt;&lt;P&gt;r1-option = 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF p1-high IS INITIAL.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;p1-high = 16.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;while p1-low LE p1-high.&lt;/P&gt;&lt;P&gt;r1-low = p1-low.&lt;/P&gt;&lt;P&gt;append r1.&lt;/P&gt;&lt;P&gt;p1-low = p1-low + 1.&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 09:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/3426556#M822870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T09:33:12Z</dc:date>
    </item>
  </channel>
</rss>

