<?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: How to create a spool? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026093#M82467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just use sy-spono it will hold the spool created by you in this session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;if you find the answers helpful, click on the radio buttons to reward the answers and if the question is answered mark it as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more about this at&lt;/P&gt;&lt;P&gt;/people/mark.finnern/blog/2004/08/10/spread-the-love&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2005 13:00:48 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2005-12-13T13:00:48Z</dc:date>
    <item>
      <title>How to create a spool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026090#M82464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, some answers would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an ABAP program there is this internal table full of data, and I have to write its contents into a PDF. The only way it seems is to make a spool and then use CONVERT_ABAPSPOOLJOB_2_PDF function to convert that spool into PDF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is how do I make a spool within the ABAP program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 11:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026090#M82464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a spool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026091#M82465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Welcome to SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the following code sample to create spool withing program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: loc_dest like pri_params-pdest .
  clear : wf_listname , loc_dest , wf_listtext .
  move: 'List name' to   wf_listname .
  move: 'List header text' to   wf_listtext .

 select single spld into usr01-spld from usr01 where bname eq sy-uname .
  if sy-subrc eq 0 .
    move: usr01-spld to loc_dest .
  endif .
  call function 'GET_PRINT_PARAMETERS'
       exporting
            destination    = loc_dest
            copies         = wf_copies
            list_name      = wf_listname
            list_text      = wf_listtext
            immediately    = ' '
            release        = ' '
            new_list_id    = 'X'
            expiration     = wf_days
            line_size      = 200
            line_count     = 65
            layout         = 'X_65_200'
            sap_cover_page = 'X'
            receiver       = 'SAP*'
            department     = ''
            no_dialog      = 'X'
       importing
            out_parameters = wf_params
            valid          = wf_valid.

  if wf_valid &amp;lt;&amp;gt; space.
    new-page print on parameters wf_params no dialog.
    perform write_summary .
    new-page print off.
  endif .

within the write_summary do a normal write operation.
loop at &amp;lt;itab&amp;gt; .
write:/
endloop .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 11:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026091#M82465</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-12-13T11:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a spool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026092#M82466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that solves part of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One last question though: how to get the spool id of that particular spool? The only thing I can think of is to get all the spool requests and get the latest request?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 12:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026092#M82466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T12:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a spool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026093#M82467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just use sy-spono it will hold the spool created by you in this session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;if you find the answers helpful, click on the radio buttons to reward the answers and if the question is answered mark it as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;more about this at&lt;/P&gt;&lt;P&gt;/people/mark.finnern/blog/2004/08/10/spread-the-love&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 13:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026093#M82467</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-12-13T13:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a spool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026094#M82468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can retriev the spool id by doing a SELECT on TSP01 table.&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;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 13:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026094#M82468</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-13T13:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a spool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026095#M82469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, when I try to do simple write as per the instructions, i get an ABAP dump with Internal error: Invalid page number.&lt;/P&gt;&lt;P&gt;Illegal Page Number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no idea why this is happening. anyclu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lakhbir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2005 19:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026095#M82469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-19T19:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a spool?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026096#M82470</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 u Plz send one complete program for 'to generate spool request for an Interal table data and then pass that spool req. to RSTXPDFT4 pgm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank U&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 11:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-spool/m-p/1026096#M82470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T11:22:51Z</dc:date>
    </item>
  </channel>
</rss>

