<?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 Save spool pdf to server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392044#M1545555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have created a program, that can merge a service order and an invoice into one pdf., and then download it into my local drive (C:/).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The spool from the service order is converted into otf.&lt;/P&gt;&lt;P&gt;2) The spool from the invoce is converted into otf.&lt;/P&gt;&lt;P&gt;3) The otf data from both service order and invoice will be collected into one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) and 5) &lt;/P&gt;&lt;P&gt;Then I call the FM: CONVERT_OTF_2_PDF&lt;/P&gt;&lt;P&gt;and then cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above will download the file to my local drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to download to a library on my SAP server (found in AL11).&lt;/P&gt;&lt;P&gt;At the momenet I just got a lot of lines with informations about Type/Font/Subtype/LastChar/FirstChar etc. in my file on the server.&lt;/P&gt;&lt;P&gt;There is no pdf file, even that the name of the file is 1234_1233.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing as described in 1) + 2) + 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then callling FM "CONVERT_OTF", from where I got the value from the importing parameter BIN_FILE (lv_pdf_file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset fnam for output in binary mode message msg.&lt;/P&gt;&lt;P&gt;transer lv_pdf_file to fnam.&lt;/P&gt;&lt;P&gt;close dataset fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody who can help, how to get my pdf downloaded into the server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Oct 2010 09:30:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-11T09:30:53Z</dc:date>
    <item>
      <title>Save spool pdf to server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392044#M1545555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have created a program, that can merge a service order and an invoice into one pdf., and then download it into my local drive (C:/).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The spool from the service order is converted into otf.&lt;/P&gt;&lt;P&gt;2) The spool from the invoce is converted into otf.&lt;/P&gt;&lt;P&gt;3) The otf data from both service order and invoice will be collected into one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) and 5) &lt;/P&gt;&lt;P&gt;Then I call the FM: CONVERT_OTF_2_PDF&lt;/P&gt;&lt;P&gt;and then cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above will download the file to my local drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how to download to a library on my SAP server (found in AL11).&lt;/P&gt;&lt;P&gt;At the momenet I just got a lot of lines with informations about Type/Font/Subtype/LastChar/FirstChar etc. in my file on the server.&lt;/P&gt;&lt;P&gt;There is no pdf file, even that the name of the file is 1234_1233.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing as described in 1) + 2) + 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then callling FM "CONVERT_OTF", from where I got the value from the importing parameter BIN_FILE (lv_pdf_file)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset fnam for output in binary mode message msg.&lt;/P&gt;&lt;P&gt;transer lv_pdf_file to fnam.&lt;/P&gt;&lt;P&gt;close dataset fnam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody who can help, how to get my pdf downloaded into the server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 09:30:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392044#M1545555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T09:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Save spool pdf to server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392045#M1545556</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;see with this Function Module &lt;STRONG&gt;DX_FILE_WRITE&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 10:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392045#M1545556</guid>
      <dc:creator>StMou</dc:creator>
      <dc:date>2010-10-11T10:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Save spool pdf to server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392046#M1545557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should use FM &lt;EM&gt;CONVERT_OTF_2_PDF&lt;/EM&gt; to get table &lt;EM&gt;LINES&lt;/EM&gt; (of type TLINE) for given OTF format. Then transfer this table LINES content as you already do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 10:07:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392046#M1545557</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-10-11T10:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Save spool pdf to server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392047#M1545558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work.&lt;/P&gt;&lt;P&gt;I just got a long string into the file.&lt;/P&gt;&lt;P&gt;My file is named xxx.pdf, but it is not a pdf document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 11:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392047#M1545558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T11:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Save spool pdf to server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392048#M1545559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was, that it is not possible to see the pdf directly from transaction AL11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the transaction CG3Y to move the file from the server to my desktop, and there I can see the pdf file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solved &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 12:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-spool-pdf-to-server/m-p/7392048#M1545559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-11T12:47:29Z</dc:date>
    </item>
  </channel>
</rss>

