<?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: Regarding Ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497243#M1421175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just, check the select options declaration which should be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_kstar for &amp;lt;tablename&amp;gt;-&amp;lt;fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2009 09:09:14 GMT</pubDate>
    <dc:creator>former_member778253</dc:creator>
    <dc:date>2009-12-22T09:09:14Z</dc:date>
    <item>
      <title>Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497236#M1421168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_KSTAR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;  S_KSTAR-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;  S_KSTAR-LOW = '600000'.&lt;/P&gt;&lt;P&gt;  S_KSTAR-HIGH = '699999'.&lt;/P&gt;&lt;P&gt;  APPEND S_KSTAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_KSTAR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;  S_KSTAR-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;  S_KSTAR-LOW = '400000'.&lt;/P&gt;&lt;P&gt;  S_KSTAR-HIGH = '499999'.&lt;/P&gt;&lt;P&gt;  APPEND S_KSTAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Through initialization i have appended two ranges for select option but when i am retrieving data from select statement it's taking only one range which is in header line. Please help me how to retrive data between two data ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks  &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nagalakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497236#M1421168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T07:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497237#M1421169</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;Did you use 'IN' in your select query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497237#M1421169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T07:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497238#M1421170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you used IN  or equal to in where clause ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if You had used equal to then you data will be fetched based on header if it is not cleared else no data will come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then try using IN instead of equal to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497238#M1421170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T07:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497239#M1421171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;s , also not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497239#M1421171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T07:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497240#M1421172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make a seperate range table for the two condition and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work when you use two diff range tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, check the avaliability of data between these two ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Bhalla on Dec 22, 2009 1:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497240#M1421172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T07:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497241#M1421173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to adress table's body not header line&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"correct one
select ....
  where ... IN S_KSTAR[].

"wrong one
select ...
   where ... IN S_KSTAR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This should help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 07:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497241#M1421173</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-12-22T07:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497242#M1421174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is defined as a select option, the [] is not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES t100.

DATA: t_100  TYPE STANDARD TABLE OF t100,
      wa_100 TYPE t100.

SELECT-OPTIONS: s_msg FOR t100-msgnr.

INITIALIZATION.

  s_msg-option = 'BT'.
  s_msg-sign = 'I'.
  s_msg-low = '020'.
  s_msg-high = '030'.
  APPEND s_msg.

  s_msg-low = '120'.
  s_msg-high = '130'.
  APPEND s_msg.

START-OF-SELECTION.

  SELECT * FROM t100 INTO TABLE t_100 WHERE sprsl EQ 'EN'
                                        AND arbgb EQ '00'
                                        AND msgnr IN s_msg.

END-OF-SELECTION.

  LOOP AT t_100 INTO wa_100.
    WRITE: / wa_100-msgnr.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is: how have you defined s_kstar, what is your select statement? &lt;STRONG&gt;If s_kstar is defined as a select-option, or via the RANGES statement, then it DOES NOT use the header in the selection&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 09:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497242#M1421174</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-12-22T09:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497243#M1421175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just, check the select options declaration which should be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_kstar for &amp;lt;tablename&amp;gt;-&amp;lt;fieldname&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 09:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497243#M1421175</guid>
      <dc:creator>former_member778253</dc:creator>
      <dc:date>2009-12-22T09:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497244#M1421176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 09:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-ranges/m-p/6497244#M1421176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-19T09:57:27Z</dc:date>
    </item>
  </channel>
</rss>

