<?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 reading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862499#M671296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Afzal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to print the numbers entered in the Select-options, I would use a Select statement to fetch those values from the Customer Master table and then print...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Report ztest.

TABLES: kna1.

SELECT-OPTIONS: s_kunnr FOR kna1-kunnr.

TYPES: BEGIN OF i_kunnr,
        kunnr TYPE kna1-kunnr,
       END OF i_kunnr.

DATA: i_kunnr TYPE STANDARD TABLE OF i_kunnr,
      wa_kunnr LIKE LINE OF i_kunnr.

START-OF-SELECTION.

SELECT kunnr FROM kna1 INTO TABLE i_kunnr
                       WHERE kunnr IN s_kunnr.

LOOP at i_kunnr INTO wa_kunnr.
  WRITE: / wa_kunnr.
  CLEAR wa_kunnr.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&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;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 13:53:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-03T13:53:35Z</dc:date>
    <item>
      <title>select options reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862494#M671291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai gurus can any one tell me how to read the values from a select-option&lt;/P&gt;&lt;P&gt;for example i use select options for customer number between 1 to 100&lt;/P&gt;&lt;P&gt;i want to print each value given on options based on sign and option&lt;/P&gt;&lt;P&gt;for ex if i give i bt 1 to 100&lt;/P&gt;&lt;P&gt;then it should print the values from 1 to 100&lt;/P&gt;&lt;P&gt;if i use e then it should print 2 to 99 and so on&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;afzal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 13:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862494#M671291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T13:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: select options reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862495#M671292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Afzal..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : S_DATE FOR SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT S_DATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CASE S_DATE-OPTION &lt;/P&gt;&lt;P&gt;   WHEN  'BT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Write:/ 'From ' , s_date-low , 'To ', s_date-High.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   WHEN 'NB'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Write:/ 'Equals to ' , s_date-low .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 13:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862495#M671292</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-03T13:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: select options reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862496#M671293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi afzal,&lt;/P&gt;&lt;P&gt;By entering values in the select option, you are not fetching anything from the database?&lt;/P&gt;&lt;P&gt;Let me know if you are not fetching anything from the database table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 13:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862496#M671293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T13:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: select options reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862497#M671294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Be careful: E BT 1 100 will not take interval 1-100 excluding the limits 1 and 100. It will take all the values which ARE NOT in this interval, i.e. all values lower than 1 or greater than 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 13:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862497#M671294</guid>
      <dc:creator>former_member194797</dc:creator>
      <dc:date>2007-10-03T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: select options reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862498#M671295</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;You can use the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables : bsis.

data : count type i.

select-OPTIONS : num for bsis-buzei.

INITIALIZATION.

count = 1.

start-of-SELECTION.

do num-high times.

if count = 1.
  count = num-low.
  write : / count.
  count = count + 1.
else.
  write : / count.
  count = count + 1.
endif.

if count GT num-high.
 exit.
ENDIF.


enddo.

if num-high is initial.
write :/ num-low.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 13:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862498#M671295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T13:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: select options reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862499#M671296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Afzal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to print the numbers entered in the Select-options, I would use a Select statement to fetch those values from the Customer Master table and then print...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Report ztest.

TABLES: kna1.

SELECT-OPTIONS: s_kunnr FOR kna1-kunnr.

TYPES: BEGIN OF i_kunnr,
        kunnr TYPE kna1-kunnr,
       END OF i_kunnr.

DATA: i_kunnr TYPE STANDARD TABLE OF i_kunnr,
      wa_kunnr LIKE LINE OF i_kunnr.

START-OF-SELECTION.

SELECT kunnr FROM kna1 INTO TABLE i_kunnr
                       WHERE kunnr IN s_kunnr.

LOOP at i_kunnr INTO wa_kunnr.
  WRITE: / wa_kunnr.
  CLEAR wa_kunnr.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&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;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 13:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862499#M671296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T13:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: select options reading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862500#M671297</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;sign E mean not only excluding the first and last values.it will exclude the range from low value to high value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 13:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-reading/m-p/2862500#M671297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T13:59:13Z</dc:date>
    </item>
  </channel>
</rss>

