<?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: Send archived object to spool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287656#M1916676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check FM RSPO_OUTPUT_DEVICEDATA? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a good documentation also available on SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 11:20:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-09-08T11:20:39Z</dc:date>
    <item>
      <title>Send archived object to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287652#M1916672</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;I am using FM&amp;nbsp; ARCHIVOBJECT_GET_TABLE to get an archived object (pdf file). The received object needs to be send to the spool for printing. I am using FM&amp;nbsp; SCMS_BINARY_TO_XSTRING for further conversion of the file and then the FMs ADS_SR_OPEN, WRITE_TO_FILE, *CONFIRM and *CLOSE but the spool is not readable/printable at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know an approach for this requirement? So archived PDF -&amp;gt; Spool for printing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287652#M1916672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-08T10:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Send archived object to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287653#M1916673</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;Once you have your xstring table you'll need to :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;'ADS_CREATE_PDF_SPOOLJOB'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printer&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;'LOCL'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;"Printer name supporting PDF device type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; DEST&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pages&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdf_data &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;lv_pdfsource&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;"XSTRING internal table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMMEDIATE_PRINT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;'X' "Or what you want&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;* IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; SPOOLID&amp;nbsp; =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;* EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; NO_DATA&amp;nbsp; = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; NOT_PDF&amp;nbsp; = 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; WRONG_DEVTYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; OPERATION_FAILED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; CANNOT_WRITE_FILE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; DEVICE_MISSING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; NO_SUCH_DEVICE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;*&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp; = 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Try this. Hope to help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Bye&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:20:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287653#M1916673</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2015-09-08T10:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Send archived object to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287654#M1916674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately this FM does not exist in my system &lt;SPAN __jive_emoticon_name="cry" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/1336/images/emoticons/cry.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287654#M1916674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-08T10:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Send archived object to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287655#M1916675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, it's a FM that involves your listed FM, in that case, trying always this road, you can follow this sequence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF printer IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT SINGLE patype FROM tsp03d INTO patype WHERE name = printer.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF dest IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT SINGLE name patype FROM tsp03d INTO (printer, patype) WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; padest = dest.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ADS_GET_DEVTYPE_ATTRIBUTES'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ADS_SR_OPEN'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ADS_WRITE_TO_FILE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ADS_SR_CONFIRM'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ADS_SR_CLOSE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other solution can be save locally your pdf and launch the native print program from ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287655#M1916675</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2015-09-08T10:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Send archived object to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287656#M1916676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check FM RSPO_OUTPUT_DEVICEDATA? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a good documentation also available on SE37.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 11:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287656#M1916676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-08T11:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Send archived object to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287657#M1916677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I managed now to create the spool and I can open the PDF document in the spool. But now the problem is the printing. I have tried to maintain SPAD but I get an error message saying the MESSAGE FROM HOST SPOOL - UNABLE TO INITIALIZE DEVICE TEST. Any ideas on this? &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;In SPAD i have set device type PDF1; Host spool access L.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287657#M1916677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-09-11T09:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Send archived object to spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287658#M1916678</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;Try Host Spool Access F ( Printing on Front End Computer) or G&lt;/P&gt;&lt;P&gt;Others settings should be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Sep 2015 10:31:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-archived-object-to-spool/m-p/11287658#M1916678</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2015-09-14T10:31:17Z</dc:date>
    </item>
  </channel>
</rss>

