<?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: convert sap script into otf format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525991#M572239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check options of OPEN_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITCPO-GETOTF = 'X'.&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;Peram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2007 05:46:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-19T05:46:54Z</dc:date>
    <item>
      <title>convert sap script into otf format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525989#M572237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can anyone tell me that how to convert sap script into otf format in background job scheduling ,currently by default it is taking list format.&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 05:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525989#M572237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T05:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: convert sap script into otf format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525990#M572238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,,&lt;/P&gt;&lt;P&gt;Check this report RSTXCPDF &lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 05:44:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525990#M572238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T05:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: convert sap script into otf format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525991#M572239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check options of OPEN_FORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITCPO-GETOTF = 'X'.&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;Peram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 05:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525991#M572239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T05:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: convert sap script into otf format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525992#M572240</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;&lt;/P&gt;&lt;P&gt;Visit this link for SAMple code of SAPSCRIPT to PDF.:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/pdf_creation.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/pdf_creation.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and check the following weblog for code samples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this one&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some function modules useful would be&lt;/P&gt;&lt;P&gt;CONVERT_OTF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO_NEW_DOCUMENT_ATT_SEND_API1 to send mails with attachments&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz refer to this link..it will solve ur problem&lt;/P&gt;&lt;P&gt;&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="650072"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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="975814"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 05:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525992#M572240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T05:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: convert sap script into otf format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525993#M572241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this and reward if found helpfull. Please look at these function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please reward if found helpfull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: wa_itcpp LIKE itcpp.
DATA: wa_itcpo LIKE itcpo.
DATA: doc LIKE TABLE OF docs.
DATA: tlines LIKE TABLE OF tline.
DATA: bin_filesize TYPE i.

DATA: it_otf LIKE TABLE OF itcoo.


wa_itcpo-tdgetotf = 'X'.
CALL FUNCTION 'OPEN_FORM'
 EXPORTING
*   APPLICATION                       = 'TX'
*   ARCHIVE_INDEX                     =
*   ARCHIVE_PARAMS                    =
   device                            = 'PRINTER'
   dialog                            = 'X'
   form                              = 'ZSCRIPT_BOX_PS'
   language                          = sy-langu
   OPTIONS                           = wa_itcpo
*   MAIL_SENDER                       =
*   MAIL_RECIPIENT                    =
*   MAIL_APPL_OBJECT                  =
*   RAW_DATA_INTERFACE                = '*'
*   SPONUMIV                          =
 IMPORTING
*   LANGUAGE                          =
*   NEW_ARCHIVE_PARAMS                =
   RESULT                            = wa_itcpp
 EXCEPTIONS
   canceled                          = 1
   device                            = 2
   form                              = 3
   OPTIONS                           = 4
   unclosed                          = 5
   mail_options                      = 6
   archive_error                     = 7
   invalid_fax_number                = 8
   more_params_needed_in_batch       = 9
   spool_error                       = 10
   codepage                          = 11
   OTHERS                            = 12
          .

CALL FUNCTION 'WRITE_FORM'
   EXPORTING
     element                        = 'ELE1'
     function                       = 'SET'
     type                           = 'BODY'
     window                         = 'MAIN'
* IMPORTING
*   PENDING_LINES                  =
   EXCEPTIONS
     element                        = 1
     function                       = 2
     type                           = 3
     unopened                       = 4
     unstarted                      = 5
     window                         = 6
     bad_pageformat_for_print       = 7
     spool_error                    = 8
     codepage                       = 9
     OTHERS                         = 10
            .


CALL FUNCTION 'CLOSE_FORM'
* IMPORTING
*   RESULT                         =
*   RDI_RESULT                     =
 TABLES
   otfdata                        = it_otf
 EXCEPTIONS
   unopened                       = 1
   bad_pageformat_for_print       = 2
   send_error                     = 3
   spool_error                    = 4
   codepage                       = 5
   OTHERS                         = 6
          .


CALL FUNCTION 'CONVERT_OTF_2_PDF'
  IMPORTING
    bin_filesize   = bin_filesize
  TABLES
    otf            = it_otf
    doctab_archive = doc
    lines          = tlines.

BREAK-POINT.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    bin_filesize = bin_filesize
    filename     = 'D:New FolderTESTPDF.PDF'
    filetype     = 'BIN'
  TABLES
    data_tab     = tlines.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2007 05:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-sap-script-into-otf-format/m-p/2525993#M572241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-19T05:48:12Z</dc:date>
    </item>
  </channel>
</rss>

