<?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 downloading problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860354#M927845</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;I am working on smartform.My requirement is whenevr im executing the form at the same that form has to be downloaded &amp;amp; also i have to see the print preview . Its downloading but only 0 bytes is transfered. why is it so?&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 03:38:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T03:38:00Z</dc:date>
    <item>
      <title>downloading problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860354#M927845</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;I am working on smartform.My requirement is whenevr im executing the form at the same that form has to be downloaded &amp;amp; also i have to see the print preview . Its downloading but only 0 bytes is transfered. why is it so?&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 03:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860354#M927845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T03:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: downloading problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860355#M927846</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;In the print program's smartforms function module call, you need to tell the function module to get OTF data. Use function module CONVERT_OTF_2_PDF to convert OTF to PDF and download in BIN format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 03:50:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860355#M927846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T03:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: downloading problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860356#M927847</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;do u have program with u. Same program only i have used. but its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 03:52:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860356#M927847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T03:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: downloading problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860357#M927848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get the print preview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA device TYPE ssfctrlop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Logic to display print preview popup&lt;/P&gt;&lt;P&gt;    IF NOT p_pv IS INITIAL.&lt;/P&gt;&lt;P&gt;      device-no_dialog  = ' '.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION ws_form_fname&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              control_parameters = device&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              job_output_info    = ls_output_info&lt;/P&gt;&lt;P&gt;         TABLES&lt;/P&gt;&lt;P&gt;              i_final_ap         = i_final_ap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl.s reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 03:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860357#M927848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T03:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: downloading problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860358#M927849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jwong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have used that convert_otf_2_pdf function module but its throwing one error OTF end command // missing in OTF data. What is that error. Please help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 04:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860358#M927849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T04:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: downloading problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860359#M927850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Pls. go through the program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code i got executed for convertion to PDF.I think this help full for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZMY_SF61.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FM_NAME TYPE RS38L_FNAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: WA_CTRLOP TYPE SSFCTRLOP, "Smartform control structure&lt;/P&gt;&lt;P&gt;WA_OUTOPT TYPE SSFCOMPOP, "Smart Composer Options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_OTFDATA TYPE SSFCRESCL, "Return value at end of form printing&lt;/P&gt;&lt;P&gt;T_PDF_TAB LIKE TLINE OCCURS 0 WITH HEADER LINE. "SAP Acripts: Text lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: T_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE, "OTF Structure&lt;/P&gt;&lt;P&gt;W_FILESIZE TYPE I,&lt;/P&gt;&lt;P&gt;W_BIN_FILESIZE TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FORMNAME = 'ZMY_FORM6'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VARIANT = ' ' &lt;/P&gt;&lt;P&gt;DIRECT_CALL = ' ' &lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FM_NAME = FM_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;NO_FORM = 1 &lt;/P&gt;&lt;P&gt;NO_FUNCTION_MODULE = 2 &lt;/P&gt;&lt;P&gt;OTHERS = 3 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_CTRLOP-GETOTF = 'X'. "Return of OTF Table.No printing,display,or faxing&lt;/P&gt;&lt;P&gt;WA_CTRLOP-NO_DIALOG = 'X'. "SAP Smartform: General indicator&lt;/P&gt;&lt;P&gt;WA_OUTOPT-TDNOPREV = 'X'. "No print preview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION FM_NAME " '/1BCDWB/SF00000699'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX = &lt;/P&gt;&lt;P&gt;ARCHIVE_INDEX_TAB = &lt;/P&gt;&lt;P&gt;ARCHIVE_PARAMETERS = &lt;/P&gt;&lt;P&gt;CONTROL_P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'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODE = ' ' &lt;/P&gt;&lt;P&gt;WK1_N_FORMAT = ' ' &lt;/P&gt;&lt;P&gt;WK1_N_SIZE = ' ' &lt;/P&gt;&lt;P&gt;WK1_T_FORMAT = ' ' &lt;/P&gt;&lt;P&gt;WK1_T_SIZE = ' ' &lt;/P&gt;&lt;P&gt;COL_SELECT = ' ' &lt;/P&gt;&lt;P&gt;COL_SELECTMASK = ' ' &lt;/P&gt;&lt;P&gt;NO_AUTH_CHECK = ' ' &lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILELENGTH = W_FILESIZE&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = T_PDF_TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDNAMES = &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;P&gt;FILE_WRITE_ERROR = 2&lt;/P&gt;&lt;P&gt;INVALID_FILESIZE = 3&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 4&lt;/P&gt;&lt;P&gt;NO_BATCH = 5&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 6&lt;/P&gt;&lt;P&gt;INVALID_TABLE_WIDTH = 7&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 8&lt;/P&gt;&lt;P&gt;CUSTOMER_ERROR = 9&lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 10&lt;/P&gt;&lt;P&gt;OTHERS = 11&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;P&gt;WRITE:/ 'THE PDF FILE IS SUCCESSFULLY CONVERTED'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don,'t  forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 04:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860359#M927850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T04:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: downloading problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860360#M927851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi murali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried that program but it is saving in desktop. But i am not able to open the PDF file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 04:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/downloading-problem/m-p/3860360#M927851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T04:38:25Z</dc:date>
    </item>
  </channel>
</rss>

