<?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/2800330#M653866</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;&amp;lt;a href="http://www.sap-img.com/abap/difference-between-select-options-ranges.htm"&amp;gt;Difference Between Select-Options &amp;amp; Ranges&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this thread for more info..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3826361"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 07:28:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-12T07:28:59Z</dc:date>
    <item>
      <title>ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800328#M653864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi could anyone explain what are the step to use ranges .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do the declaration and write the perform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And give me in what circumstances you can use ranges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800328#M653864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T07:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800329#M653865</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;You can use the following variants of the TYPES and DATA statements to create internal tables of the same type as selection tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES|DATA &amp;lt;rangetab&amp;gt; TYPE RANGE OF &amp;lt;type&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES|DATA &amp;lt;rangetab&amp;gt; LIKE RANGE OF &amp;lt;obj&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This defines internal standard tables whose line type is a structure as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN(1) TYPE C &lt;/P&gt;&lt;P&gt;OPTION(2) TYPE C &lt;/P&gt;&lt;P&gt;LOW TYPE &amp;lt;type&amp;gt; bzw. LIKE &amp;lt;obj&amp;gt; &lt;/P&gt;&lt;P&gt;HIGH TYPE &amp;lt;type&amp;gt; bzw. LIKE &amp;lt;obj&amp;gt;&lt;/P&gt;&lt;P&gt;You can also use the RANGES statement to create internal tables of the same type as selection tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES &amp;lt;rangetab&amp;gt; FOR &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement is simply a shortened form of the following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF &amp;lt;rangetab&amp;gt; OCCURS 0,&lt;/P&gt;&lt;P&gt;         sign(1) TYPE c,&lt;/P&gt;&lt;P&gt;         option(2) TYPE c,&lt;/P&gt;&lt;P&gt;         low  LIKE &amp;lt;f&amp;gt;,&lt;/P&gt;&lt;P&gt;         high LIKE &amp;lt;f&amp;gt;,&lt;/P&gt;&lt;P&gt;      END OF &amp;lt;rangetab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the statement represents an obsolete form of defining internal tables with headers and headers should not to be used, you should use above variants of TYPES and DATA statements instead of RANGES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables defined in this way have the same structure as selection tables, but they do not have the same functionality. They are not part of the selection screen: No corresponding input fields are generated and these tables cannot be used as a data interface in a program &amp;lt;prog&amp;gt; called using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT &amp;lt;prog&amp;gt; WITH &amp;lt;rangetab&amp;gt; IN &amp;lt;table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;. However, you can use the above statements to create the table &amp;lt;table&amp;gt; in the calling program. The main function of these tables is to pass data to the actual selection tables without displaying the selection screen when executable programs are called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above tables are like actual selection tables in the WHERE clause of Open SQL statements and can be used in combination with the IN operator in logical expressions, but they are not linked to a database table. They:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are not passed like selection criteria to logical databases &lt;/P&gt;&lt;P&gt;cannot be used with the shortened form of selection tables in logical expressions &lt;/P&gt;&lt;P&gt;cannot be used like selection criteria in GET events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obsolete version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_tables_ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES s_carrid1 FOR spfli-carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_carrid1-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_carrid1-option = 'EQ'.&lt;/P&gt;&lt;P&gt;s_carrid1-low = 'LH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND s_carrid1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT demo_selection_screen_ldb_1 WITH carrid IN s_carrid1&lt;/P&gt;&lt;P&gt;VIA SELECTION-SCREEN AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Korrekte Version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_sel_screen_tables_ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: s_carrid2 TYPE RANGE OF spfli-carrid,&lt;/P&gt;&lt;P&gt;s_carrid2_wa LIKE LINE OF s_carrid2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_carrid2_wa-sign = 'I'.&lt;/P&gt;&lt;P&gt;s_carrid2_wa-option = 'EQ'.&lt;/P&gt;&lt;P&gt;s_carrid2_wa-low = 'AA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND s_carrid2_wa TO s_carrid2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT demo_selection_screen_ldb_1 WITH carrid IN s_carrid2&lt;/P&gt;&lt;P&gt;VIA SELECTION-SCREEN AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A selection table S_CARRID is created with reference to column CARRID of database table SPFLI. Fields S_CARRID-LOW and S_CARRID-HIGH have the same type as CARRID. The work area of the internal table S_CARRID is filled and appended to the table. Program DEMO2 is called. If DEMO2 is linked to logical database F1S, its selections screen contains the fields of selection criterion CARRID from the logical database. These fields are filled with the contents of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Difference between select-options and Ranges: - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-select-options-ranges.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-select-options-ranges.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;hari krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800329#M653865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T07:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800330#M653866</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;&amp;lt;a href="http://www.sap-img.com/abap/difference-between-select-options-ranges.htm"&amp;gt;Difference Between Select-Options &amp;amp; Ranges&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this thread for more info..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3826361"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800330#M653866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T07:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800331#M653867</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 and select-options both are same for declaration but main difference is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u declare ranges it won't appear in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as in select-options it will show selection screen for entering values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward me a points if it use full answer.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800331#M653867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800332#M653868</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;/P&gt;&lt;P&gt;The ranges are like the select-options ... you can declare the ranges as follows...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges: r_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you exactly use this ranges means when ever there is a requirement for the range or set of value to restrict the selection of reocrds...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means you can use the ranges in the same way how you can use select-options...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:RANGES:  r_eqtyp FOR equi-eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE:  'I' TO r_eqtyp-sign,&lt;/P&gt;&lt;P&gt;                'EQ' TO r_eqtyp-option,&lt;/P&gt;&lt;P&gt;                value1 TO r_eqtyp-low.&lt;/P&gt;&lt;P&gt;    APPEND r_eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE:  'I' TO r_eqtyp-sign,&lt;/P&gt;&lt;P&gt;                'EQ' TO r_eqtyp-option,&lt;/P&gt;&lt;P&gt;                value2 TO r_eqtyp-low.&lt;/P&gt;&lt;P&gt;    APPEND r_eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT equnr eqtyp eqart objnr FROM equi INTO TABLE it_equi&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN t_mpos&lt;/P&gt;&lt;P&gt;       WHERE equnr = t_mpos-equnr&lt;/P&gt;&lt;P&gt;         AND eqtyp IN r_eqtyp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800332#M653868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T07:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800333#M653869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;    jus try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block blk1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options : s_werks for marc-werks obligatory.&lt;/P&gt;&lt;P&gt;selection-screen : end of block blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : p_werks like s_werks default value '0010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_werks-sign = 'WERKS'.&lt;/P&gt;&lt;P&gt;p_werks-option = 'EG'.&lt;/P&gt;&lt;P&gt;p_werks-low = '0010'.&lt;/P&gt;&lt;P&gt;p_werks-high = '0100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL...!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800333#M653869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T07:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800334#M653870</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 will create the Same type of internal table as Select-options (with the fields SIGN, OPTION, LOW, HIGH) .&lt;/P&gt;&lt;P&gt;So we can store the selection criteria in the Ranges.&lt;/P&gt;&lt;P&gt;But Ranges will not any Element in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: This is a typical example where we can use RANGES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: MARC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_PLANT FOR MARC-PLANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANGES: R_PLANT1 FOR MARC-PLANT.  "To Store plants with authorization&lt;/P&gt;&lt;P&gt;RANGES: R_PLANT2 FOR MARC-PLANT. "To Store plants without authorization&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;  LOOP AT S_PLANT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Check the authorization sampe code&lt;/P&gt;&lt;P&gt;         AUTHORITY-CHECK 'PLANT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         if SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;          APPEND S_PLANT TO R_PLANT1.&lt;/P&gt;&lt;P&gt;        ELSE.  &lt;/P&gt;&lt;P&gt;          APPEND S_PLANT TO R_PLANT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from MARC INTO TABLE ITAB WHERE WERKS IN R_PLANT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:35:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800334#M653870</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-12T07:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800335#M653871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Newbie82,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges would be defined in the data section of your program. See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;RANGES r_vkorg FOR vbak-vkorg.&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will provide a data structure of the same type as a select-option. See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;DATA: BEGIN OF r_vkorg OCCURS {10|n}, &lt;/P&gt;&lt;P&gt;        sign   TYPE c LENGTH 1, &lt;/P&gt;&lt;P&gt;        option TYPE c LENGTH 2, &lt;/P&gt;&lt;P&gt;        low    LIKE dobj, &lt;/P&gt;&lt;P&gt;        high   LIKE dobj, &lt;/P&gt;&lt;P&gt;      END OF r_vkorg.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can populate this structure with the same values as within a select-option and use it in your SQL. See example below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;move:  'I' to r_vkorg-sign,&lt;/P&gt;&lt;P&gt;          'EQ' to r_vkorg-option,&lt;/P&gt;&lt;P&gt;          'SO01' to r_vkorg-low. append r_vkorg.&lt;/P&gt;&lt;P&gt;move:  'I' to r_vkorg-sign,&lt;/P&gt;&lt;P&gt;          'BT' to r_vkorg-option,&lt;/P&gt;&lt;P&gt;          'SO05' to r_vkorg-low.&lt;/P&gt;&lt;P&gt;          'SO09' to r_vkorg-low.append r_vkorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln from vbak into lt_vbeln&lt;/P&gt;&lt;P&gt;where vkorg in r_vkorg.&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return orders with a sales organization of SO01 or between SO05 and SO05. You can also use as you would any select-option e.g. in a Check statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;Check vbak-vkorg in r_vkorg&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 07:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2800335#M653871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T07:41:15Z</dc:date>
    </item>
  </channel>
</rss>

