<?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: Printing Spool From ABAP Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873790#M1789111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RSPO_OUTPUT_SPOOL_REQUEST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 12:55:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-11-19T12:55:59Z</dc:date>
    <item>
      <title>Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873784#M1789105</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;I collected the spool of existing invoices - for few invoices output type is mail and so sending mail to the respective recipient.&lt;/P&gt;&lt;P&gt;Few invoices have the output type as printer, now for these invoices need program to print the spool when selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share me ideas if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 16:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873784#M1789105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T16:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873785#M1789106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rafi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a field called nast-nacha. depending on the value we could distinguish whether we can send it as mail or print directly.(case nast-nacha)&lt;/P&gt;&lt;P&gt;Create a debugger short cut and drag it onto the print popup.just before the execution of pint from a standard tcode(. va03 for example). we can find the perform from the standard code&amp;nbsp; which will be responsible for print. We could use it in our code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873785#M1789106</guid>
      <dc:creator>former_member202771</dc:creator>
      <dc:date>2013-11-15T17:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873786#M1789107</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 have spool numbers ready in you hand, then go to transaction SP01 and put the spool numbers in the selection screen and from there you can print the invoices.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873786#M1789107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T17:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873787#M1789108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could get help from RSNAST00 also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:17:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873787#M1789108</guid>
      <dc:creator>former_member202771</dc:creator>
      <dc:date>2013-11-15T17:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873788#M1789109</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;I solved it myself.&lt;/P&gt;&lt;P&gt;We just need to call a FM to which need to specify the Device/Printer Name and the Spool ID.&lt;/P&gt;&lt;P&gt;That's it - printing job is done.&lt;/P&gt;&lt;P&gt;I have tested it on my local printer with a spool for Invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:21:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873788#M1789109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-15T17:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873789#M1789110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Share the FM pls &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1925/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873789#M1789110</guid>
      <dc:creator>former_member202771</dc:creator>
      <dc:date>2013-11-15T17:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873790#M1789111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RSPO_OUTPUT_SPOOL_REQUEST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 12:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873790#M1789111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T12:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873791#M1789112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rafi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the below steps to print spool from ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN class="pasted-list-info"&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;Fetch the jobname, job count from TBTCO database table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN class="pasted-list-info"&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;Fetch the spool request number based on above information from TBTCP database table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN class="pasted-list-info"&gt;3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;Use function module &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;RSPO_GET_TYPE_SPOOLJOB to get the type of spool job&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Now use submit report For example” &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;*&amp;nbsp;&amp;nbsp; Submit the Spool list to memory and return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBMIT rspolist EXPORTING LIST TO MEMORY AND RETURN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WITH rqident = gv_rqident.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN class="pasted-list-info"&gt;4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;Where gv_rqident is the spool number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN class="pasted-list-info"&gt;5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;Now get the ABAP list from “&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;LIST_FROM_MEMORY” function module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN class="pasted-list-info"&gt;6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Compress the spool table by calling below function module.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;* Compress the spool table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;CALL FUNCTION 'TABLE_COMPRESS' "Schneller Tabellencopy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;TABLES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;in = gt_listobject&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;out = gt_soali.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Where gt_listobject is the internal table used to compress data in step 5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;And gt_soali is the internal table in which compressed data is stored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;SPAN style="color: black;"&gt;&lt;SPAN class="pasted-list-info"&gt;7)&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;Now pass this internal table to function module “&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;SO_DOCUMENT_INSERT_API1”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;/P&gt;&lt;P style="text-indent: -0.25in;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 13:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873791#M1789112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-19T13:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Spool From ABAP Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873792#M1789113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Komal,&lt;/P&gt;&lt;P&gt;I guess SO_DOCUMENT_INSERT_API1 is used for attaching the documents as PDF/.HTML etc type of file formats to the business documents like invoices or purchase orders or sales orders.&lt;/P&gt;&lt;P&gt;It's like document services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 15:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/printing-spool-from-abap-program/m-p/9873792#M1789113</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-21T15:13:57Z</dc:date>
    </item>
  </channel>
</rss>

