<?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: Reading data from Select-options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980650#M703767</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;Refer following small code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here p_orgunt is select-option field&lt;/P&gt;&lt;P&gt;and t_org_list is my internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Looping through select-option field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT p_orgunt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move org unit from select-option field into t_org_list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wa_org-objid = p_orgunt-low.&lt;/P&gt;&lt;P&gt;      APPEND wa_org TO t_org_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 14:40:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-29T14:40:29Z</dc:date>
    <item>
      <title>Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980641#M703758</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;I have a select-option on the selection screen,I want to read that data into an internal table, how should I do that ?&lt;/P&gt;&lt;P&gt;Please help, its urgent.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dkaza&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:11:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980641#M703758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980642#M703759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select-option is itself an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u want the low value and high value of the select-option in the internal table as 2 rows??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980642#M703759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980643#M703760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT-OPTIONS are internal tables, so loop AT &amp;lt;select-option-name&amp;gt; to get the values you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT &amp;lt;SO&amp;gt;.
&amp;lt;SO&amp;gt;-SIGN : I for include, E for exclude
&amp;lt;SO&amp;gt;-OPTIONS for the test EQ, BT, etc.
&amp;lt;SO&amp;gt;-LOW for the first value
&amp;lt;SO&amp;gt;-HIGH for the high value (BT, NB)
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980643#M703760</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-10-29T14:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980644#M703761</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;PRE&gt;&lt;CODE&gt;  TYPES: BEGIN OF t_range,
         sign(1),
         option(2),
         low(40),
         high(40),
       END OF t_range.
  TYPES: ty_range TYPE STANDARD TABLE OF t_range.
  DATA:    wa_range   TYPE t_range,
              r_range    TYPE ty_range.

    loop at select-option.
      move-corresponding select-option to wa_range.
      append wa_range to r_range.
      clear wa_range.
    endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980644#M703761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980645#M703762</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;I have the select option for material number.Now once the user enters the material numbers I want to read all those material numbers into a particular table and then for all these records I want to do a database fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to use READ Table but it doec not help the way I wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980645#M703762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980646#M703763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;tables mara.&lt;/P&gt;&lt;P&gt;data itab like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;select-options: s_matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select * from mara into table itab where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:/...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;kc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:18:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980646#M703763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980647#M703764</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 want to fetch the records for all the values in the select options, you do it directly as &lt;/P&gt;&lt;P&gt;Select * from database_table into i_tab &lt;/P&gt;&lt;P&gt;     where field in select_option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:s_vstel FOR tvst-vstel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT vstel INTO TABLE i_vstel FROM tvst&lt;/P&gt;&lt;P&gt;       WHERE vsttel IN s_vstel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Muthu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980647#M703764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980648#M703765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepti,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES : marc.
SELECT-OPTIONS: s_matnr FOR marc-matnr.
DATA : BEGIN OF itab OCCURS 0,
matnr LIKE marc-matnr,
END OF itab.

START-OF-SELECTION.
  SELECT matnr INTO TABLE itab FROM marc
  WHERE matnr IN s_matnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Perez C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980648#M703765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980649#M703766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the select options in a select statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS: SO-MFRPN FOR MARA-MFRPN.

SELECT * INTO TABLE T_MARA
  FROM MARA
  WHERE MFRPN IN SO-MFRPN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(Remember, there is a conversion exit on MATNR, so ranges are  not adequate for this field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980649#M703766</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-10-29T14:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980650#M703767</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;Refer following small code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here p_orgunt is select-option field&lt;/P&gt;&lt;P&gt;and t_org_list is my internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Looping through select-option field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT p_orgunt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move org unit from select-option field into t_org_list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      wa_org-objid = p_orgunt-low.&lt;/P&gt;&lt;P&gt;      APPEND wa_org TO t_org_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980650#M703767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading data from Select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980651#M703768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for ur help, its working good now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 16:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-data-from-select-options/m-p/2980651#M703768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T16:36:43Z</dc:date>
    </item>
  </channel>
</rss>

