<?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: number ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3757515#M903977</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;&lt;STRONG&gt;In real time&lt;/STRONG&gt; SELECT-OPTIONS &amp;amp; RANGES works for the same purpose.  They both are used for the range selection from selection screen.  The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the select options internal table which contains the fields of SIGN,OPTION,LOW &amp;amp; HIGH.  But in case of RANGES, this internal table should be defined explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the below example:&lt;/P&gt;&lt;P&gt;Eg. to SELECT-OPTIONS :&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT YARSELECT.
TABLES YTXLFA1.
SELECT-OPTIONS : VENDOR FOR YTXLFA1-LIFNR.
INITIALIZATION.
VENDOR-LOW    =   1000.               " It specifies the range starting value.
VENDOR-HIGH    =   2000.               " It specifies the range ending value.
VENDOR-OPTION  =  'BT'.                " specifies ranges value is in between.
VENDOR-SIGN      = 'I'.                     "specifies both inclussive.

APPEND VENDOR.

- - - -
- - - -
SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB 
WHERE LIFNR IN VENDOR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. to RANGES:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT YARRANGE.
TABLES YTXLFA1.
RANGES: VENDOR FOR YTXFLA1-LIFNR.

- - - - 
- - - --
- - - - 

SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB 
WHERE LIFNR IN VENDOR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here with RANGES  user has to design an internal table with fields - &lt;/P&gt;&lt;P&gt;SIGN,OPTION,LOW and HIGH EXPLICITLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2008 10:49:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-23T10:49:27Z</dc:date>
    <item>
      <title>number ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3757514#M903976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In real-time ,we will use number ranges enhancement know,what will be the  usual requirement for doing it .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 10:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3757514#M903976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T10:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: number ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3757515#M903977</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;&lt;STRONG&gt;In real time&lt;/STRONG&gt; SELECT-OPTIONS &amp;amp; RANGES works for the same purpose.  They both are used for the range selection from selection screen.  The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the select options internal table which contains the fields of SIGN,OPTION,LOW &amp;amp; HIGH.  But in case of RANGES, this internal table should be defined explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the below example:&lt;/P&gt;&lt;P&gt;Eg. to SELECT-OPTIONS :&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT YARSELECT.
TABLES YTXLFA1.
SELECT-OPTIONS : VENDOR FOR YTXLFA1-LIFNR.
INITIALIZATION.
VENDOR-LOW    =   1000.               " It specifies the range starting value.
VENDOR-HIGH    =   2000.               " It specifies the range ending value.
VENDOR-OPTION  =  'BT'.                " specifies ranges value is in between.
VENDOR-SIGN      = 'I'.                     "specifies both inclussive.

APPEND VENDOR.

- - - -
- - - -
SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB 
WHERE LIFNR IN VENDOR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. to RANGES:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT YARRANGE.
TABLES YTXLFA1.
RANGES: VENDOR FOR YTXFLA1-LIFNR.

- - - - 
- - - --
- - - - 

SELECT LIFNR LAND1 NAME1 FROM LFA1 INTO TABLE ITAB 
WHERE LIFNR IN VENDOR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here with RANGES  user has to design an internal table with fields - &lt;/P&gt;&lt;P&gt;SIGN,OPTION,LOW and HIGH EXPLICITLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 10:49:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3757515#M903977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T10:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: number ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3757516#M903978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain your query in detail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 11:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/number-ranges/m-p/3757516#M903978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T11:25:09Z</dc:date>
    </item>
  </channel>
</rss>

