<?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 to spool. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-spool/m-p/1692739#M304108</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 dont you try this out.Instead of calling the transaction you can use a submit program if possible and then export the list to memory. this can be done for each record in the internal table.&lt;/P&gt;&lt;P&gt;What you then need to do is take the output and put it all into another internal table with which you will create the spool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT &amp;lt;program&amp;gt; EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                  WITH SELECTION-TABLE i_rsparams&lt;/P&gt;&lt;P&gt;                  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the List from Memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      listobject = i_listobject&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found  = 1&lt;/P&gt;&lt;P&gt;      OTHERS     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF i_listobject[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write the List to Char Format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        listasci           = i_ascii&lt;/P&gt;&lt;P&gt;        listobject         = i_listobject&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        empty_list         = 1&lt;/P&gt;&lt;P&gt;        list_index_invalid = 2&lt;/P&gt;&lt;P&gt;        OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the i_ascii will contain the output of  your program. call these statements within a loop of your internal table and you will be able to get all the outputs for each line in the internal table.&lt;/P&gt;&lt;P&gt;Just check out if you can take the program of the transaction in SE93 and do a submit on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this thread on how to create spools&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2764410"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Dominic Pappaly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2006 08:50:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-28T08:50:37Z</dc:date>
    <item>
      <title>Write to spool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-spool/m-p/1692738#M304107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement wherein i have few records in internal table, i have to call a transaction using these records. The transaction accepts only one record at a time and generates an output,then using the PRINT option i can generate a spool of the output for that particular record.&lt;/P&gt;&lt;P&gt;My requirement is that i have to submit multiple records from the internal table to the transaction and get the output for every record into a single spool. On top of it for every new record in the internal table i have to insert a page break in the spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 08:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-spool/m-p/1692738#M304107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T08:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Write to spool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-spool/m-p/1692739#M304108</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 dont you try this out.Instead of calling the transaction you can use a submit program if possible and then export the list to memory. this can be done for each record in the internal table.&lt;/P&gt;&lt;P&gt;What you then need to do is take the output and put it all into another internal table with which you will create the spool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT &amp;lt;program&amp;gt; EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                  WITH SELECTION-TABLE i_rsparams&lt;/P&gt;&lt;P&gt;                  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the List from Memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      listobject = i_listobject&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found  = 1&lt;/P&gt;&lt;P&gt;      OTHERS     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF i_listobject[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write the List to Char Format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        listasci           = i_ascii&lt;/P&gt;&lt;P&gt;        listobject         = i_listobject&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        empty_list         = 1&lt;/P&gt;&lt;P&gt;        list_index_invalid = 2&lt;/P&gt;&lt;P&gt;        OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the i_ascii will contain the output of  your program. call these statements within a loop of your internal table and you will be able to get all the outputs for each line in the internal table.&lt;/P&gt;&lt;P&gt;Just check out if you can take the program of the transaction in SE93 and do a submit on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this thread on how to create spools&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2764410"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Dominic Pappaly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 08:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-to-spool/m-p/1692739#M304108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T08:50:37Z</dc:date>
    </item>
  </channel>
</rss>

