<?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>Question Re: control the default pdf file name generated when saving in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118228#M4527673</link>
    <description>&lt;P&gt;For option 1 where you control the download yourself, there is no parameter for the filename. You will set the parameter for basically retrieve the pdf file instead of "printing" it (in your case: set fp_outputparams-getpdf to X or abap_true). This will return the output in /1BCDWB/FORMOUTPUT. This table you can then use to do a download to a server or presentation server in old school abap.&lt;/P&gt;&lt;P&gt;If you do not want to do this, go see if option 2 works for you. Again the link:  &lt;A href="http://www.kodyaz.com/sap-abap/download-and-display-adobe-form-pdf-in-sap-web-dynpro.aspx"&gt;download adobe forms webdynpro&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Oct 2019 13:04:59 GMT</pubDate>
    <dc:creator>former_member259807</dc:creator>
    <dc:date>2019-10-28T13:04:59Z</dc:date>
    <item>
      <title>control the default pdf file name generated when saving</title>
      <link>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaq-p/12118223</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;how can i control the default pdf file name generated (automatically) and change it as per my requirement&lt;/P&gt;
  &lt;P&gt;am using ABAP code and FM to generate the adobe form :&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'FP_JOB_OPEN'&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1740544-pdf-file-name.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2019 06:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaq-p/12118223</guid>
      <dc:creator>Yasin</dc:creator>
      <dc:date>2019-10-27T06:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: control the default pdf file name generated when saving</title>
      <link>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118224#M4527669</link>
      <description>&lt;P&gt;Those 2 function modules do not actually generate the adobe form.&lt;/P&gt;&lt;P&gt;Are you using getpdf in the output parameters when calling the actual form? Please refer to the next wiki:&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/Snippets/ADOBE+-+Print+form+Download+Mail+pdf"&gt;Adobe print and download&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 09:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118224#M4527669</guid>
      <dc:creator>former_member259807</dc:creator>
      <dc:date>2019-10-28T09:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: control the default pdf file name generated when saving</title>
      <link>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118225#M4527670</link>
      <description>&lt;P&gt;Hi, Wallagh&lt;/P&gt;&lt;P&gt;am using&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:       fp_outputparams   TYPE sfpoutputparams. 

CALL FUNCTION 'FP_JOB_OPEN'                   "&amp;amp; Form Processing: Call Form
  CHANGING
    ie_outputparams = fp_outputparams
  EXCEPTIONS
    cancel          = 1
    usage_error     = 2
    system_error    = 3
    internal_error  = 4
    OTHERS          = 5.
IF sy-subrc &amp;lt;&amp;gt; 0.
*            &amp;lt;error handling&amp;gt;
ENDIF.

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'           "&amp;amp; Form Processing Generation
  EXPORTING
    i_name     = 'ZPUR_ORDER'
  IMPORTING
    e_funcname = fm_name.
IF sy-subrc &amp;lt;&amp;gt; 0.
*  &amp;lt;error handling&amp;gt;
ENDIF.

fp_docparams-langu   = 'E'.
fp_docparams-country = 'US'.

CALL FUNCTION fm_name
  EXPORTING
   /1BCDWB/DOCPARAMS        = fp_docparams
    HEADER                   = header
    ITEMS                    = itab
  "XSTRING                  =
*   LOGO                     =
   "STRING                   =
* IMPORTING
*   /1BCDWB/FORMOUTPUT       =
* EXCEPTIONS
*   USAGE_ERROR              = 1
*   SYSTEM_ERROR             = 2
*   INTERNAL_ERROR           = 3
*   OTHERS                   = 4
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* Implement suitable error handling here
ENDIF.
&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Oct 2019 10:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118225#M4527670</guid>
      <dc:creator>Yasin</dc:creator>
      <dc:date>2019-10-28T10:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: control the default pdf file name generated when saving</title>
      <link>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118226#M4527671</link>
      <description>&lt;P&gt;OK. As you can see in the Wiki i'd posted, the getpdf parameter can be found in the fp_outputparams.&lt;/P&gt;&lt;P&gt;Next to this, add the importing parameter for the call fm_name (see wiki), call the job_close and download the file to the name and location you like.&lt;/P&gt;&lt;P&gt;So the main difference is that you do not let standard SAP handle the pdf storage, but you take control yourself.&lt;/P&gt;&lt;P&gt;If you do not want this, please check if &lt;A href="http://www.kodyaz.com/sap-abap/download-and-display-adobe-form-pdf-in-sap-web-dynpro.aspx"&gt;this&lt;/A&gt;  will help you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 11:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118226#M4527671</guid>
      <dc:creator>former_member259807</dc:creator>
      <dc:date>2019-10-28T11:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: control the default pdf file name generated when saving</title>
      <link>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118227#M4527672</link>
      <description>&lt;P&gt;Hi, B. Wallagh&lt;/P&gt;&lt;P&gt;my requirement exactly is to make the PDF file name generated = PO No&lt;BR /&gt;incase the user choice was to save it not to print.&lt;/P&gt;&lt;P&gt;in other words to replace the default name generated by the system with another default one&lt;BR /&gt;let us say: '100000013.pdf' &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;i went through the links, but i still don't which parameter is holding the file name so i can replace.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 12:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118227#M4527672</guid>
      <dc:creator>Yasin</dc:creator>
      <dc:date>2019-10-28T12:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: control the default pdf file name generated when saving</title>
      <link>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118228#M4527673</link>
      <description>&lt;P&gt;For option 1 where you control the download yourself, there is no parameter for the filename. You will set the parameter for basically retrieve the pdf file instead of "printing" it (in your case: set fp_outputparams-getpdf to X or abap_true). This will return the output in /1BCDWB/FORMOUTPUT. This table you can then use to do a download to a server or presentation server in old school abap.&lt;/P&gt;&lt;P&gt;If you do not want to do this, go see if option 2 works for you. Again the link:  &lt;A href="http://www.kodyaz.com/sap-abap/download-and-display-adobe-form-pdf-in-sap-web-dynpro.aspx"&gt;download adobe forms webdynpro&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2019 13:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118228#M4527673</guid>
      <dc:creator>former_member259807</dc:creator>
      <dc:date>2019-10-28T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: control the default pdf file name generated when saving</title>
      <link>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118229#M4527674</link>
      <description>&lt;P&gt;Hi Yasin,&lt;/P&gt;&lt;P&gt;I have exactly the same requirement as you : change the default PDF file name with the purchase order number.&lt;/P&gt;&lt;P&gt;With the use of outputparams-getpdf = X &lt;/P&gt;&lt;P&gt;we loose the standard form preview...&lt;/P&gt;&lt;P&gt;Did you find a solution ?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 12:45:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/control-the-default-pdf-file-name-generated-when-saving/qaa-p/12118229#M4527674</guid>
      <dc:creator>former_member1341968</dc:creator>
      <dc:date>2023-04-21T12:45:51Z</dc:date>
    </item>
  </channel>
</rss>

