<?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 Save PDF file smartforms with custom name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-pdf-file-smartforms-with-custom-name/m-p/621900#M25946</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
  &lt;P&gt;I am saving the PDF preview of a smartform into local directory using SSF_PDF_PREVIEW successfully....but I need custom specific name for the PDF file while saving the file..how can I achieve this?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks!!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2018 08:09:23 GMT</pubDate>
    <dc:creator>rangerlet_mesee</dc:creator>
    <dc:date>2018-06-04T08:09:23Z</dc:date>
    <item>
      <title>Save PDF file smartforms with custom name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-pdf-file-smartforms-with-custom-name/m-p/621900#M25946</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
  &lt;P&gt;I am saving the PDF preview of a smartform into local directory using SSF_PDF_PREVIEW successfully....but I need custom specific name for the PDF file while saving the file..how can I achieve this?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 08:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-pdf-file-smartforms-with-custom-name/m-p/621900#M25946</guid>
      <dc:creator>rangerlet_mesee</dc:creator>
      <dc:date>2018-06-04T08:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Save PDF file smartforms with custom name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-pdf-file-smartforms-with-custom-name/m-p/621901#M25947</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;if me-&amp;gt;ms_nast-kschl = 'ZIN7'.
    me-&amp;gt;store_pdf( iv_form_output = ls_formoutput-pdf
    iv_pdf         = ls_formoutput-pdf ).
endif.

lv_dataset     type rlgrap-filename
call function 'SCMS_XSTRING_TO_BINARY'
  exporting
    buffer        = iv_form_output
  importing
    output_length = lv_file_length
 tables
    binary_tab    = lt_data.

*-Construct dataset
concatenate lv_sap_dir '\' me-&amp;gt;ms_data-header-vbeln '.pdf'
into lv_dataset.
*-Store PDF on de Unix server as a binary file
open dataset lv_dataset for output in legacy binary mode.
transfer iv_form_output to lv_dataset.
close dataset lv_dataset.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;does that help?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 02:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-pdf-file-smartforms-with-custom-name/m-p/621901#M25947</guid>
      <dc:creator>former_member111380</dc:creator>
      <dc:date>2018-06-05T02:59:25Z</dc:date>
    </item>
  </channel>
</rss>

