<?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: smart forms PDF in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436885#M208199</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;  Send the print request to spool, and from spool convert the output to PDF using fm CONVERT_ABAPSPOOLJOB_2_PDF,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jul 2006 06:13:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-03T06:13:24Z</dc:date>
    <item>
      <title>smart forms PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436884#M208198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;Can any one tell me how to create PDF format using my smartforms output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam working on invice smartforms using &amp;lt;b&amp;gt;VF02&lt;DEL&gt;&amp;gt;Billing document&lt;/DEL&gt;&amp;gt;Issue output to&amp;lt;/b&amp;gt;...&lt;/P&gt;&lt;P&gt;Since i do not have any print program is it possible to create PDF form??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward guaranteed&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 06:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436884#M208198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T06:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436885#M208199</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;  Send the print request to spool, and from spool convert the output to PDF using fm CONVERT_ABAPSPOOLJOB_2_PDF,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 06:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436885#M208199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T06:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436886#M208200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;Use these FM's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"CONVERT_OTF_2_PDF" or "SX_OBJECT_CONVERT_OTF_PDF" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Mukesh KUmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 06:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436886#M208200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T06:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436887#M208201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sailatha &amp;amp; Mukesh,&lt;/P&gt;&lt;P&gt;Can u elaborate more...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vf02-&amp;gt;billingdoc-&amp;gt;issue outputto--&amp;gt; here iam using message type ZRD3 and Print preview.How can i go to spool request from here?I do not have any print program to call the function module...!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 06:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436887#M208201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T06:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436888#M208202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check the below code it may helpful for u&lt;/P&gt;&lt;P&gt;All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_control_parameters-no_dialog = 'X'.&lt;/P&gt;&lt;P&gt;s_control_parameters-getotf = 'X'.&lt;/P&gt;&lt;P&gt;CALL FUNCTION v_func_name "call your smartform&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;output_options = s_output_options&lt;/P&gt;&lt;P&gt;control_parameters = s_control_parameters&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;job_output_info = s_job_output_info&lt;/P&gt;&lt;P&gt;call function 'CONVERT_OTF_2_PDF'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;otf = s_job_output_info-otfdata&lt;/P&gt;&lt;P&gt;lines = t_pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 06:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436888#M208202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T06:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436889#M208203</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;This has the print program. This fires the print program that is configured in the NACE transaction tied to the specific output. So, if you want a PDF you will have do the changes there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 06:18:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436889#M208203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T06:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: smart forms PDF</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436890#M208204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Kaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z_ABAPOUTPUT_PDF_SREE_13424 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_ident     like tsp01-rqident,&lt;/P&gt;&lt;P&gt;      w_doctype   like tsp01-rqdoctype,&lt;/P&gt;&lt;P&gt;      w_bytecount type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab_pdf    like tline occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter spoolnum like tsp01-rqident obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block a2 with frame.&lt;/P&gt;&lt;P&gt;parameters:  to_pc   radiobutton group a2 default 'X',&lt;/P&gt;&lt;P&gt;             pcfile like rlgrap-filename lower case,&lt;/P&gt;&lt;P&gt;             to_unix radiobutton group a2,&lt;/P&gt;&lt;P&gt;             unixfile(255) lower case.&lt;/P&gt;&lt;P&gt;selection-screen end of block a2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;at selection-screen on block a2.&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;  if to_pc = 'X' and pcfile is initial.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Enter PC File Name.'.&lt;/P&gt;&lt;P&gt;  elseif to_unix = 'X' and unixfile is initial.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Enter Unix File Name.'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************************&lt;/P&gt;&lt;P&gt;at selection-screen on spoolnum.&lt;/P&gt;&lt;P&gt;*******************************&lt;/P&gt;&lt;P&gt;  select single rqident rqdoctype&lt;/P&gt;&lt;P&gt;         into (w_ident, w_doctype)&lt;/P&gt;&lt;P&gt;         from tsp01&lt;/P&gt;&lt;P&gt;         where rqident = spoolnum.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Spool' spoolnum 'not found'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for pcfile.&lt;/P&gt;&lt;P&gt;************************************************&lt;/P&gt;&lt;P&gt;  call function 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            mask     = ',&lt;STRONG&gt;.&lt;/STRONG&gt;,&lt;STRONG&gt;.&lt;/STRONG&gt;.'&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            filename = pcfile&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            others   = 1.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type 'I' 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;&lt;/P&gt;&lt;P&gt;*******************&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;*******************&lt;/P&gt;&lt;P&gt;  if w_doctype = 'LIST'.&lt;/P&gt;&lt;P&gt;    perform get_abap_spool_in_pdf.&lt;/P&gt;&lt;P&gt;  elseif w_doctype = 'OTF'.&lt;/P&gt;&lt;P&gt;    perform get_otf_spool_in_pdf.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if to_pc = 'X'.&lt;/P&gt;&lt;P&gt;    perform write_pdf_spool_to_pc.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    perform write_pdf_spool_to_unix.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  message i398(00) with 'Completed OK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form get_abap_spool_in_pdf.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  refresh itab_pdf.&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            src_spoolid              = w_ident&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            pdf_bytecount            = w_bytecount&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            pdf                      = itab_pdf&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            err_no_abap_spooljob     = 1&lt;/P&gt;&lt;P&gt;            err_no_spooljob          = 2&lt;/P&gt;&lt;P&gt;            err_no_permission        = 3&lt;/P&gt;&lt;P&gt;            err_conv_not_possible    = 4&lt;/P&gt;&lt;P&gt;            err_bad_destdevice       = 5&lt;/P&gt;&lt;P&gt;            user_cancelled           = 6&lt;/P&gt;&lt;P&gt;            err_spoolerror           = 7&lt;/P&gt;&lt;P&gt;            err_temseerror           = 8&lt;/P&gt;&lt;P&gt;            err_btcjob_open_failed   = 9&lt;/P&gt;&lt;P&gt;            err_btcjob_submit_failed = 10&lt;/P&gt;&lt;P&gt;            err_btcjob_close_failed  = 11&lt;/P&gt;&lt;P&gt;            others                   = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form get_otf_spool_in_pdf.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  refresh itab_pdf.&lt;/P&gt;&lt;P&gt;  call function 'CONVERT_OTFSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            src_spoolid              = w_ident&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            pdf_bytecount            = w_bytecount&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            pdf                      = itab_pdf&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            err_no_otf_spooljob      = 1&lt;/P&gt;&lt;P&gt;            err_no_spooljob          = 2&lt;/P&gt;&lt;P&gt;            err_no_permission        = 3&lt;/P&gt;&lt;P&gt;            err_conv_not_possible    = 4&lt;/P&gt;&lt;P&gt;            err_bad_dstdevice        = 5&lt;/P&gt;&lt;P&gt;            user_cancelled           = 6&lt;/P&gt;&lt;P&gt;            err_spoolerror           = 7&lt;/P&gt;&lt;P&gt;            err_temseerror           = 8&lt;/P&gt;&lt;P&gt;            err_btcjob_open_failed   = 9&lt;/P&gt;&lt;P&gt;            err_btcjob_submit_failed = 10&lt;/P&gt;&lt;P&gt;            err_btcjob_close_failed  = 11&lt;/P&gt;&lt;P&gt;            others                   = 12.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Cannot convert to PDF. Error =' sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form write_pdf_spool_to_unix.&lt;/P&gt;&lt;P&gt;  open dataset unixfile for output in binary mode.&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0 .&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Cannot open unix file for output:' unixfile.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at itab_pdf.&lt;/P&gt;&lt;P&gt;    transfer itab_pdf to unixfile.&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0 .&lt;/P&gt;&lt;P&gt;      message e398(00) with 'Cannot write to unix file:' unixfile.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  close dataset unixfile.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;form write_pdf_spool_to_pc.&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            = w_bytecount&lt;/P&gt;&lt;P&gt;            filename                = pcfile&lt;/P&gt;&lt;P&gt;            filetype                = 'BIN'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            data_tab                = itab_pdf&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;            others                  = 10.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message e398(00) with 'Cannot download to PC. Error =' sy-subrc.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2006 06:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smart-forms-pdf/m-p/1436890#M208204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-03T06:22:21Z</dc:date>
    </item>
  </channel>
</rss>

