<?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 FM SAPGUI_PROGRESS_INDICATOR is affecting the performance? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467273#M14927</link>
    <description>&lt;P&gt;Hi all,&lt;BR /&gt;I have a report that select a lot of data from database.&lt;/P&gt;
  &lt;P&gt;When I'm procesing the data I put a call to FM &lt;/P&gt;
  &lt;P&gt;SAPGUI_PROGRESS_INDICATOR to display the progress.&lt;/P&gt;
  &lt;P&gt;I'm using transaction SAT to measure the performance and I've seen this:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/50310-performance.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Is possible that the call to ths FM is affecting the performance a lot?&lt;/P&gt;
  &lt;P&gt;Or I misinterpreted the result of this?&lt;/P&gt;
  &lt;P&gt;The result list is ordered by Gross time downwards.&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 16:20:00 GMT</pubDate>
    <dc:creator>oliver_am</dc:creator>
    <dc:date>2017-07-11T16:20:00Z</dc:date>
    <item>
      <title>FM SAPGUI_PROGRESS_INDICATOR is affecting the performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467273#M14927</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I have a report that select a lot of data from database.&lt;/P&gt;
  &lt;P&gt;When I'm procesing the data I put a call to FM &lt;/P&gt;
  &lt;P&gt;SAPGUI_PROGRESS_INDICATOR to display the progress.&lt;/P&gt;
  &lt;P&gt;I'm using transaction SAT to measure the performance and I've seen this:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/50310-performance.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Is possible that the call to ths FM is affecting the performance a lot?&lt;/P&gt;
  &lt;P&gt;Or I misinterpreted the result of this?&lt;/P&gt;
  &lt;P&gt;The result list is ordered by Gross time downwards.&lt;/P&gt;
  &lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467273#M14927</guid>
      <dc:creator>oliver_am</dc:creator>
      <dc:date>2017-07-11T16:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAPGUI_PROGRESS_INDICATOR is affecting the performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467274#M14928</link>
      <description>&lt;P&gt;It does affect performance, it has to message the frontend about the progress. So dont call it too often, or make sure there is some processing between each step. &lt;/P&gt;
  &lt;P&gt;Possible fixes:&lt;/P&gt;
  &lt;P&gt;a: add IF count MOD 1000 = 0. then show progress, &lt;/P&gt;
  &lt;P&gt;b: use CL_PROGRESS_INDICATOR, it has a built in check to make sure progress is not shown too often&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467274#M14928</guid>
      <dc:creator>larshp</dc:creator>
      <dc:date>2017-07-11T16:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAPGUI_PROGRESS_INDICATOR is affecting the performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467275#M14929</link>
      <description>&lt;P&gt;That's right.&lt;/P&gt;
  &lt;P&gt;More information can be found in these notes:&lt;/P&gt;
  &lt;UL&gt;
   &lt;LI&gt;422861 (SIN SetGet parameter) &lt;A href="https://launchpad.support.sap.com/#/notes/422861/E"&gt;https://launchpad.support.sap.com/#/notes/422861/E&lt;/A&gt; &lt;/LI&gt;
  &lt;/UL&gt;
  &lt;UL&gt;
   &lt;LI&gt;51373 (Problems with progress indicator at WAN connection) &lt;A href="https://launchpad.support.sap.com/#/notes/51373/E"&gt;https://launchpad.support.sap.com/#/notes/51373/E&lt;/A&gt; &lt;/LI&gt;
  &lt;/UL&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467275#M14929</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-07-11T16:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: FM SAPGUI_PROGRESS_INDICATOR is affecting the performance?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467276#M14930</link>
      <description>&lt;P&gt;Ok, thanks I've changed the code to call the FM only 20 times, each 5 %.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;lv_cont_20 = lines( lt_table ) / 20.&lt;BR /&gt;&lt;BR /&gt;lv_cont = lv_cont_20.&lt;BR /&gt;&lt;BR /&gt;LOOP AT lt_table.&lt;BR /&gt;&lt;BR /&gt;  IF sy-tabix = lv_cont.&lt;BR /&gt;&lt;BR /&gt;  ADD lv_cont_20 TO lv_cont.&lt;BR /&gt;&lt;BR /&gt;  CALL METHOD cl_progress_indicator=&amp;gt;progress_indicate&lt;BR /&gt;  EXPORTING&lt;BR /&gt;  i_text  = lv_text&lt;BR /&gt;  i_processed = sy-tabix&lt;BR /&gt;  i_total  = lines( lt_table ).&lt;BR /&gt;  ENDIF.&lt;BR /&gt;&lt;BR /&gt;"...&lt;BR /&gt;ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 07:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fm-sapgui-progress-indicator-is-affecting-the-performance/m-p/467276#M14930</guid>
      <dc:creator>oliver_am</dc:creator>
      <dc:date>2017-07-12T07:24:32Z</dc:date>
    </item>
  </channel>
</rss>

