<?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: Help needed in Ranges ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409365#M818796</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;  Ranges are exactly similar to select-options, with no input box on the selection screen. These can be used in select statement in the where condition to get records for multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your query, the range has a single record with null value as range-low. so the system finds all records with KPOSN,STUNR,ZAEHK is initial. Because, there are no records in the system, it is not fetching any value, hence setting sy-subrc to 4. Hope this helps, &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Harikrishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2008 13:54:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-15T13:54:14Z</dc:date>
    <item>
      <title>Help needed in Ranges ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409362#M818793</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;Plz help me to understand this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: r_rangename FOR konv-kposn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;r_rangename-sign = 'I'&lt;/P&gt;&lt;P&gt;r_rangename-option = 'EQ'.&lt;/P&gt;&lt;P&gt;r_rangename-low = space.&lt;/P&gt;&lt;P&gt;Append r_rangename.&lt;/P&gt;&lt;P&gt;Clear r_rangename.&lt;/P&gt;&lt;P&gt;***************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * INTO TABLE itab &lt;/P&gt;&lt;P&gt;FROM konv &lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;knumv = '32424234'                        "Some Value&lt;/P&gt;&lt;P&gt;kposn IN r_rangename &lt;/P&gt;&lt;P&gt;AND stunr IN r_rangename &lt;/P&gt;&lt;P&gt;AND zaehk IN r_rangename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am not able to understand this ranges concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This select query is not getting executed and i am getting a sy-subrc value of 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is present in the table konv for the given value of knumv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help !!...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 13:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409362#M818793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T13:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in Ranges ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409363#M818794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;r_rangename-low = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're not providing a valid condition number here, so subrc is 4. once you provide valid numbers in the range, your query will return results.&lt;/P&gt;&lt;P&gt;A range is basically the same as a select-option on the selection screen.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 13:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409363#M818794</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-02-15T13:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in Ranges ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409364#M818795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't populate anything into the range ..&lt;/P&gt;&lt;P&gt;By default U'll get every thing from the table(if range is initial then &lt;/P&gt;&lt;P&gt;every thing is considered)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 13:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409364#M818795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T13:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in Ranges ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409365#M818796</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;  Ranges are exactly similar to select-options, with no input box on the selection screen. These can be used in select statement in the where condition to get records for multiple values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your query, the range has a single record with null value as range-low. so the system finds all records with KPOSN,STUNR,ZAEHK is initial. Because, there are no records in the system, it is not fetching any value, hence setting sy-subrc to 4. Hope this helps, &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Harikrishna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 13:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409365#M818796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in Ranges ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409366#M818797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;you are populating the ranges table in initialization event.&lt;/P&gt;&lt;P&gt;the ranges are declared for kposn field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In where condition of the select you are equating to stunr, zaehk also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is why you are not getting sy-subrc as zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write start-of-selection. befor the select statement also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kamala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 13:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409366#M818797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T13:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in Ranges ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409367#M818798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls try without r_rangename-low = space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 13:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409367#M818798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T13:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help needed in Ranges ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409368#M818799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you dont want to pass the value to the ranges just skip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_rangename-sign = 'I'.&lt;/P&gt;&lt;P&gt;r_rangename-option = 'EQ'.&lt;/P&gt;&lt;P&gt;*r_rangename-low = space.&lt;/P&gt;&lt;P&gt;Append r_rangename.&lt;/P&gt;&lt;P&gt;Clear r_rangename.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2008 13:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-needed-in-ranges/m-p/3409368#M818799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-15T13:57:35Z</dc:date>
    </item>
  </channel>
</rss>

