<?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: creating spool within a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804902#M345528</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;It can create a directory (it doesn't needs it is on server sap) who users and SAP server can be read and update, in this way this directory is a directory of Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try to create a program u read the spool (see fm RSPO&lt;STRONG&gt;SPOOL&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Nov 2006 19:44:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-30T19:44:19Z</dc:date>
    <item>
      <title>creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804894#M345520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a program that is creating a file and using GUI_DOWNLOAD to put the file on the user's machine. some of the processes are timing out so now I have to run the process in the background and have the process create a spool file and the user can then open the spool and save it to thier machine. I am not sure how to code to create a spool file. I found this code in another thread within this forum but I am not sure what it is doing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;select single spld into usr01-spld from usr01 where bname eq sy-uname .&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0 .&lt;/P&gt;&lt;P&gt;    move: usr01-spld to loc_dest .&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming that I will have to check weather the job is running in foreground or background so that I can execute the code for GUI_DOWNLOAD or create the spool. Is the code listed above all that I have to use to create the spool file or is there something esle that I need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 18:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804894#M345520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T18:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804895#M345521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if run inforeground use GUI_DOWNLOAD else just leave as such when run in background the spool is created which can be seen and downloaded later...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 18:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804895#M345521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T18:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804896#M345522</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;If you are running it in background for the spool creation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a simple WRITE statement would suffice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write : itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this is run in background the WRITE statement would automatically create a spool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 18:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804896#M345522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T18:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804897#M345523</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;What do you exactly mean with to create a spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to create a file in background you need only to use OPEN DATASET statament, so use this statament insted of GUI_DOWNLOAD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SY-BATCH = SPACE.
   CALL FUNCTION 'GUI_DOWNLOAD'
       .......................................
       TABLES
           DATA = T_FILE
ELSE.
    OPEN DATASET &amp;lt;FILE&amp;gt; IN TEXT MODE ENCODING DEFAULT.
    IF SY-SUBRC = 0.
      LOOP AT T_FILE.
          TRANSFER T_FILE TO &amp;lt;FILE&amp;gt;.
      ENDLOOP.
    ENDIF.
    CLOSE DATASET &amp;lt;FILE&amp;gt;.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to create prnt spool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF SY-BATCH = SPACE.
   CALL FUNCTION 'GUI_DOWNLOAD'
       .......................................
       TABLES
           DATA = T_FILE
ELSE.
    LOOP AT T_FILE.
       WRITE T_FILE
    ENDLOOP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 18:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804897#M345523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T18:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804898#M345524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was able to get the spool by using the write statement. the next problem I am having is that when view the spool, it only shows the first 10 pages.  also when I want to save the spool as a file, it looks like it is only saving the data for the first 10 pages.  is there a way that  I can save the whole file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 18:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804898#M345524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T18:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804899#M345525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it looks like a can get the whole file by selecting the Goto-&amp;gt;Display requests -&amp;gt; Setings and changing the page number from 10 to 999999. the next problem I am having is that it looks like I am getting the page break info. Is there a way to suppress this and just get the data lines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 18:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804899#M345525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T18:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804900#M345526</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;Why don't you create a file in APPLICATION SERVER and then transfer the file by FTP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 19:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804900#M345526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T19:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804901#M345527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we were thinking of that but I wanted to see it this was a option before I went the FTP route. with FTP, there comes the issue with usernames and password being stored in the program which is not what we want to do. There are also other issues with the FTP process that we would like to avoid if possible. that is why we are trying this first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 19:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804901#M345527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T19:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: creating spool within a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804902#M345528</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;It can create a directory (it doesn't needs it is on server sap) who users and SAP server can be read and update, in this way this directory is a directory of Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try to create a program u read the spool (see fm RSPO&lt;STRONG&gt;SPOOL&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Nov 2006 19:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-spool-within-a-program/m-p/1804902#M345528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-30T19:44:19Z</dc:date>
    </item>
  </channel>
</rss>

