<?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 progress bar indicator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582962#M862587</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;Can any one provide me the code for displaying the progress bar indicator&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, 29 Mar 2008 06:20:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-29T06:20:02Z</dc:date>
    <item>
      <title>progress bar indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582962#M862587</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;Can any one provide me the code for displaying the progress bar indicator&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, 29 Mar 2008 06:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582962#M862587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-29T06:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: progress bar indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582963#M862588</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;PRE&gt;&lt;CODE&gt;data : TEXT type string value 'Program is Running'.
 CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'                EXPORTING                                          
        TEXT =  text.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Morris Bond.&lt;/P&gt;&lt;P&gt;Reward Points if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 06:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582963#M862588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-29T06:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: progress bar indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582964#M862589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Biju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code helps you to create in two differnt ways..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : LENGTH TYPE I.
  DATA: V_STRING TYPE STRING.

  DESCRIBE TABLE ITAB LINES LENGTH.

  DO LENGTH TIMES.
    V_STRING = SY-INDEX.
    CONCATENATE V_STRING ' records selected ' INTO V_STRING
    SEPARATED BY SPACE.
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
              PERCENTAGE = SY-INDEX
              TEXT       = V_STRING.
  ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DO 4 TIMES.
    INDEX = SY-INDEX * 25.
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
         EXPORTING
     PERCENTAGE = INDEX
     TEXT       = 'Please wait while ARE1 Number is Generating........'.
    WAIT UP TO 1 SECONDS.
  ENDDO.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~&lt;SUB&gt;Lakshmiraj&lt;/SUB&gt;~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 06:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582964#M862589</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2008-03-29T06:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: progress bar indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582965#M862590</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;REPORT ZGUIBAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: A LIKE SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 100 TIMES.&lt;/P&gt;&lt;P&gt;  DO 300 TIMES.&lt;/P&gt;&lt;P&gt;    GET TIME.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  A(3) = SY-INDEX.A+3 = '%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            PERCENTAGE = SY-INDEX&lt;/P&gt;&lt;P&gt;            TEXT       = A.&lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vasavi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 17:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582965#M862590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-29T17:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: progress bar indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582966#M862591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Biju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I process a list of records I use the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: ld_text(50)        type c.
DATA: ld_count           type i.
DATA: ld_perc             type i.

DESCRIBE TABLE gt_outtab.  " fills sy-tfill
ld_count = syst-tfill.

LOOP AT gt_outtab INTO ls_outtab.

  ld_perc = ( syst-tabix * 100 ) / ld_count.
  CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    EXPORTING
      percentage = ld_perc
      text           = ld_text.
...
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 19:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582966#M862591</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-03-29T19:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: progress bar indicator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582967#M862592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Biju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may use below form routine. There is the small advantage that you can call it &lt;/P&gt;&lt;P&gt;to display a text only&lt;/P&gt;&lt;P&gt;  PERFORM sapgui_progress_indicator USING 'Here comes my text' 0 0.&lt;/P&gt;&lt;P&gt;or with a progress indication i.e. in a loop&lt;/P&gt;&lt;P&gt;  PERFORM sapgui_progress_indicator USING 'progress' sy-tabix  sy-tfill.&lt;/P&gt;&lt;P&gt;It will no display more often than once per second, so yourt program will not slow down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  SAPGUI_PROGRESS_INDICATOR
*&amp;amp;---------------------------------------------------------------------*
form sapgui_progress_indicator
  using
  p_text                                  type c
  p_share                                 type sytfill
  p_total                                 type sytfill.
  statics:
    lv_time                               like sy-uzeit,
    lv_txt                                type text80.
  data:
    lv_seconds_since_lastcall             type sytfill,
    lv_share                              type p,
    lv_pct                                type sytfill,
    lv_txt1                               type tline-tdline,
    lv_txt2                               type tline-tdline.
  get time.
  lv_seconds_since_lastcall               = sy-uzeit - lv_time.
  check lv_seconds_since_lastcall         &amp;gt;= 1 or lv_txt &amp;lt;&amp;gt; p_text.
  lv_txt                                  = p_text.
  lv_time                                 = sy-uzeit.
  if p_total                              &amp;gt; 0.
    lv_share                              = p_share.
    lv_share                              = p_share.
    lv_pct                                = lv_share * 100 / p_total.
    write p_share to lv_txt1 left-justified.
    write p_total to lv_txt2 left-justified.
    concatenate
      p_text lv_txt1 '/' lv_txt2 into lv_txt1 separated by space.
    call function 'SAPGUI_PROGRESS_INDICATOR'
      exporting
        percentage = lv_pct
        text       = lv_txt1.
  else.
    call function 'SAPGUI_PROGRESS_INDICATOR'
         exporting
*             percentage                  = lv_pct
              text                        = p_text.
  endif.                               " p_total &amp;gt; 0.
endform.                               " SAPGUI_PROGRESS_INDICATOR

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2008 20:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/progress-bar-indicator/m-p/3582967#M862592</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-03-29T20:06:46Z</dc:date>
    </item>
  </channel>
</rss>

