<?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 data to spool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337893#M171352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT TO SAP-SPOOL &lt;/P&gt;&lt;P&gt;1.... DESTINATION dest ... COPIES cop &lt;/P&gt;&lt;P&gt;... LIST NAME name &lt;/P&gt;&lt;P&gt;... LIST DATASET dsn &lt;/P&gt;&lt;P&gt;... COVER TEXT text &lt;/P&gt;&lt;P&gt;... LIST AUTHORITY auth &lt;/P&gt;&lt;P&gt;... IMMEDIATELY flag &lt;/P&gt;&lt;P&gt;... KEEP IN SPOOL flag &lt;/P&gt;&lt;P&gt;... NEW LIST IDENTIFICATION flag &lt;/P&gt;&lt;P&gt;... DATASET EXPIRATION days &lt;/P&gt;&lt;P&gt;... LINE-COUNT lin &lt;/P&gt;&lt;P&gt;... LINE-SIZE col &lt;/P&gt;&lt;P&gt;... LAYOUT layout &lt;/P&gt;&lt;P&gt;... SAP COVER PAGE mode &lt;/P&gt;&lt;P&gt;... COVER PAGE flag &lt;/P&gt;&lt;P&gt;... RECEIVER rec &lt;/P&gt;&lt;P&gt;... DEPARTMENT dep &lt;/P&gt;&lt;P&gt;... ARCHIVE MODE armode &lt;/P&gt;&lt;P&gt;... ARCHIVE PARAMETERS arparams &lt;/P&gt;&lt;P&gt;... WITHOUT SPOOL DYNPRO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this fm &amp;lt;b&amp;gt;SLVC_TABLE_PS_TO_SP&amp;lt;/b&amp;gt;                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              RSPO_SX_OUTPUT_TEXTDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for internal table to spool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SLVC_TABLE_PS_TO_SPOOL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_file_length            = 255&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_SPOOLID                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    it_textdata              = itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SPOOL_ERROR              = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETERS_INVALID       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                   = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 May 2006 13:12:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-23T13:12:28Z</dc:date>
    <item>
      <title>Write data to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337891#M171350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two similar doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I have some data in internal table. I want to write that into a file in the spool.&lt;/P&gt;&lt;P&gt;Is that possible ? If so how do we achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I have zscript and the print program. When I run the print program the script will be generated, there by I can view it or print it. Now I wnt to send the script to spool with out preview or printing. &lt;/P&gt;&lt;P&gt;Is that possible ? If so how do we achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with these queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 13:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337891#M171350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T13:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337892#M171351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you execute it in Background it will automatically write into spool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 13:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337892#M171351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T13:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337893#M171352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT TO SAP-SPOOL &lt;/P&gt;&lt;P&gt;1.... DESTINATION dest ... COPIES cop &lt;/P&gt;&lt;P&gt;... LIST NAME name &lt;/P&gt;&lt;P&gt;... LIST DATASET dsn &lt;/P&gt;&lt;P&gt;... COVER TEXT text &lt;/P&gt;&lt;P&gt;... LIST AUTHORITY auth &lt;/P&gt;&lt;P&gt;... IMMEDIATELY flag &lt;/P&gt;&lt;P&gt;... KEEP IN SPOOL flag &lt;/P&gt;&lt;P&gt;... NEW LIST IDENTIFICATION flag &lt;/P&gt;&lt;P&gt;... DATASET EXPIRATION days &lt;/P&gt;&lt;P&gt;... LINE-COUNT lin &lt;/P&gt;&lt;P&gt;... LINE-SIZE col &lt;/P&gt;&lt;P&gt;... LAYOUT layout &lt;/P&gt;&lt;P&gt;... SAP COVER PAGE mode &lt;/P&gt;&lt;P&gt;... COVER PAGE flag &lt;/P&gt;&lt;P&gt;... RECEIVER rec &lt;/P&gt;&lt;P&gt;... DEPARTMENT dep &lt;/P&gt;&lt;P&gt;... ARCHIVE MODE armode &lt;/P&gt;&lt;P&gt;... ARCHIVE PARAMETERS arparams &lt;/P&gt;&lt;P&gt;... WITHOUT SPOOL DYNPRO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this fm &amp;lt;b&amp;gt;SLVC_TABLE_PS_TO_SP&amp;lt;/b&amp;gt;                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              RSPO_SX_OUTPUT_TEXTDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for internal table to spool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SLVC_TABLE_PS_TO_SPOOL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_file_length            = 255&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  E_SPOOLID                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    it_textdata              = itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SPOOL_ERROR              = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETERS_INVALID       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                   = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 13:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337893#M171352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T13:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337894#M171353</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;1 for the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      call function 'GET_PRINT_PARAMETERS'
       exporting
         immediately                  = ' '
         line_size                    = 220
         release                      = ' '
         mode                         = 'CURRENT'
         no_dialog                    = ' '
       importing
*     OUT_ARCHIVE_PARAMETERS       =
         out_parameters               = l_params
         valid                        = l_valid
       exceptions
         archive_info_not_found       = 1
         invalid_print_params         = 2
         invalid_archive_params       = 3
         others                       = 4.
        IF SY-SUBRC &amp;lt;&amp;gt; 0.
*           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

      new-page print on   parameters l_params no dialog.

      perform select_data.
      perform display_data." you can loop and write the data that will be sent to spool.
      new-page print off.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. second you need to pass print params to open_form FM. that will take care of the spool.&lt;/P&gt;&lt;P&gt;check OPEN_FORM Fm there you have paramters for Printing , using that you can generate the spool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 13:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337894#M171353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T13:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337895#M171354</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;Amandeep, Thank you very much for your quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script I am talking about is an FI script which will be triggered by the tcode F110 for payment program. I dont know wether  it will run in the backgrond or not. I have no clear idea.  Can anyone explain me this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;varun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 13:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337895#M171354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Write data to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337896#M171355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure but check if you can attach any output type to that FI script so that you have chance to generate the spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2006 13:19:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-data-to-spool/m-p/1337896#M171355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-23T13:19:50Z</dc:date>
    </item>
  </channel>
</rss>

