<?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 dynamic select option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850087#M667858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Could some one please help to show how to accomplish my select using a seletion-option field rather then &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;UP TO 100 ROWS &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in my select statement.&lt;/P&gt;&lt;P&gt;This is how my code looks like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS:o_rows FOR tab-col OBLIGATORY DEFAULT '1' TO '100' NO-EXTENSION.

SELECT * FROM spfli
INTO CORRESPONDING FIELDS OF TABLE &amp;lt;fs_itab&amp;gt;
UP TO 100 ROWS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want the users should be able to give the number of rows to be selected using a SELECT-OPTIONS: o_rows rather then coding the number of rows in the code as I have done.&lt;/P&gt;&lt;P&gt;Thank every body for his or her input.&lt;/P&gt;&lt;P&gt;Nadin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 15:00:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T15:00:01Z</dc:date>
    <item>
      <title>dynamic select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850087#M667858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Could some one please help to show how to accomplish my select using a seletion-option field rather then &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;UP TO 100 ROWS &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in my select statement.&lt;/P&gt;&lt;P&gt;This is how my code looks like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS:o_rows FOR tab-col OBLIGATORY DEFAULT '1' TO '100' NO-EXTENSION.

SELECT * FROM spfli
INTO CORRESPONDING FIELDS OF TABLE &amp;lt;fs_itab&amp;gt;
UP TO 100 ROWS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want the users should be able to give the number of rows to be selected using a SELECT-OPTIONS: o_rows rather then coding the number of rows in the code as I have done.&lt;/P&gt;&lt;P&gt;Thank every body for his or her input.&lt;/P&gt;&lt;P&gt;Nadin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 15:00:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850087#M667858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T15:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850088#M667859</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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM spfli&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE &amp;lt;fs_itab&amp;gt;&lt;/P&gt;&lt;P&gt;where col1 in o_rows.&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;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 15:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850088#M667859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T15:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850089#M667860</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;May be this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters : p_rows like rseumod-tbmaxsel default 100.

start-of-selection.
    select *
       into corresponding fields of table i_mara
       up to p_rows rows
       from mara.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 15:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850089#M667860</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-10-04T15:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850090#M667861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Niyaz, thank you for your input. But it didn't work.&lt;/P&gt;&lt;P&gt;First I had the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR o_row.
 FREE  o_row.
o_row-sign = 'I'.
o_row-option = 'EQ'.

SELECT * FROM spfli
INTO CORRESPONDING FIELDS OF TABLE &amp;lt;fs_itab&amp;gt;
where col1 in o_rows.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is col1 the row column?&lt;/P&gt;&lt;P&gt;I had to initialize o_row bc it is an internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        nadin ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 15:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850090#M667861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic select option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850091#M667862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I still have a trouble solving this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztest.
field-symbols:
&amp;lt;fs_itab&amp;gt; type table of any.
&amp;lt;fs_wtab&amp;gt; type any.

start-of-selection.
SELECT * FROM spfli
INTO CORRESPONDING FIELDS OF TABLE &amp;lt;fs_itab&amp;gt;
UP TO 10 ROWS.

loop at &amp;lt;fs_itab&amp;gt; assigning &amp;lt;fs_wtab&amp;gt;
write: / ....
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have hard coded the UP TO 10 ROWS. But now I want the user to decide how many rows of date he wants to output.I therefore created a SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;This is how my code now looks like.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztest.

SELECT-OPTIONS: o_rows FOR tab-col OBLIGATORY DEFAULT '1' TO '100' NO-EXTENSION.

AT SELECTION-SCREEN.
o_rows-sign   = 'I'.
o_rows-option = 'BT'.
o_rows-low    = 1.
if o_rows-high is initial
o_rows-high = o_rows-low.
append o_rows.

start-of-selection.
 select * spfli
 into corresponding fields of table &amp;lt;fs_itab&amp;gt;
   up to o_rows rows.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it is still not working. Does some one have an idea how to solve this? &lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Nadin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 22:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-select-option/m-p/2850091#M667862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T22:19:36Z</dc:date>
    </item>
  </channel>
</rss>

