<?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 CONVERT_OTFSPOOLJOB_2_PDF ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975813#M70841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;When I developed smartform I kept particular printer in mind. Now since the client wants to print it on diffrenet printers, the allignment is going to change.&lt;/P&gt;&lt;P&gt;I came to know about a function called, CONVERT_OTFSPOOLJOB_2_PDF which will convert the spool jobs in pdf file. Now my question is how do I implement this function in smartforms so that whenever it goes for print through spool it will get conveterted in pdf format so that allignmnet willot change whatever may be the printer ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jul 2005 14:45:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-12T14:45:59Z</dc:date>
    <item>
      <title>CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975813#M70841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;When I developed smartform I kept particular printer in mind. Now since the client wants to print it on diffrenet printers, the allignment is going to change.&lt;/P&gt;&lt;P&gt;I came to know about a function called, CONVERT_OTFSPOOLJOB_2_PDF which will convert the spool jobs in pdf file. Now my question is how do I implement this function in smartforms so that whenever it goes for print through spool it will get conveterted in pdf format so that allignmnet willot change whatever may be the printer ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 14:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975813#M70841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T14:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975814#M70842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in the smartforom interface&lt;/P&gt;&lt;P&gt;    I_SSFCTRLOP-getotf = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SAVE_TO_PDF TABLES ZOFTDATA STRUCTURE ITCOO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;        ZPDF LIKE TLINE OCCURS 100 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        NUMBYTES TYPE I.&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;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            BIN_FILESIZE          = NUMBYTES&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            OTF                   = ZOFTDATA&lt;/P&gt;&lt;P&gt;            LINES                 = ZPDF&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;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            BIN_FILESIZE            = NUMBYTES&lt;/P&gt;&lt;P&gt;            FILENAME                = FILEPDF&lt;/P&gt;&lt;P&gt;            FILETYPE                = 'BIN'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ACT_FILENAME            = FILEPDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            FILESIZE                = NUMBYTES&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            DATA_TAB                = ZPDF&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 14:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975814#M70842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T14:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975815#M70843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Svetlin Rusev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Myself also want to convert form to PDF file. based on your coding, i defined the subroutine save_to_pdf in form routine area in gobal definition. my question is where should i call the subroutine and how to pass the parameter  zotfdata. pls explain in detail . very urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with thanks,&lt;/P&gt;&lt;P&gt;senthil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2005 07:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975815#M70843</guid>
      <dc:creator>srajendran</dc:creator>
      <dc:date>2005-07-13T07:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975816#M70844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When calling FM CALL FUNCTION sfm_name (smartform call), there is an export parameter(importing) JOB_OUTPUT_INFO of type ssfcrescl. &lt;/P&gt;&lt;P&gt;zotfdata = ssfcrescl-OTFDATA&lt;/P&gt;&lt;P&gt;The subroutine is called after closing the smartform.&lt;/P&gt;&lt;P&gt;But additinally need to pass to FM CALL FUNCTION sfm_name an import parameter(exporting) CONTROL_PARAMETERS type SSFCTRLOP.&lt;/P&gt;&lt;P&gt;SSFCTRLOP-getotf = 'X'. - to get ssfcrescl-OTFDATA&lt;/P&gt;&lt;P&gt;SSFCTRLOP-no_dialog = 'X'. - if you don't need a dialog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2005 07:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975816#M70844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-13T07:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975817#M70845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Svetlin Rusev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2005 09:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975817#M70845</guid>
      <dc:creator>srajendran</dc:creator>
      <dc:date>2005-07-13T09:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975818#M70846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could u just explain briefly how to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 06:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975818#M70846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T06:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975819#M70847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample code.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap&lt;/A&gt; code samples/smartforms/tutorial with code sample on smart forms.pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 06:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975819#M70847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T06:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975820#M70848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i had used this code in my code. but its not working. again i had created a new form for testing the given code. it is also not working. when i debug the code i found that the table is been passing but the filesize is not retrieved there in the conver_otf func. may be because of this the func. is not getting the data in pdf file. do u any idea where the error may have occured.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 11:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975820#M70848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T11:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975821#M70849</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 use this code&lt;/P&gt;&lt;P&gt;FORM SAVE_TO_PDF TABLES ZOFTDATA STRUCTURE ITCOO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data:&lt;/P&gt;&lt;P&gt;        ZPDF LIKE TLINE OCCURS 100 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        NUMBYTES TYPE I.&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;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            BIN_FILESIZE          = NUMBYTES&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            OTF                   = ZOFTDATA&lt;/P&gt;&lt;P&gt;            LINES                 = ZPDF&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;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            BIN_FILESIZE            = NUMBYTES&lt;/P&gt;&lt;P&gt;            FILENAME                = FILEPDF&lt;/P&gt;&lt;P&gt;            FILETYPE                = 'BIN'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ACT_FILENAME            = FILEPDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            FILESIZE                = NUMBYTES&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            DATA_TAB                = ZPDF&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            OTHERS = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;Be sure that table ZOFTDATA is not empty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 11:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975821#M70849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T11:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975822#M70850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;   but whr u had used the perform stmt. in the print prg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 12:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975822#M70850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: CONVERT_OTFSPOOLJOB_2_PDF ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975823#M70851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usually it should be atfer "CALL FUNCTION fm_name" stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION fm_name&lt;/P&gt;&lt;P&gt;    EXPORTING&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;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   CONTROL_PARAMETERS = I_SSFCTRLOP&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   OUTPUT_OPTIONS = I_ssfcompop&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_SETTINGS = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      S_BKPF = S_BKPF&lt;/P&gt;&lt;P&gt;      S_FWBAS = S_FWBAS&lt;/P&gt;&lt;P&gt;      S_FWSTE = S_FWSTE&lt;/P&gt;&lt;P&gt;      S_FWTOT = S_FWTOT&lt;/P&gt;&lt;P&gt;      S_WORDS = S_WORDS&lt;/P&gt;&lt;P&gt;      S_PAYM = S_PAYM&lt;/P&gt;&lt;P&gt;      V_BSEG = S_BSEG&lt;/P&gt;&lt;P&gt;      P_TYPE = copy&lt;/P&gt;&lt;P&gt;      I_USER = PUNAME&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &amp;lt;b&amp;gt;JOB_OUTPUT_INFO = E_ssfcrescl&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      T_BSEG = T_BSEG&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      FORMATTING_ERROR = 1&lt;/P&gt;&lt;P&gt;      INTERNAL_ERROR = 2&lt;/P&gt;&lt;P&gt;      SEND_ERROR = 3&lt;/P&gt;&lt;P&gt;      USER_CANCELED = 4&lt;/P&gt;&lt;P&gt;      OTHERS = 5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2005 12:05:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-otfspooljob-2-pdf/m-p/975823#M70851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-28T12:05:41Z</dc:date>
    </item>
  </channel>
</rss>

