<?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: Clearing the list created by 'WRITE' statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775662#M646904</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;I need to export the list (created by 'WRITE' statements) to memory and then read the memory to pass it to workflow. Then I need to create a different list and then export it again to memory so I need to clear (or delete) the previous list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhupendra Singhal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2007 14:42:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-31T14:42:46Z</dc:date>
    <item>
      <title>Clearing the list created by 'WRITE' statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775658#M646900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does a 'WRITE' statement do? Does it put data into spool or buffer or somewhere elser? Which one? And how to see this spool/buffer before the list is displayed on the screen? Also is there a way to clear this spool/buffer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I need to use 'Write' statement to create a list and then somewhere down in the program I need to clear this list before it is displayed on the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhupendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 14:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775658#M646900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T14:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the list created by 'WRITE' statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775659#M646901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;write statement just writes the data to the output.NO SPOOL IS GENERATED when you display a report through write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to generate a spool then press the print button on the menu bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont think you can clear the thingh you have written.&lt;/P&gt;&lt;P&gt;Instead you can again write ' ' repetedly on the same column row positions so that it will over write the data and write ' '.i.e space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please explain your question more clearly if you want some more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why do you want to write then clear before it get displayed???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;vivekanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 14:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775659#M646901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T14:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the list created by 'WRITE' statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775660#M646902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic ABAP statement for displaying data on the screen is WRITE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE  can be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· any data object (see Data Objects)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· a field symbol or formal parameter (see Working with Field Symbols).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· a text symbol (see  Maintaining Text Elements)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e2335c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e2335c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 14:39:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775660#M646902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T14:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the list created by 'WRITE' statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775661#M646903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is stored in a sort of "Buffer", you can write it and get the results in an internal table without having to either write to a spool, or write it to the screen. Here is an example program.  internal table IASCII will have the output in readable format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report  zrich_0001.

data: ilist type table of  abaplist with header line.
data: iacii type table of string with header line.

do 100 times.
  write:/ sy-index.
enddo.

call function 'SAVE_LIST'
     tables
          listobject         = ilist
     exceptions
          list_index_invalid = 1
          others             = 2.

call function 'LIST_TO_ASCI'
     tables
          listasci           = iacii
          listobject         = ilist
     exceptions
          empty_list         = 1
          list_index_invalid = 2
          others             = 3.

call function 'LIST_FREE_MEMORY'
     tables
          listobject = ilist.

* You have the list in the IACII internal table, now you can
* avoid the output to the screen using this statement.
leave list-processing.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 14:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775661#M646903</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-31T14:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing the list created by 'WRITE' statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775662#M646904</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;I need to export the list (created by 'WRITE' statements) to memory and then read the memory to pass it to workflow. Then I need to create a different list and then export it again to memory so I need to clear (or delete) the previous list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhupendra Singhal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 14:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-the-list-created-by-write-statement/m-p/2775662#M646904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T14:42:46Z</dc:date>
    </item>
  </channel>
</rss>

