<?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: Generating PDF in Web-Dynpro in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848573#M1499451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Sebastian,&lt;/P&gt;&lt;P&gt;I tried what you have written. I did it in my Test WebDynpro that has only one view and no popup or anything else. In this Webdynpro I did everything like in the PDF "How to display a smartform as PDF document in Web Dynpro for ABAP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the result is always the same, nothing on the screen.  I have now idea where the mistake can be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 12:31:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T12:31:20Z</dc:date>
    <item>
      <title>Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaq-p/3848558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a problem with generating a PDF file with ABAP WebDynpro. I have an ALV and there I read a line. From this line I want to build a smartform which should be converted into PDF. I think my coding works. I have no syntax errors and when I debug the coding, everything looks good. I also get my popup that I want to have. But then I got an error: "File does not begin with '%PDF-'."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look for this error here in SDN but I could not find a solution. I have also tried to do what is mentioned in note 1042424. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody helps me? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 14:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaq-p/3848558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848559#M1499437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a binary pdf (xstring), you can give an output via element "InteractiveForm".&lt;/P&gt;&lt;P&gt;This also supports display of common pdfs generated by smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just unmark "enabled" in that element.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 14:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848559#M1499437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T14:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848560#M1499438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a binary pdf (xstring), you can give an output via element "InteractiveForm".&lt;/P&gt;&lt;P&gt;This also supports display of common pdfs generated by smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just unmark "enabled" in that element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your very quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the view for the PDF I have the element "InteractiveForm" and I unmark "enabled".&lt;/P&gt;&lt;P&gt;Now I got no errors, but the popup is empty. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my last rows of coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: pdf_size type i,
        pdf_data type xstring,
        lt_otf      TYPE  tsfotf,
        lt_pdf     TYPE  STANDARD TABLE OF tline.


CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'PDF'
*        max_linewidth         = 132
      IMPORTING
        bin_filesize          = pdf_size
        bin_file              = pdf_data
      TABLES
        otf                   = lt_otf   
        lines                 = lt_pdf   
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 3
        err_bad_otf           = 4
        OTHERS                = 5.

  if sy-subrc &amp;lt;&amp;gt; 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.

  data:
        node_pdf     type ref to if_wd_context_node,
        elem_pdf     type ref to if_wd_context_element,
        stru_pdf     type        if_componentcontroller=&amp;gt;element_pdf ,
        item_source  like        stru_pdf-source.

* navigate from &amp;lt;CONTEXT&amp;gt; to &amp;lt;PDF&amp;gt; via lead selection
  node_pdf = wd_context-&amp;gt;get_child_node( name = if_componentcontroller=&amp;gt;wdctx_changing ).
* get element via lead selection
  elem_pdf = node_pdf-&amp;gt;get_element( ).
* set single attribute
  elem_pdf-&amp;gt;set_attribute(
    exporting
      name = `PDF`
      value = pdf_data ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which fields/tables should be filled that I get results in the popup?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 14:56:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848560#M1499438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T14:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848561#M1499439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you writing these lines of code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 18:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848561#M1499439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T18:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848562#M1499440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you ever generated smartforms, before.&lt;/P&gt;&lt;P&gt;The OTF function needs the output of your smartform in order to generate a pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to generate your smartform like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data ls_control_pars type ssfctrlop.
data ls_ouput_options type ssfcompop.
data ls_output type ssfcrescl.

call function 'FUNCTION_MODULE_NAME'
 exporting
   control_parameters = ls_control_pars
   outout_options       = ls_output_options
   user_settings         = false
   .
   .
importing
  job_outputinfo       = ls_output


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'CONVERT_OTF'
  exporting
    format = 'PDF'
  importing
   bin_filsize = l_file_size
   bin_file = l_xstring
 tables
  otf = ls_output-otfdata

 lines = lt_lines.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the element lt_lines can be defined as dummy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is just pseudo code. You need to have know how in generating smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sebastian Menger on May 14, 2008 12:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 09:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848562#M1499440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T09:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848563#M1499441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Naresh: I wrote this coding in a method in the COMPONENTCONTROLLER. Is that right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The smartform I want to use is an old one. I used it in windows gui, so it is generated to a function.&lt;/P&gt;&lt;P&gt;In my coding I use function SSF_FUNCTION_MODULE_NAME instead of FUNCTION_MODULE_NAME. Is that a problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 10:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848563#M1499441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848564#M1499442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sebastian, thanks for your help, but I have used the funtions you have written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I summarize my coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
      formname                  = 'ZRPM_STECKBRIEF'
    importing
      fm_name                   = fm_name
    exceptions
      no_form                     = 1
      no_function_module    = 2
      others                        = 3.


CALL FUNCTION fm_name
        EXPORTING
          control_parameters =  ls_control_parameters
          is_attributes      =  ls_attributes
          lt_cap             = lt_cap_data
          iv_dateinr         = lv_dateinr
          iv_gate1           = lv_datgate1
          iv_chancen         = lv_chancen
*          IV_RISIKEN         =
*          IV_BEWERTUNG       =
          iv_ziel            = lv_short_texts
          it_fin             = lt_fin_data
          report_reason      = doc_type
        IMPORTING
          job_output_info    = ls_formdata
        TABLES
          it_nutzen          = lt_test3
        EXCEPTIONS
          formatting_error   =  1
          internal_error     =  2
          send_error         =  3
          user_canceled      =  4
          OTHERS             =  5.


lt_otf[] = ls_formdata-otfdata[].
  call function 'SSFCOMP_PDF_PREVIEW'
    exporting
      i_otf                    = lt_otf
    exceptions
      convert_otf_to_pdf_error = 1
      cntl_error               = 2
      others                   = 3.

CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        format                = 'PDF'
*        max_linewidth         = 132
      IMPORTING
        bin_filesize          = pdf_size
        bin_file              = pdf_data
      TABLES
        otf                   = lt_otf   
        lines                 = lt_pdf   
      EXCEPTIONS
        err_max_linewidth     = 1
        err_format            = 2
        err_conv_not_possible = 3
        err_bad_otf           = 4
        OTHERS                = 5.


data:
        node_pdf     type ref to if_wd_context_node,
        elem_pdf     type ref to if_wd_context_element,
        stru_pdf     type        if_componentcontroller=&amp;gt;element_pdf ,
        item_source  like        stru_pdf-source.

* navigate from &amp;lt;CONTEXT&amp;gt; to &amp;lt;PDF&amp;gt; via lead selection
  node_pdf = wd_context-&amp;gt;get_child_node( name = if_componentcontroller=&amp;gt;wdctx_changing ).
* get element via lead selection
  elem_pdf = node_pdf-&amp;gt;get_element( ).
* set single attribute
  elem_pdf-&amp;gt;set_attribute(
    exporting
*      name = `SOURCE`
      name = `PDF`
      value = pdf_data ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 10:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848564#M1499442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T10:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848565#M1499443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to analyize that issue, please tell, if the pdf binary is created.&lt;/P&gt;&lt;P&gt;Does pdf_data have any value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, does lt_otf any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives a hint, if webdynpro or smartform is the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 11:00:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848565#M1499443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T11:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848566#M1499444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;I've checked the lt_otf and it has no data. It's empty. I checked the "CALL FUNCTION fm_name" and in web gui and windows gui the ls_formdata-otfdata[] is empty. So lt_otf is also empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also checked the pdf_data and it is also empty. The " data: pdf_data type xstring." code is direct in front of the function "CONVERT_OTF".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to do my coding like this: &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I do everything like in this PDF, I have the same problem. My Dynpro is still empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 11:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848566#M1499444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T11:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848567#M1499445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are getting nearer. So first of all, has your user a printer assigned?&lt;/P&gt;&lt;P&gt;Take a look at SU01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly check sy-subrc after calling the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The call of SSF_FUNCTION_MODULE_NAME is neccessary as you did. Calling the smartform needs to be done with the function got by this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally set the following parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ls_control_pars-no_dialog = 'X'.
ls_control_pars-langu = sy-langu.
ls_control_pars-getotf = 'X'.

call function 'SSF_GET_DEVICE_TYPE'
 exporting
   i_language = ls_control_pars-langu
 importing
  e_devtype = l_devtype.

ls_output_options-tdprinter = l_devtype.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This needs to be done before calling the smartform.&lt;/P&gt;&lt;P&gt;Do not forget to hand ls_output_options to your smartform after control parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 11:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848567#M1499445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T11:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848568#M1499446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;thanks for your very good answer. I used some parameters but not all of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have sy-subrc = after the "CALL FUNCTION fm_name".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I have some entries in the LT_OTF. &lt;/P&gt;&lt;P&gt;After "CALL FUNCTION 'CONVERT_OTF' " the PDF_DATA is filled, the PDF_SIZE has also a value and sy-subrc is still 0. But my popup is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After "CALL FUNCTION 'CONVERT_OTF' " I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data:
        node_pdf     type ref to if_wd_context_node,
        elem_pdf     type ref to if_wd_context_element,
        stru_pdf     type        if_componentcontroller=&amp;gt;element_pdf ,
        item_source  like        stru_pdf-source.

* navigate from &amp;lt;CONTEXT&amp;gt; to &amp;lt;PDF&amp;gt; via lead selection
  node_pdf = wd_context-&amp;gt;get_child_node( name = if_componentcontroller=&amp;gt;wdctx_changing ).
* get element via lead selection
  elem_pdf = node_pdf-&amp;gt;get_element( ).
* set single attribute
  elem_pdf-&amp;gt;set_attribute(
    exporting
*      name = `SOURCE`
      name = `PDF`
      value = pdf_data ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 11:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848568#M1499446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T11:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848569#M1499447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, I forgot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a printer PDF1 with type PDF1. It is like in note 1042424.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848569#M1499447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848570#M1499448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getting close. Now your smartform is being generated.&lt;/P&gt;&lt;P&gt;So another question. Do you really have a popup (that means a new window), or a popin (in the window, graying out the background).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Showing PDF files within popins is not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try first to integrate your InteractiveForm tag within the main view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Showing the PDF in a real popup should be done by creating a new window. But this window will have a new session.&lt;/P&gt;&lt;P&gt;So start easily integrating it in the same window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:02:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848570#M1499448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848571#M1499449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another WebDynpro Test-Application where I want to implement the PDF on only one view. It is the main view. But there I have the same problems. I see nothing on my screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the application with the popup, I generate a seperate view and window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*Popup für PDF öffnen
data:   l_cmp_api         type ref to if_wd_component,
        l_window_manager  type ref to if_wd_window_manager,
        M_PDF_POPUP_1     type ref to if_wd_window.


l_cmp_api         = wd_comp_controller-&amp;gt;wd_get_api( ).
l_window_manager  = l_cmp_api-&amp;gt;get_window_manager( ).

if M_PDF_POPUP_1 is initial.

M_PDF_POPUP_1 = l_window_manager-&amp;gt;create_window(

window_name = 'PDF_POPUP' "
*PDF_POPUP is window containing the second view

).
endif.

M_PDF_POPUP_1-&amp;gt;open( ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848571#M1499449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848572#M1499450</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;well create_window is not supported, because it generates a popin in the same browser window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Display it in the same view, which is not a popin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configure InteractiveForm like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;displayType: activeX&lt;/P&gt;&lt;P&gt;height: 700px&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;visible = true (just after pdf was generated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with = 100%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pdfSource = contextField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848572#M1499450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848573#M1499451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Sebastian,&lt;/P&gt;&lt;P&gt;I tried what you have written. I did it in my Test WebDynpro that has only one view and no popup or anything else. In this Webdynpro I did everything like in the PDF "How to display a smartform as PDF document in Web Dynpro for ABAP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the result is always the same, nothing on the screen.  I have now idea where the mistake can be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848573#M1499451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848574#M1499452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry, I do not know how to help you further on.&lt;/P&gt;&lt;P&gt;But maybe you try it again as you did in your first example. Now you can generate the pdf properly. Maybe you will find another output option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But one last question, you bind the xstring to pdfSource right? Make sure dataSource is not bound and templateSource is not bound.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848574#M1499452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848575#M1499453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One last thing I remember. It seems you have an old version of Webdynpro ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a javascript error in the left lower corner of your browser?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, check note 1096114.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848575#M1499453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848576#M1499454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sebastian, &lt;/P&gt;&lt;P&gt;I've found the mistake. I have written something wrong. A very very small mistake. &lt;/P&gt;&lt;P&gt;Now the PDF works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But at the end I have another question. How I can get this PDF into a popup? You've said something about a new session.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your great help and your time you've spent for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848576#M1499454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Generating PDF in Web-Dynpro</title>
      <link>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848577#M1499455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to user create_external_window instead of create_window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you open a new browser window. The context in there has nothing to do with the context of the caller component.&lt;/P&gt;&lt;P&gt;Therefore you usually call another component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passing variables can only be done by URL parameters. Therefore you need to generate a new URL.&lt;/P&gt;&lt;P&gt;Variables can be read in the default plug of the window, as Importing Parameter.&lt;/P&gt;&lt;P&gt;Therefore create an inbound parameter in the default plug, give it same name as URL-parameter and define it as string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you can give it a try, opening it in a popin. It's just what SAP says. I have not tried it out yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details search the forum. I do not have an example on hand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/generating-pdf-in-web-dynpro/qaa-p/3848577#M1499455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:51:30Z</dc:date>
    </item>
  </channel>
</rss>

