<?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: internal table with few records (Progress indicator) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088485#M1704915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;lv_percentage = ( sy-tabix * 100 ) / l_lines.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(Clock is displayed if percentage is at least 1, here each field is an integer so dividing gives only 0 until the last record where it gives 100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Read the&lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-19331"&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: #3778c7; background-color: white;"&gt;Rules of Engagement&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2012 15:00:51 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2012-10-30T15:00:51Z</dc:date>
    <item>
      <title>internal table with few records (Progress indicator)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088484#M1704914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a it_tab internal table with 10 records.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;loop at it_tab into wa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; perform progress_indicator. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; perform Process_data1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt; perform process_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; perform process_data3. &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;&lt;/P&gt;&lt;P&gt;the performs process_data1, data2 ,data3&amp;nbsp; has so many internal statements &lt;/P&gt;&lt;P&gt;and takes long runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to show the user a progress indicator on the &lt;/P&gt;&lt;P&gt;screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form progress_indicator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_percentage = ( sy-tabix / l_lines ) * 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if lv_percentage gt lv_percent or lv_tabix eq 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; percentage = lv_percentage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = lv_text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lv_percent = lv_percentage.&lt;/P&gt;&lt;P&gt;&amp;nbsp; endif.&lt;/P&gt;&lt;P&gt;endform,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing problem that the progress indicator &lt;/P&gt;&lt;P&gt;does not show until the loop ends, it just appears&lt;/P&gt;&lt;P&gt;once , I want to show the indicator continuously&lt;/P&gt;&lt;P&gt;on the screen as long as the loop runs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 14:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088484#M1704914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-30T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with few records (Progress indicator)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088485#M1704915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;lv_percentage = ( sy-tabix * 100 ) / l_lines.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(Clock is displayed if percentage is at least 1, here each field is an integer so dividing gives only 0 until the last record where it gives 100)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Read the&lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-19331"&gt;&lt;SPAN style="font-size: 9pt; font-family: Arial, sans-serif; color: #3778c7; background-color: white;"&gt;Rules of Engagement&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 15:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088485#M1704915</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-10-30T15:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with few records (Progress indicator)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088486#M1704916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to be a re-phrasing of your other discussion created yesterday, &lt;A __default_attr="3258572" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://community.sap.com/"&gt;&lt;/A&gt; I would try to keep all the information in a single discussion so that folks replying have all the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 15:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088486#M1704916</guid>
      <dc:creator>amy_king</dc:creator>
      <dc:date>2012-10-30T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: internal table with few records (Progress indicator)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088487#M1704917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, please stick to one discussion per issue, follow up on older ones, also try solving problems yourself before posting, if you succeed, your learning curve will be steeper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Locked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 15:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-few-records-progress-indicator/m-p/9088487#M1704917</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-10-30T15:19:10Z</dc:date>
    </item>
  </channel>
</rss>

