<?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 SAPSCRIPT to save as external file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-to-save-as-external-file/m-p/1168441#M122449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible that i can save my output in SAPSCRIPT in an external file like MS Word?&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, 23 Jan 2006 02:54:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-23T02:54:13Z</dc:date>
    <item>
      <title>SAPSCRIPT to save as external file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-to-save-as-external-file/m-p/1168441#M122449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible that i can save my output in SAPSCRIPT in an external file like MS Word?&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, 23 Jan 2006 02:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-to-save-as-external-file/m-p/1168441#M122449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-23T02:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSCRIPT to save as external file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-to-save-as-external-file/m-p/1168442#M122450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can convert to PDF formats using &lt;/P&gt;&lt;P&gt;SX_OBJECT_CONVERT_OTF_PDF &lt;/P&gt;&lt;P&gt;  Conversion From OTF to PDF (SAPScript conversion)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see &amp;lt;a href="http://searchsap.techtarget.com/tip/1,289483,sid21_gci933581,00.html"&amp;gt;Get SAPScript output as PDF&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ps: Reward points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2006 03:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-to-save-as-external-file/m-p/1168442#M122450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-23T03:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAPSCRIPT to save as external file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-to-save-as-external-file/m-p/1168443#M122451</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;First get SAPScript output as OTF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options-tdgetotf = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;options = options&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&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;RESULT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;RDI_RESULT =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;otfdata = it_otf&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;unopened = 1&lt;/P&gt;&lt;P&gt;bad_pageformat_for_print = 2&lt;/P&gt;&lt;P&gt;send_error = 3&lt;/P&gt;&lt;P&gt;spool_error = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then convert it to PDF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;it_pdf LIKE tline OCCURS 100 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;v_len_in LIKE sood-objlen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;format = 'PDF'&lt;/P&gt;&lt;P&gt;max_linewidth = 132&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ARCHIVE_INDEX = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;bin_filesize = v_len_in&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;otf = it_otf&lt;/P&gt;&lt;P&gt;lines = it_pdf&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;err_max_linewidth = 1&lt;/P&gt;&lt;P&gt;err_format = 2&lt;/P&gt;&lt;P&gt;err_conv_not_possible = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then download it_pdf as binary using DATASET or WS_DOWNLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maxim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2006 03:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscript-to-save-as-external-file/m-p/1168443#M122451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-23T03:46:37Z</dc:date>
    </item>
  </channel>
</rss>

