<?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: select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244920#M1211940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;When ever we use a Selection Screen field ,it just act like an internal table.&lt;/P&gt;&lt;P&gt;It contains the 4 fileds.The internal format will be as follows.&lt;/P&gt;&lt;P&gt;  s_lifnr-option = 'EQ'&lt;/P&gt;&lt;P&gt;  s_lifnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;  s_lifnr-low = The value which ever you give in the selection screen.&lt;/P&gt;&lt;P&gt;  s_lifnr-high = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use the S_LIFNR-LOW to know the value which you give in the screen.&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;Naveen Kumar Pulluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2009 06:12:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-20T06:12:45Z</dc:date>
    <item>
      <title>select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244915#M1211935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI gurus,&lt;/P&gt;&lt;P&gt;    In my code i have to loop based on the value given in the selection screen(this is must) so in the select query in the where option some prblm occured so i have written the code as &lt;/P&gt;&lt;P&gt;s_lifnr is select-option value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code works if i give single entry and sigle values.If i give range of values consider am giving 100 to 200 in the gv_lifnr its taking the value as IBT100200.I have to do the calculation first based on 100 and next by 200.How to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_lifnr&lt;/P&gt;&lt;P&gt;gv_lifnr = s_lifnr.&lt;/P&gt;&lt;P&gt;shift gv_lifnr left deleting leading 'IEQ'.&lt;/P&gt;&lt;P&gt;some perform.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244915#M1211935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244916#M1211936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first check if  s_lifnr-option contains 'BT' ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if so .. check with  s_lifnr-low and then with s_lifnr-high&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244916#M1211936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244917#M1211937</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;If you are using select-options value to retreive from database,&lt;/P&gt;&lt;P&gt;Use FOR ALL ENTERIES in ur select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not, brief ur que more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:09:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244917#M1211937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244918#M1211938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Just check s_lifnr-low and then with s_lifnr-high&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244918#M1211938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244919#M1211939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ur ans is copied from Srini Vas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244919#M1211939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244920#M1211940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;When ever we use a Selection Screen field ,it just act like an internal table.&lt;/P&gt;&lt;P&gt;It contains the 4 fileds.The internal format will be as follows.&lt;/P&gt;&lt;P&gt;  s_lifnr-option = 'EQ'&lt;/P&gt;&lt;P&gt;  s_lifnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;  s_lifnr-low = The value which ever you give in the selection screen.&lt;/P&gt;&lt;P&gt;  s_lifnr-high = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So use the S_LIFNR-LOW to know the value which you give in the screen.&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;Naveen Kumar Pulluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:12:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244920#M1211940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244921#M1211941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The from... and to... vales are stored in s_lifnr-low and s_lifnr-high respectively. In your loop endloop transfer the values as shown below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at s_lifnr into s_lifnr.
clear: w_lifnr_low,
         w_lifnr_high.

w_lifnr_low = s_lifnr-low.
w_lifnr_high = s_lifnr-high.

perform select_some_data.

endloop.

form select_some_data.

select single *
from LFB1
where lifnr GE w_lifnr_low
   and lifnr LE w_lifnr_high.

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244921#M1211941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244922#M1211942</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 like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at s_lifnr
gv_lifnr = s_lifnr-low.

***
some perform.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244922#M1211942</guid>
      <dc:creator>p604431</dc:creator>
      <dc:date>2009-02-20T06:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244923#M1211943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Divya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to sort your select option-low &lt;/P&gt;&lt;P&gt;in ascending order to fetch the lowest value,&lt;/P&gt;&lt;P&gt;And like wise sort your select options high&lt;/P&gt;&lt;P&gt;in descending order so as to fetch the highest value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244923#M1211943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244924#M1211944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya,&lt;/P&gt;&lt;P&gt;selection table contains fields high,low,option ,sign...&lt;/P&gt;&lt;P&gt;looping at selection table gives u only the lower &amp;amp; upper limit..&lt;/P&gt;&lt;P&gt;not the complete set of values b/w them.&lt;/P&gt;&lt;P&gt;while retriving data &lt;/P&gt;&lt;P&gt;loop at s_lifnr&lt;/P&gt;&lt;P&gt;gv_lifnr1 = s_lifnr-low.&lt;/P&gt;&lt;P&gt;gv_lifnr2 = s_lifnr-high.&lt;/P&gt;&lt;P&gt;shift gv_lifnr1 left deleting leading 'IEQ'.&lt;/P&gt;&lt;P&gt;shift gv_lifnr2 left deleting leading 'IEQ'.&lt;/P&gt;&lt;P&gt; perform &amp;lt;&amp;gt; using gv_lifnr1.&lt;/P&gt;&lt;P&gt; perform&amp;lt;&amp;gt; using gv_lifnr1&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 07:15:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/5244924#M1211944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T07:15:35Z</dc:date>
    </item>
  </channel>
</rss>

