<?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: Displaying program log during the program run in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456958#M1414985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope Write Statement with some messages would be better approach.&lt;/P&gt;&lt;P&gt;Using Process Indiactor each time will slow down the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ManasM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2010 09:27:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-20T09:27:34Z</dc:date>
    <item>
      <title>Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456956#M1414983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there dear ABAP'ers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got  a report, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT ... INTO itab .  

LOOP AT itab INTO item .
  ... [processing item] ..
  WRITE item-sometext .
ENDLOOP .

* &amp;gt; cumulated LOG displayed *
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The effect is that I receive a program log after program is finished. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display part of log each time item is processed? Something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT ... INTO itab .  

LOOP AT itab INTO item .
  ... [processing item] ..
  WRITE item-sometext .
* &amp;gt; line of the LOG appended and cumulated LOG displayed *
ENDLOOP .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe instead of WRITE I could use an GRID object, and each time item is processed I append a line to GRID and refresh it display. But it would be blikning probably each refresh occurs ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is such solution worthy of efforts? Uset wants to see which step is currently program processing. I thought about using a Process Indicator in status bar (CLOCK), bot some of steps would change quickly and user would not be able to read the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be thankful for tips. Regards. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456956#M1414983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T09:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456957#M1414984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just a possibility &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the 'wait' statement and show the GUI progress indicator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456957#M1414984</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-20T09:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456958#M1414985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope Write Statement with some messages would be better approach.&lt;/P&gt;&lt;P&gt;Using Process Indiactor each time will slow down the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ManasM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456958#M1414985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T09:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456959#M1414986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement &lt;STRONG&gt;WAIT&lt;/STRONG&gt; causes a switch in the work process, which is linked to the rollout and rollin of all loaded programs. For this reason, the time given in sec must not be less than one second, to avoid burdening the system with too many work process switches.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456959#M1414986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T09:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456960#M1414987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Kumar Manas Mishra&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But haw could I achieve this effect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: BEGIN OF itab OCCURS 0,
        item_1(50) ,
      END OF itab .
DATA: line LIKE LINE OF itab .

DATA: ctr_i TYPE i .
DATA: ctr_c(3) .

ctr_i = 1 .

DO 5 TIMES .
  ctr_c = ctr_i .
  CLEAR line .
  CONCATENATE 'This is a' ctr_c 'line of log.'
  INTO line SEPARATED BY SPACE .
  ctr_i = ctr_i + 1 .

  APPEND line TO itab .

ENDDO .

LOOP AT itab INTO line .
  WAIT UP TO 1 SECONDS.
  WRITE / line-item_1 .

ENDLOOP .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In example program above I have to wait 5 seconds to see the log. And the log is cumulated. Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;This is a  2 line of log.&lt;/P&gt;&lt;P&gt;This is a  3 line of log.&lt;/P&gt;&lt;P&gt;This is a  4 line of log.&lt;/P&gt;&lt;P&gt;This is a  5 line of log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whils I would like to see each line of log immediately when item is processed, so something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;after 1st second&amp;gt; output:&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;after 2nd second&amp;gt; output:&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;This is a  2 line of log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;after 3rd second&amp;gt; output:&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;This is a  2 line of log.&lt;/P&gt;&lt;P&gt;This is a  3 line of log.&lt;/P&gt;&lt;P&gt;... ... ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 09:55:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456960#M1414987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456961#M1414988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; im not sure whether the user can read the log within one second.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@piotr - if there is lot of records to be processed &lt;/P&gt;&lt;P&gt;then time taken should be considered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 10:12:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456961#M1414988</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-20T10:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456962#M1414989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF itab OCCURS 0,
        item_1(50) ,
      END OF itab .
DATA: line LIKE LINE OF itab .

DATA: ctr_i TYPE i .
DATA: ctr_c(3) .

ctr_i = 1 .

DO 5 TIMES .
  ctr_c = ctr_i .
  CLEAR line .
  CONCATENATE 'This is a' ctr_c 'line of log.'
  INTO line SEPARATED BY SPACE .
  ctr_i = ctr_i + 1 .

  APPEND line TO itab .

LOOP AT itab INTO line .
  WAIT UP TO 1 SECONDS.
WRITE / line-item_1 .

ENDLOOP .
ENDDO .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 10:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456962#M1414989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T10:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456963#M1414990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Kumar Manas Mishra&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result is that first I'm waiting few seconds and then such a log appears in one moment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;This is a  2 line of log.&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;This is a  2 line of log.&lt;/P&gt;&lt;P&gt;This is a  3 line of log.&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;This is a  2 line of log.&lt;/P&gt;&lt;P&gt;This is a  3 line of log.&lt;/P&gt;&lt;P&gt;This is a  4 line of log.&lt;/P&gt;&lt;P&gt;This is a  1 line of log.&lt;/P&gt;&lt;P&gt;This is a  2 line of log.&lt;/P&gt;&lt;P&gt;This is a  3 line of log.&lt;/P&gt;&lt;P&gt;This is a  4 line of log.&lt;/P&gt;&lt;P&gt;This is a  5 line of log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 10:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456963#M1414990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T10:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456964#M1414991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          percentage = v_percent&lt;/P&gt;&lt;P&gt;          text       = 'Processing, please wait.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we go this way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Increase the wait time so that user can see all the logs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 10:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456964#M1414991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T10:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456965#M1414992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunatelly, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;client seems to want the log to be presented as a cumulated list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 11:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456965#M1414992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T11:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456966#M1414993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Here|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1586302"&gt;&lt;/A&gt;; we have a WRITE-based solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 14:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456966#M1414993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T14:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying program log during the program run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456967#M1414994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this was a cross thread &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 15:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-program-log-during-the-program-run/m-p/6456967#M1414994</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-28T15:01:13Z</dc:date>
    </item>
  </channel>
</rss>

