<?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: WRITE output to internal table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346409#M1540108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, you are correct: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after my program finished I see some lines on the GUI which where done using the WRITE statement and I would like to have those lines in an e.g. internal table to save the content to e.g an application log or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Oct 2010 08:59:24 GMT</pubDate>
    <dc:creator>MichiFr</dc:creator>
    <dc:date>2010-10-08T08:59:24Z</dc:date>
    <item>
      <title>WRITE output to internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346407#M1540106</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;in one of my programs I'm using WRITE statements to write some lines out as a protocol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program does not run as a job or will not be called using the SUBMIT statement. Hence I cannot use the spool or the EXPORTING LIST TO MEMORY option to get this output into any internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if it's possible to grab the output done by the program and put it into an internal table using an alternate approach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 08:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346407#M1540106</guid>
      <dc:creator>MichiFr</dc:creator>
      <dc:date>2010-10-08T08:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE output to internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346408#M1540107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understand the issue correctly,my idea is download the output from program and upload into internal table.&lt;/P&gt;&lt;P&gt;Please correct me if it is wrong.\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 08:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346408#M1540107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T08:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE output to internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346409#M1540108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, you are correct: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after my program finished I see some lines on the GUI which where done using the WRITE statement and I would like to have those lines in an e.g. internal table to save the content to e.g an application log or similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 08:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346409#M1540108</guid>
      <dc:creator>MichiFr</dc:creator>
      <dc:date>2010-10-08T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE output to internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346410#M1540109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in one of my programs I'm using WRITE statements to write some lines out as a protocol. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This program does not run as a job or will not be called using the SUBMIT statement. Hence I cannot use the spool or the EXPORTING LIST TO MEMORY option to get this output into any internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if it's possible to grab the output done by the program and put it into an internal table using an alternate approach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe stupid answer, but if it's YOUR program, then you can code whatever you want, right ? &lt;/P&gt;&lt;P&gt;Just add the lines that you normally would send to the output, to an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or am I overlooking something ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346410#M1540109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T09:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE output to internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346411#M1540110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, certainly not a stupid answer of course! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, it's my own program, however, those WRITE statements are spread all over the main source and its countless includes so it would be easier to do this task when the program finishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 09:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346411#M1540110</guid>
      <dc:creator>MichiFr</dc:creator>
      <dc:date>2010-10-08T09:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE output to internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346412#M1540111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out the WRITE clauses for display data of internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9e1635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/EN/9f/db9e1635c111d1829f0000e829fbfe/content.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you  can put internal table's data into field catalog and can display that data through ALV Grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346412#M1540111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T10:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE output to internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346413#M1540112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this sniplet shoulg help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lin TYPE i, pag TYPE i.

DATA: gs_list TYPE string,
      gt_list TYPE TABLE OF string.

DO 30 TIMES.
  WRITE: / 'Zeile', sy-index.
ENDDO.

AT LINE-SELECTION.

  DESCRIBE LIST: NUMBER OF LINES lin INDEX 0.

  DO lin TIMES.

    READ LINE sy-index LINE VALUE INTO gs_list.

    APPEND gs_list TO gt_list.

  ENDDO.

  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      filename = 'C:\Temp\test.txt'
      filetype = 'ASC'
    TABLES
      data_tab = gt_list.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;REA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346413#M1540112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-08T10:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE output to internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346414#M1540113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WOW, THAT'S IT!  Works perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Ramy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Oct 2010 10:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-output-to-internal-table/m-p/7346414#M1540113</guid>
      <dc:creator>MichiFr</dc:creator>
      <dc:date>2010-10-08T10:37:18Z</dc:date>
    </item>
  </channel>
</rss>

