<?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: script to pdf conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645904#M609451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anees,&lt;/P&gt;&lt;P&gt;                   can u give me the full code, i.e. how to declare bin_size and &lt;/P&gt;&lt;P&gt;                   doc,  i want the data declaration part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 05:58:15 GMT</pubDate>
    <dc:creator>former_member841898</dc:creator>
    <dc:date>2007-08-23T05:58:15Z</dc:date>
    <item>
      <title>script to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645902#M609449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody,&lt;/P&gt;&lt;P&gt;                     i am trying to convert a script form to pdf format and downloading&lt;/P&gt;&lt;P&gt;                it to a specific directory. I am using fm coversion otf and gui download,&lt;/P&gt;&lt;P&gt;           everything is working fine but when i am attaching a logo to the form&lt;/P&gt;&lt;P&gt;           and then trying to convert in the pdf format &amp;lt;b&amp;gt;program terminates&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;          Error analysis shows that binary file size &amp;lt; 0.&lt;/P&gt;&lt;P&gt;              Pls help me out regarding this matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 05:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645902#M609449</guid>
      <dc:creator>former_member841898</dc:creator>
      <dc:date>2007-08-23T05:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: script to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645903#M609450</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;Use the Function module 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;Here is the example code.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DEVICE   = 'MAIL'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FORM     = 'ZPDF1'&lt;/P&gt;&lt;P&gt;    LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;    OPTIONS  = I_ITCPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ELEMENT  = 'E'&lt;/P&gt;&lt;P&gt;    FUNCTION = 'SET'&lt;/P&gt;&lt;P&gt;    TYPE     = 'BODY'&lt;/P&gt;&lt;P&gt;    WINDOW   = 'MAIN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    OTFDATA = OTF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    BIN_FILESIZE   = BIN_SIZE&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    OTF            = otf&lt;/P&gt;&lt;P&gt;    DOCTAB_ARCHIVE = DOC&lt;/P&gt;&lt;P&gt;    LINES          = TLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    BIN_FILESIZE = BIN_SIZE&lt;/P&gt;&lt;P&gt;    FILENAME     = 'C:\anees\test.pdf'&lt;/P&gt;&lt;P&gt;    FILETYPE     = 'BIN'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB     = TLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull.&lt;/P&gt;&lt;P&gt;ANEES&lt;/P&gt;&lt;P&gt;9886358645&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 05:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645903#M609450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T05:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: script to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645904#M609451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anees,&lt;/P&gt;&lt;P&gt;                   can u give me the full code, i.e. how to declare bin_size and &lt;/P&gt;&lt;P&gt;                   doc,  i want the data declaration part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 05:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645904#M609451</guid>
      <dc:creator>former_member841898</dc:creator>
      <dc:date>2007-08-23T05:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: script to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645905#M609452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data test(10) type c value 'ANEES'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: BIN_SIZE TYPE I.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: I_ITCPO-TDGETOTF = 'X',&lt;/P&gt;&lt;P&gt;JOBOUTPUT TYPE SSFCRESCL,&lt;/P&gt;&lt;P&gt;OTF LIKE TABLE OF ITCOO with header line,   " change with header line&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DOC LIKE TABLE OF DOCS,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;TLINES LIKE TABLE OF TLINE.&lt;/P&gt;&lt;P&gt;DATA : I_ITCPO LIKE ITCPO .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Mail settings&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.  "SAPoffice: Description of Imported Object Components&lt;/P&gt;&lt;P&gt;DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.    "SAPoffice: Single List with Column Length 255&lt;/P&gt;&lt;P&gt;DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.    "SAPoffice: Single List with Column Length 255&lt;/P&gt;&lt;P&gt;DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.    "SAPoffice: Single List with Column Length 255&lt;/P&gt;&lt;P&gt;DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINe.   "SAPoffice: Structure of the API Recipient List&lt;/P&gt;&lt;P&gt;DATA: doc_chng LIKE sodocchgi1.                           "Data of an object which can be changed&lt;/P&gt;&lt;P&gt;DATA righe_attachment TYPE i.&lt;/P&gt;&lt;P&gt;DATA righe_testo TYPE i.&lt;/P&gt;&lt;P&gt;DATA z_email(80) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DEVICE   = 'MAIL'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    FORM     = 'ZPDF1'&lt;/P&gt;&lt;P&gt;    LANGUAGE = SY-LANGU&lt;/P&gt;&lt;P&gt;    OPTIONS  = I_ITCPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    ELEMENT  = 'E'&lt;/P&gt;&lt;P&gt;    FUNCTION = 'SET'&lt;/P&gt;&lt;P&gt;    TYPE     = 'BODY'&lt;/P&gt;&lt;P&gt;    WINDOW   = 'MAIN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    OTFDATA = OTF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    BIN_FILESIZE   = BIN_SIZE&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    OTF            = otf&lt;/P&gt;&lt;P&gt;    DOCTAB_ARCHIVE = DOC&lt;/P&gt;&lt;P&gt;    LINES          = TLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    BIN_FILESIZE = BIN_SIZE&lt;/P&gt;&lt;P&gt;    FILENAME     = 'C:\anees\test.pdf'&lt;/P&gt;&lt;P&gt;    FILETYPE     = 'BIN'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB     = TLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code is to convert the script to PDF and download to the local system.&lt;/P&gt;&lt;P&gt;It also contain the variable decleration which is used to send the PDF file as mail attachement.  Dont get confuse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull.&lt;/P&gt;&lt;P&gt;Anees.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        anees jawad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 06:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645905#M609452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T06:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: script to pdf conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645906#M609453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HELLO ANEES,&lt;/P&gt;&lt;P&gt;                            problem is solved by the socond code given by u.&lt;/P&gt;&lt;P&gt;                            awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and best wishes to u,&lt;/P&gt;&lt;P&gt;pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 06:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-to-pdf-conversion/m-p/2645906#M609453</guid>
      <dc:creator>former_member841898</dc:creator>
      <dc:date>2007-08-23T06:56:03Z</dc:date>
    </item>
  </channel>
</rss>

