<?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: regarding webdynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957314#M945641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you don't need to specify the template source in this case since you are not calling any interactive online/offline Adobe Form (at least, that is not what read in your requirement), but merely a smartform. You only need to define the datasource in the context and use the XSTRING type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2008 13:44:47 GMT</pubDate>
    <dc:creator>Sm1tje</dc:creator>
    <dc:date>2008-06-04T13:44:47Z</dc:date>
    <item>
      <title>regarding webdynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957311#M945638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I want to know can we call smartform in webdynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If possible can any body give me the procedure how we can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks And Regards,&lt;/P&gt;&lt;P&gt;Sreelatha Gullapalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 07:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957311#M945638</guid>
      <dc:creator>sreelatha_gullapalli</dc:creator>
      <dc:date>2008-06-04T07:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: regarding webdynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957312#M945639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure you can call a smartform in WebDynpro (ABAP):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the procedure:&lt;/P&gt;&lt;P&gt;1. Create your smartform (if not already available).&lt;/P&gt;&lt;P&gt;2. Create a view in which smartform should be displayed.&lt;/P&gt;&lt;P&gt;3. Insert interactive form UI element for smartform to be displayed in.&lt;/P&gt;&lt;P&gt;4. In method WDDOINIT (for example), retrieve the FM for the smartform.&lt;/P&gt;&lt;P&gt;5. Call function module for smartform (set control parameter getotf to 'X' and no_dialog also to 'X'. Set device type).&lt;/P&gt;&lt;P&gt;6. In import parameter job_output_info-otfdata the pdf is contained.&lt;/P&gt;&lt;P&gt;7. call FM CONVERT_OTF to convert to pdf format.&lt;/P&gt;&lt;P&gt;8. Now the bin_file will be returned (import parameter).&lt;/P&gt;&lt;P&gt;9. Use this data to set the attribute of the smartform UI element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
METHOD wddoinit.

  DATA:
    node_diamond_data   TYPE REF TO if_wd_context_node,
    elem_diamond_data   TYPE REF TO if_wd_context_element,
    stru_diamond_data   TYPE if_smartform_view=&amp;gt;element_diamond_data,
    tab_diamond_data    TYPE if_smartform_view=&amp;gt;elements_diamond_data.

  DATA:
    node_remarks         TYPE REF TO if_wd_context_node,
    elem_remarks         TYPE REF TO if_wd_context_element,
    stru_remarks         TYPE if_smartform_view=&amp;gt;element_remarks ,
    item_remarks_text    LIKE stru_remarks-remarks_text.

  DATA:
    node_smartform_pdf   TYPE REF TO if_wd_context_node,
    elem_smartform_pdf   TYPE REF TO if_wd_context_element,
    stru_smartform_pdf   TYPE if_smartform_view=&amp;gt;element_smartform_pdf ,
    item_stones_data     LIKE stru_smartform_pdf-stones_data.

  DATA:
    lt_diamonds          TYPE zpo_ssp_list_t,
    lt_lines             TYPE TABLE OF tline.

  DATA:
    ls_output_options      TYPE ssfcompop,
    ls_control_parameters  TYPE ssfctrlop,
    ls_output_data         TYPE ssfcrescl.

  DATA:
    lv_form_name            TYPE tdsfname  VALUE 'ZMM_P_SSPS',
    lv_function_module_name TYPE rs38l_fnam,
    lv_devtype              TYPE rspoptype,
    lv_pdf_len              TYPE i,
    lv_pdf_xstring          TYPE xstring.

* navigate from &amp;lt;CONTEXT&amp;gt; to &amp;lt;DIAMOND_DATA&amp;gt; via lead selection
  node_diamond_data =
      wd_context-&amp;gt;get_child_node(
                name = if_smartform_view=&amp;gt;wdctx_diamond_data ).

* Retrieve diamond data from context.
  node_diamond_data-&amp;gt;get_static_attributes_table(
      IMPORTING
         table  = tab_diamond_data ).

* Copy Diamond data.
  lt_diamonds[] = tab_diamond_data[].

* navigate from &amp;lt;CONTEXT&amp;gt; to &amp;lt;REMARKS&amp;gt; via lead selection
  node_remarks =
      wd_context-&amp;gt;get_child_node(
                name = if_smartform_view=&amp;gt;wdctx_remarks ).

* get element via lead selection
  elem_remarks = node_remarks-&amp;gt;get_element(  ).

* get single attribute
  elem_remarks-&amp;gt;get_attribute(
    EXPORTING
      name =  `REMARKS_TEXT`
    IMPORTING
      value = item_remarks_text ).

*-----------------------------------------------------------------------
* Get name of generated function module
*-----------------------------------------------------------------------
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
       EXPORTING  formname           = lv_form_name
*                 variant            = ' '
*                 direct_call        = ' '
       IMPORTING  fm_name            = lv_function_module_name
       EXCEPTIONS no_form            = 1
                  no_function_module = 2
                  OTHERS             = 3.

  IF sy-subrc &amp;lt;&amp;gt; 0.
*   error handling
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    EXIT.
  ENDIF.

*-----------------------------------------------------------------------
* Setting of output options
*-----------------------------------------------------------------------
* language
  ls_control_parameters-langu = sy-langu.

* set control parameters to get the output format (OTF) from Smart Forms
  ls_control_parameters-no_dialog = 'X'.
  ls_control_parameters-getotf    = 'X'.


* get device type from language
  CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
      i_language                   = sy-langu
*     i_application                = 'SAPDEFAULT'
    IMPORTING
      e_devtype                    = lv_devtype
    EXCEPTIONS
      no_language                  = 1
      language_not_installed       = 2
      no_devtype_found             = 3
      system_error                 = 4
      OTHERS                       = 5.

  IF sy-subrc &amp;lt;&amp;gt; 0.
*   error handling
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

* set device type in output options
  ls_output_options-tdprinter = lv_devtype.

  CALL FUNCTION lv_function_module_name
    EXPORTING
      control_parameters = ls_control_parameters
      output_options     = ls_output_options
      user_settings      = 'X'
      it_diamonds        = lt_diamonds
      iv_remarks         = item_remarks_text
    IMPORTING
      job_output_info    = ls_output_data
    EXCEPTIONS
      formatting_error   = 1
      internal_error     = 2
      send_error         = 3
      user_canceled      = 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.


* now convert the final document (OTF format) into PDF format
  CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         format                      = 'PDF'
       IMPORTING
         bin_filesize                = lv_pdf_len
         bin_file                    = lv_pdf_xstring       " binary file
       TABLES
         otf                         = ls_output_data-otfdata
         lines                       = lt_lines
       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.
*   error handling
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

* navigate from &amp;lt;CONTEXT&amp;gt; to &amp;lt;SMARTFORM_PDF&amp;gt; via lead selection
  node_smartform_pdf =
      wd_context-&amp;gt;get_child_node(
        name = if_smartform_view=&amp;gt;wdctx_smartform_pdf ).

* get element via lead selection
  elem_smartform_pdf = node_smartform_pdf-&amp;gt;get_element(  ).

* get single attribute
  item_stones_data = lv_pdf_xstring.
  elem_smartform_pdf-&amp;gt;set_attribute(
    EXPORTING
      name =  `STONES_DATA`
      value = item_stones_data ).

ENDMETHOD.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 07:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957312#M945639</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-06-04T07:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: regarding webdynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957313#M945640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     What i have ti specify the interactive form property templatesource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sreelatha gullapalli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 10:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957313#M945640</guid>
      <dc:creator>sreelatha_gullapalli</dc:creator>
      <dc:date>2008-06-04T10:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: regarding webdynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957314#M945641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you don't need to specify the template source in this case since you are not calling any interactive online/offline Adobe Form (at least, that is not what read in your requirement), but merely a smartform. You only need to define the datasource in the context and use the XSTRING type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 13:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957314#M945641</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-06-04T13:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: regarding webdynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957315#M945642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    That problem got resolved but while executing it is not showing the smartform it is showing the following message&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File does not begin with '%PDF-'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please give me the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sreelatha gullapalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 13:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957315#M945642</guid>
      <dc:creator>sreelatha_gullapalli</dc:creator>
      <dc:date>2008-06-04T13:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: regarding webdynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957316#M945643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are a few threads about this, just search SDN with 'File does not begin with '%PDF-'. I really don't know what causes this problem, but in the threads you will find, there are several solutions offered. So I would suggest to do a search and have a look at the threads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 14:55:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-webdynpro/m-p/3957316#M945643</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-06-04T14:55:03Z</dc:date>
    </item>
  </channel>
</rss>

