<?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 select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741893#M322254</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;As mention by Eswar it is better to use the select-options in a select statement to avoid complications..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use LOOP AT S_LIFNR..and move it to an internal table if you have the following in your code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) if no-intervals is given For select-options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if you have restricted the user to give only "equal to" option using the FM SELECT_OPTIONS_RESTRICT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2006 06:42:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-21T06:42:49Z</dc:date>
    <item>
      <title>Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741884#M322245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a selection-criteria for a variable. I want to copy all the values corresponding to that selection-criteria into an internal table. suppose&lt;/P&gt;&lt;P&gt;select-options: s_lifnr like.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;           lifnr ....&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in selection screen i have entered range of values for s_lifnr. i  want to copy all the values corresponding to that selection-criteria into itab. How can i do this...please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741884#M322245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741885#M322246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select-options field is creating strcuture like ranges. so, you can loop at s_lifnr and copy all required fields/values to your internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741885#M322246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741886#M322247</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;Select option is an internal table. So s_lifnr in your program would map to an internal table .&lt;/P&gt;&lt;P&gt;So you can copy the range of values in ITAB as under:&lt;/P&gt;&lt;P&gt;LOOP AT S_LIFNR[].&lt;/P&gt;&lt;P&gt;IF S_LIFNR-HIGH is initial.&lt;/P&gt;&lt;P&gt;itab-lifnr = s_lifnr-low.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;select lifnr  from lfa1&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt; where lifnr &amp;gt;= S_lifnr-low&lt;/P&gt;&lt;P&gt;ANd lifnr &amp;lt;= S_lifnr-high.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chetan.&lt;/P&gt;&lt;P&gt;PS:Reward points if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741886#M322247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741887#M322248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at s_lifnr .
itab-lifnr = s_lifnr-low .
append itab .
clear itab.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741887#M322248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741888#M322249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subhakar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way you are expecting can cause problem as in selection-screen, you can exclude, negotiate the value or ranges...&lt;/P&gt;&lt;P&gt;You can expect the correct result only with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options: s_lifnr for lfa1-lifnr.

data: begin of itab occurs 0,
        lifnr type lifnr,
      end of itab.
      
select lifnr into table itab from lfa1 where lifnr in s_lifnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code works as LIFNR has a master table. If you are looking for a non master table, i guess it will lead to complications...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741888#M322249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741889#M322250</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;Select options itself is a internal table with four fields low,high,sign,option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you loop at s_lifnr,you can get the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_lifnr.&lt;/P&gt;&lt;P&gt;write : / s_lifnr-low, s_lifnr-high, s_lifnr-sign, s_lifnr-option.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741889#M322250</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-21T06:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741890#M322251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;write query like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from dbtab into corresponding fields of table Itab where &lt;/P&gt;&lt;P&gt;lifnr in s_lifnr " ur select option name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example code - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables pa0001.  &lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;select-options : s_pernr for  pa0001-pernr.     &lt;/P&gt;&lt;P&gt;select * from pa0001 into corresponding fields of table itab where pernr in s_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Amit Tyagi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741890#M322251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741891#M322252</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;Please see below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at s_lifnr into wa_lifnr.
if s_lifnr-high is initial.
itab-lifnr = wa_lifnr-low.
append itab.
else.
 do.
   if wa_lifnr-low &amp;gt; wa_lifnr-high.
    exit.
   endif.
   itab-lifnr = wa_lifnr-low.
   append itab.
   wa_lifnr-low = wa_lifnr-low + 1.   
 enddo.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Bhupal Reddy Vendidandi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741891#M322252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741892#M322253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just check this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables : vbak.
select-options : so_vbeln for vbak-vbeln.

data : begin of itab occurs 0,
       vbeln like vbak-vbeln,
       end of itab.

start-of-selection.
      select vbeln into table itab from vbak
      where vbeln
      between so_vbeln-low and so_vbeln-high. "like this 


       loop at itab.
       write:/ itab-vbeln.
       endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using between to fill the itab to split the range .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741892#M322253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741893#M322254</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;As mention by Eswar it is better to use the select-options in a select statement to avoid complications..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use LOOP AT S_LIFNR..and move it to an internal table if you have the following in your code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) if no-intervals is given For select-options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) if you have restricted the user to give only "equal to" option using the FM SELECT_OPTIONS_RESTRICT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741893#M322254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741894#M322255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;forgot to add for parameter when select -option high is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables : vbak.
select-options : so_vbeln for vbak-vbeln.

data : begin of itab occurs 0,
       vbeln like vbak-vbeln,
       end of itab.

start-of-selection.
if so_vbeln-high ne ' '.
      select vbeln into table itab from vbak
      where vbeln
      between so_vbeln-low and so_vbeln-high. "takes care of select-options
else.
      select vbeln into table itab from vbak  "takes care of parameter
      where vbeln = so_vbeln-low .

endif.

       loop at itab.
       write:/ itab-vbeln.
       endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if this works for u ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assumption is if at all u give a parameter then check for the valid entry in the corresponding table .. cause we proceed with the range but the hits will be limited .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use at selection screen to filter out any wrong entries .&lt;/P&gt;&lt;P&gt;u can enhance the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see if this is working for one entry in the select-option for a parameter like and then check for the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 06:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741894#M322255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T06:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741895#M322256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the backup Naren, but Subhakar seems to be having different ideas..:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 07:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741895#M322256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T07:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741896#M322257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:):)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Naren and Eswar i'm Vijay &lt;/P&gt;&lt;P&gt; .. glad that the problem is fixed ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 07:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-options/m-p/1741896#M322257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T07:15:44Z</dc:date>
    </item>
  </channel>
</rss>

