<?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 Select options help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106259#M737381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the the no. entered in select options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_FORM FOR ZMFORM-NFORM. "numeric type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when user enter 1 to 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to store 1000 lines to my internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i need to count or is there any simple or better procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Taran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Dec 2007 11:57:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-01T11:57:05Z</dc:date>
    <item>
      <title>Select options help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106259#M737381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count the the no. entered in select options &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_FORM FOR ZMFORM-NFORM. "numeric type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when user enter 1 to 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to store 1000 lines to my internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do i need to count or is there any simple or better procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Taran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2007 11:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106259#M737381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-01T11:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select options help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106260#M737382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tarun,&lt;/P&gt;&lt;P&gt;      In your case the select-options parameter which is S_FORM  is it self an internal table with fields sign, low, high, option. &lt;/P&gt;&lt;P&gt;     Simply apply the following sample code for your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_FORM FOR kna1-kunnr. "numeric type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_count type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table s_form lines v_count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write:/ 'The number of entries made in the select optiond is:', v_count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will serve your purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do reward if found use full.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2007 12:20:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106260#M737382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-01T12:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select options help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106261#M737383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all this should be a parameter and not a select-options, or you should have a select-options with no extension and no-intervals, as at most you are going to get only one value (I think).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many ways of doing this.&lt;/P&gt;&lt;P&gt;when reading the table itself&lt;/P&gt;&lt;P&gt;select * into itab up to n_records ......&lt;/P&gt;&lt;P&gt;when building your internal table itself records.&lt;/P&gt;&lt;P&gt;loop at all_data.&lt;/P&gt;&lt;P&gt;move-corresponding all_data to itab.&lt;/P&gt;&lt;P&gt;if syst-tabix le n_records.&lt;/P&gt;&lt;P&gt;  append itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you for the first n records, then you can do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab to n_records&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to last n records, then  you can do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : l_startrow type i.&lt;/P&gt;&lt;P&gt;describe table itab lines l_startrow.&lt;/P&gt;&lt;P&gt;subtract n_records from l_startrow.&lt;/P&gt;&lt;P&gt;loop at itab from l_startrow.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Albert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2007 12:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106261#M737383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-01T12:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select options help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106262#M737384</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 try this below logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:lips.&lt;/P&gt;&lt;P&gt;select-options: POSNR for lips-POSNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of it occurs 0,&lt;/P&gt;&lt;P&gt;     n1 type lips-posnr,&lt;/P&gt;&lt;P&gt;     end of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:v1 type i,&lt;/P&gt;&lt;P&gt;     v2 type i,&lt;/P&gt;&lt;P&gt;     v3 type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move posnr-low to v1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move posnr-high to v2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v3 = v2 - v1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do v3 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1 = v1 + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move v1 to it-n1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear:it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&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;move posnr-low to it-n1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it.&lt;/P&gt;&lt;P&gt;sort it by n1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ it-n1.&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;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2007 12:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106262#M737384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-01T12:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select options help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106263#M737385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey guys thanks for your support &lt;/P&gt;&lt;P&gt;i have build logic with the help previous sdn replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2007 13:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-help/m-p/3106263#M737385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-01T13:06:35Z</dc:date>
    </item>
  </channel>
</rss>

