<?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/3724915#M896536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:lfm1 .&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 like lfm1-lifnr,&lt;/P&gt;&lt;P&gt;        EKORG like lfm1-EKORG,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:s_EKORG for lfm1-EKORG .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr&lt;/P&gt;&lt;P&gt;       ekorg&lt;/P&gt;&lt;P&gt;       from lfm1&lt;/P&gt;&lt;P&gt;       into table itab&lt;/P&gt;&lt;P&gt;       where ekorg in s_ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-lifnr,&lt;/P&gt;&lt;P&gt;        itab-ekorg.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi here if you give the select options blank..then it will fecth all the data ...and if you give the values in the s_ekorg-low and in the high it will bring the data in between..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Apr 2008 19:48:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-29T19:48:26Z</dc:date>
    <item>
      <title>select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724911#M896532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a report where I have to use SELECT-OPTIONS for vendor number. If user does not enter the vendor number (vendor-low and vendor-high are blanks) then I have to select records for all vendors.  If user enters a range or individual vendor numbers and I have to select only the entered vendor numbers. How I can do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 19:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724911#M896532</guid>
      <dc:creator>manoj_goyal2</dc:creator>
      <dc:date>2008-04-29T19:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724912#M896533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;select-option: venno for lfa1-lifnr.


select fieldA  field B fieldC into ITAB from table LFA1 where
                                               lifnr IN venno.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this with your variables and parameters. It would do your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 19:39:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724912#M896533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T19:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724913#M896534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just use select-options : s_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in your selection query, use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;lifnr in S_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the system will automatically take care of the rest. ..that means, the system will pick only those vendors, if something is specified in s_lifnr,  else, it will pick for all vendors..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP is intelligent, right ?? &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 19:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724913#M896534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T19:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724914#M896535</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 works in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have a select options with no data and use this in a select statement, all possibilities in this select options are selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:select options so_bukrs is initial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and you have this select:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so_bukrs for t001-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from t001&lt;/P&gt;&lt;P&gt;into table t_t001&lt;/P&gt;&lt;P&gt;where bukrs in so_burks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_t001 will have all records of table t001&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Is this not happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this Select-options related to vendor? Or in your select statement are you using IN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: so_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from t001&lt;/P&gt;&lt;P&gt;into table t_t001&lt;/P&gt;&lt;P&gt;where bukrs &lt;STRONG&gt;IN&lt;/STRONG&gt; so_burks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 19:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724914#M896535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T19:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724915#M896536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:lfm1 .&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 like lfm1-lifnr,&lt;/P&gt;&lt;P&gt;        EKORG like lfm1-EKORG,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:s_EKORG for lfm1-EKORG .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr&lt;/P&gt;&lt;P&gt;       ekorg&lt;/P&gt;&lt;P&gt;       from lfm1&lt;/P&gt;&lt;P&gt;       into table itab&lt;/P&gt;&lt;P&gt;       where ekorg in s_ekorg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-lifnr,&lt;/P&gt;&lt;P&gt;        itab-ekorg.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi here if you give the select options blank..then it will fecth all the data ...and if you give the values in the s_ekorg-low and in the high it will bring the data in between..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 19:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724915#M896536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T19:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724916#M896537</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 vendor IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;          LOOP AT tvendor.&lt;/P&gt;&lt;P&gt;               IF vendor-sign EQ 'I'.&lt;/P&gt;&lt;P&gt;                Make range over here.&lt;/P&gt;&lt;P&gt;               ENDIF.&lt;/P&gt;&lt;P&gt;        ENDLOOP.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use this range int ur select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from table into internaltable where vendor in range_vendor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kinjal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Apr 2008 20:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3724916#M896537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-29T20:31:47Z</dc:date>
    </item>
  </channel>
</rss>

