<?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: Define Selection Options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-selection-options/m-p/4780247#M1119873</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define a range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Ranges: r_field for &amp;lt;table&amp;gt;.

if not field1 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
r_field-option-low = field1.
append r_field.
endif.

if not field2 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
r_field-option-low = field2.
append r_field.
endif.

if field1 is initial and field2 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
append r_field.
endif.

select * from &amp;lt;table&amp;gt; where field1 in r_field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'I' value in the SIGN field denotes 'Include', that means to Include the values given in the LOW and HIGH fields.&lt;/P&gt;&lt;P&gt;U may use 'E' here to exclude these values, when u r using the range in a SELECT query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anversha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2008 06:23:54 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2008-11-18T06:23:54Z</dc:date>
    <item>
      <title>Define Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-selection-options/m-p/4780246#M1119872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if there are some values for selection like A1,A2,AZ,AF,A8 etc (A* values),is there any better way to define the ragne at one shot?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the logic is as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If itab-slno = (A1/A2/AZ,AF,A8).&lt;/P&gt;&lt;P&gt;....... some code&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;........some code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 06:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-selection-options/m-p/4780246#M1119872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-18T06:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Define Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-selection-options/m-p/4780247#M1119873</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define a range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Ranges: r_field for &amp;lt;table&amp;gt;.

if not field1 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
r_field-option-low = field1.
append r_field.
endif.

if not field2 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
r_field-option-low = field2.
append r_field.
endif.

if field1 is initial and field2 is initial.
r_field-sign = 'I'.
r_field-option = 'EQ'.
append r_field.
endif.

select * from &amp;lt;table&amp;gt; where field1 in r_field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'I' value in the SIGN field denotes 'Include', that means to Include the values given in the LOW and HIGH fields.&lt;/P&gt;&lt;P&gt;U may use 'E' here to exclude these values, when u r using the range in a SELECT query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anversha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 06:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-selection-options/m-p/4780247#M1119873</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2008-11-18T06:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Define Selection Options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/define-selection-options/m-p/4780248#M1119874</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 define like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Ranges :  r_hkont_34a FOR bsis-hkont.

PERFORM append_range USING
'BT' '0000560600' '0000560900'
CHANGING
 r_hkont_34a.

 APPEND r_hkont_34a.
 CLEAR r_hkont_34a.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2008 06:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/define-selection-options/m-p/4780248#M1119874</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-11-18T06:25:48Z</dc:date>
    </item>
  </channel>
</rss>

