<?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 Loop through a selction screen internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191385#M128596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT-OPTIONS: so_perbl FOR ce22000-perbl.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;on the selection screen of the program to get range of fiscal period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to loop through the internal table &amp;lt;b&amp;gt;so_perbl&amp;lt;/b&amp;gt;and capture all the distinct values of the fiscal period. But when I look at the internal table in the debug mode it only has one record as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN OPTION LOW HIGH&lt;/P&gt;&lt;P&gt;I BT 2006005 2007006 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I capture all the fiscal periods in the range separately (2006005, 2006006, 20006007, 2006008...2007006)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another problem is what if the user enters one fiscal period to be excluded. How will I capture everything else? Any help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2006 16:24:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-28T16:24:38Z</dc:date>
    <item>
      <title>Loop through a selction screen internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191385#M128596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT-OPTIONS: so_perbl FOR ce22000-perbl.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;on the selection screen of the program to get range of fiscal period. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to loop through the internal table &amp;lt;b&amp;gt;so_perbl&amp;lt;/b&amp;gt;and capture all the distinct values of the fiscal period. But when I look at the internal table in the debug mode it only has one record as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIGN OPTION LOW HIGH&lt;/P&gt;&lt;P&gt;I BT 2006005 2007006 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I capture all the fiscal periods in the range separately (2006005, 2006006, 20006007, 2006008...2007006)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another problem is what if the user enters one fiscal period to be excluded. How will I capture everything else? Any help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 16:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191385#M128596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T16:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through a selction screen internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191386#M128597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;SIGN OPTION LOW HIGH&lt;/P&gt;&lt;P&gt;I &amp;lt;b&amp;gt;BT&amp;lt;/b&amp;gt; 2006005 2007006 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BT means between,so you will get all the records between those periods. ie (2006005, 2006006, 20006007, 2006008...2007006).&lt;/P&gt;&lt;P&gt;If you want them separetly,then you have to populate a range for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you enter a single value.&lt;/P&gt;&lt;P&gt;Option field value which was BT becomes &amp;lt;b&amp;gt;EQ&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 16:27:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191386#M128597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T16:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through a selction screen internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191387#M128598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get all the values for this select option, write a select on the check table of this field and get all the values for PERBL into another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_perbl,&lt;/P&gt;&lt;P&gt;        perbl like ce22000-perbl,&lt;/P&gt;&lt;P&gt;      end of i_perbl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select PERBL&lt;/P&gt;&lt;P&gt;  into table i_perbl&lt;/P&gt;&lt;P&gt;  from &amp;lt;check table&amp;gt;&lt;/P&gt;&lt;P&gt;  where perbl in s_perbl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 16:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191387#M128598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T16:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through a selction screen internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191388#M128599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. I looked at the field &amp;lt;b&amp;gt;perbl&amp;lt;/b&amp;gt; in table CE2000. The Check table field is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select &amp;lt;b&amp;gt;distinct&amp;lt;/b&amp;gt; PERBL
  into table i_perbl
  from &amp;lt;b&amp;gt;CE22000&amp;lt;/b&amp;gt;    "instead of check table
  where perbl in s_perbl.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 16:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191388#M128599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T16:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through a selction screen internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191389#M128600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;  Yes you can use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 16:54:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191389#M128600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through a selction screen internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191390#M128601</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;U can use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used type I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_num type i.&lt;/P&gt;&lt;P&gt;select-options : s_number for v_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of it_num occurs 0,&lt;/P&gt;&lt;P&gt;         value type i,&lt;/P&gt;&lt;P&gt;       end of it_num.&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;  DO.&lt;/P&gt;&lt;P&gt;    if s_number-low &amp;gt;= s_number-high.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      it_num-value = s_number-low.&lt;/P&gt;&lt;P&gt;      append it_num.&lt;/P&gt;&lt;P&gt;      clear it_num.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    s_number-low = s_number-low + 1.&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;  it_num-value = s_number-high.&lt;/P&gt;&lt;P&gt;  append it_num.&lt;/P&gt;&lt;P&gt;  clear it_num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GSR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 16:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-through-a-selction-screen-internal-table/m-p/1191390#M128601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T16:58:04Z</dc:date>
    </item>
  </channel>
</rss>

