Smart form in web ui

Hi All,
        How to print smartform in web ui.
Thanks in Advance,
Prameela.

Hi Prameela,
Refer The below link,
http://wiki.sdn.sap.com/wiki/display/CRM/AdobeFormsin+WebUI
Thanks & regards
VIJAY

Similar Messages

  • Smart forms in web dynpro abap

    how to use smart forms in web dynpro abap ????
    what are the steps??

    Hi Ankit,
    1.create a node(Eg:PDF)  with attribute(SOURCE type xstring )  
    2.use Interactiveform UI element in the view
    3.Bind the pdfSource property of the UI to the attribute SOURCE
    4.in method write logic for call the smart form
      Pass the output of the smartform function call to
      function module CONVERT_OTF to convert it to PDF data.
    method displaypdf .
    data : l_x(1) value 'X'.
    data: lv_text type char3,
    lv_syucomm type char1,
    ls_pdf type xstring,
    lv_fm_name type rs38l_fnam,
    lv_control_parameters type ssfctrlop,
    lv_output_options type ssfcompop,
    lv_ssf_output type ssfcrescl,
    lt_otfdata type table of itcoo.
    data:
    node_input1 type ref to if_wd_context_node,
    elem_input1 type ref to
    if_wd_context_element,
    stru_input1 type
    ig_componentcontroller=>element_zinput.
    * navigate from <CONTEXT> to <INPUT1> via lead selection
    node_input1 = wd_context->get_child_node( name
    ig_componentcontroller=>wdctx_zinput ).
    * get element via lead selection
    elem_input1 = node_input1->get_element( ).
    * get all declared attributes
    elem_input1->get_static_attributes(
    importing
    static_attributes = stru_input1 ).
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM_NAME'
    importing
    fm_name = lv_fm_name
    exceptions
    no_form = 1
    no_function_module = 2
    others = 3
    if sy-subrc <> 0.
    * Error MESSAGE
    endif.
    * Set relevant control parameters
    lv_control_parameters-getotf = l_x. "OTF output
    lv_control_parameters-no_dialog = l_x. "No print dialog
    lv_control_parameters-preview = space. "No preview
    * Set relevant output options
    lv_output_options-tdnewid = l_x. "Print parameters,
    lv_output_options-tddelete = space. "Print parameters,
    call function lv_fm_name
    exporting
    * ARCHIVE_INDEX * ARCHIVE_INDEX_TAB *
    ARCHIVE_PARAMETERS control_parameters = lv_control_parameters
    * MAIL_APPL_OBJ * MAIL_RECIPIENT * MAIL_SENDER
    output_options = lv_output_options
    user_settings = space
    pernr = stru_input1-zpernr
    reinr = stru_input1-zreinr
    pdvrs = stru_input1-zpdvrs
    importing
    * DOCUMENT_OUTPUT_INFO job_output_info = lv_ssf_output
    * JOB_OUTPUT_OPTIONS exceptions
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    others = 5
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    refresh lt_otfdata.
    lt_otfdata[] = lv_ssf_output-otfdata[].
    call function 'SSFCOMP_PDF_PREVIEW'
    exporting
    i_otf = lt_otfdata
    exceptions
    convert_otf_to_pdf_error = 1
    cntl_error = 2
    others = 3.
    if sy-subrc <> 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    data: l_dummy type standard table of tline,
    pdf_data type xstring,
    pdf_size type i.
    clear: pdf_data, pdf_size.
    * convert otf to pdf
    call function 'CONVERT_OTF'
    exporting
    format = 'PDF'
    importing
    bin_filesize = pdf_size
    bin_file = pdf_data
    tables
    otf = lt_otfdata[]
    lines = l_dummy
    exceptions
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    others = 4.
    if sy-subrc <> 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=>element_pdf ,
    item_source like stru_pdf-source.
    * navigate from <CONTEXT> to <PDF> via lead selection
    node_pdf = wd_context->get_child_node( name if_componentcontroller=>wdctx_pdf ).
    * get element via lead selection
    elem_pdf = node_pdf->get_element( ).
    * set single attribute
    elem_pdf->set_attribute(
    exporting
    name = `SOURCE`
    value = pdf_data ).
    endmethod.
    Thanks
    Chinnaiya P

  • How to integrate a Smart Form in Web Dynpro and how to view it on portal?

    Hi,
    I have created a Smart Form in ABAP. I need to use it in Web Dynpro. How can this be done?
    I want to integrate this Smart Form in a Web Dynpro Application and then display this Smart Form on the Portal (when I deploy the Web Dynpro application).
    Is it compulsory to first convert the Smart Form into PDF Format? Is there some other way ??
    Thanks in Advance.
    Regards,
    Harshada

    Hi,
    Go through Re: Web Dynpro and Smart Forms.
    Regards,
    Satyajit.

  • Smart form in Web dynpro ABAP

    Hi experts,
                   In my scenario i have to display smartform from WDA. The smartform will show the employee records when i pass PERNR as the input parameter. i have used the following FM's SSF_FUNCTION_MODULE_NAME and CONVERT_OTF. and converted it into PDF and binded the source file to interactive form. Now the form is getting displayed.
    My problem is when i pass single pernr its fetching the record of particular pernr and when i pass multiple pernr its not fetching the records of multiple pernr.
    when i set the value for below control parameter its getting values for single pernr:-
    cparam-no_dialog  = 'X'.
    cparam-preview = 'X'.
    cparam-getotf = 'X'.
    when i set values for these parameters cparam-no_open = 'X' and cparam-no_close = 'X'  to fetch multiple PERNR nothing is getting displayed in the form.
    What should i have to do to show multiple records. Is any other control parameters is to be passed.
    Please help me out of this issue.
    Regards,
    Susil.

    Susil,
    It has something to do the logic inside the smartforms,nothing with the control parameters
    Thanks
    Bala Duvvuri

  • Calling a smart form on click of a button in web dynpro abap

    Hi experts,
    I have a requirement like if I click a button in a view i need ti generate a PDF through smart form.
    Is this possible. If so please tell me the way..
    Thanks & Regards

    Hi Sharma,
    Create Interactive form in your view, create one node say PDF_SOURCE under this one attribute PDF_SOURCE of type XSTRING.
    Bind this to IF form Datasource and pdfsource.
    in your button action write code to call your smartform
    using SSF_FUNCTION_MODULE_NAME
    using FM  CONVERT_OTF and attach_file_to_response
    *convert to pdf
      call function 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = lv_bytecount
        TABLES
          otf                   = ls_job_output_info-otfdata
          lines                 = lt_lines
        EXCEPTIONS
          err_conv_not_possible = 1
          err_bad_otf           = 2.
      loop at lt_lines into ls_line.
        lv_string = ls_line.
        export mydata = lv_string to data buffer lv_buffer.
        import mydata to l_xline from data buffer lv_buffer in char-to-hex
        mode.
        concatenate l_pdfstring l_xline into l_pdfstring in byte mode.
      endloop.
      call method cl_wd_runtime_services=>attach_file_to_response
        EXPORTING
          i_filename      = 'ZWTY_PACKINGSLIP'
          i_content       = l_pdfstring
          i_mime_type     = 'BIN'
          i_in_new_window = abap_false
          i_inplace       = abap_false.
    also check this..
    http://abapcodexperiments.wordpress.com/2011/03/20/smartform-pdf-webdynpro-abap/
    Call smartform in web dynpro abap
    Cheers,
    Kris.

  • Smart form should be online (i.e Export to web )

    Hi friends,
    Its too immediate requirement.
    When i click push button, smart form containing 3 pages should be in online and also hard copy should be display.
    and that form ( statement should be online access )
    Please help me in this,
    Points will be rewarded.
    Regards,
    Krishna.

    Try with any of the following CIN user exit
    1)  J_1I7_USEREXIT_DUTY_IN_EXPORT
    2)  J_1I7_USEREXIT_EXCISE_BEF_SAVE
    thanks
    G. Lakshmipathi

  • How to use function module ADDRESS_INTO_PRINTFORM in a smart form

    Hi Experts,
    I have a requirement where in the address window in the smart form output should be  country specific. For example if the customer is an Indian . The address should NAME,CITY and POSTAL CODE. I searched on web to find a function module wich will display the address in country specific format I found ADDRESS_INTO_PRINTFORM I am not sure whether this is right function module or not. If this is correct please help me in using this.
    Thanks and Regards,
    Srini..

    That function module should be able to do the formatting you're after, as long as the necessary settings are present in the country configuration. It appears the default formatting routine for India would want the postal code before the city, so you may have to change that if your requirement calls it for being after the city. But keep in mind that such config changes will have an effect on other programs that format addresses.
    The function module also has pretty extensive documentation.
    In a Smartform, you have an ADDRESS element that does the formatting for you, so theoretically you shouldn't have to use the function module though...

  • Linking a PDF document to URL in Smart forms

    Hi All,
    Please anyone let me know how i can link a PDF document to a link in the smart form output.
    I'm outputting Purchase order details on a smartform and I'm supposed to give an URL link for the user to click on it for Terms and Conditions.
    Please note that I'm not using interactive forms in web dynpros nor developing with BSP.
    I simply developed a smart form in SRM system and I'm able to display an URL but don't know how to link a PDF to that link.
    Please some one let me know your ideas how i can attach a PDF to an URL in smart form.
    Thanks in Advance,
    Sowjanya

    Hi,
    Follow the below blog and it is very useful achiving your requirement.
    in the blog:
    in the below  point,
    Code to send the email
    Following code will transform the html content into displayable format and send email to all the recipients. Note: This form also handles the images (static) defined in the smartform, as well as the images defined with html IMG tag (eg: URL link to image on the network).
    you have to convert your pDF output into displayable format. then add that link to your smartform.
    Thanks,
    Sree.
    Edited by: t sree on Nov 4, 2008 11:30 AM

  • Smart forms Print preview problem

    Hi
    Experts,
    I am working in CRM2007. I am creating number of different type Smart forms for our client requirement. All Smart Forms working fine in WEB GUI. In Web GUI there have two buttons; one is print buttons and another one is Print Preview buttons.  When we press print buttons it is directly go to printer for printing service order or service invoice or sales order or sales invoice whatever user is selected. Means working fine print buttons. And in case when we press print preview button it is open selected forms in PDF format; it is also work fine in our desire. But problem is here PDF format front size; which is very small. And after looking the PDF format if we select for print out of this PDF form; the print out orientation is Landscape and front size is very small. Now my question to all of experts u2026u2026u2026.How I change PDF front size and orientation? u2026u2026u2026u2026u2026u2026any type of BSP Enhancement or functional setting is required? Please Experts help meu2026u2026u2026u2026u2026u2026u2026u2026..
    Regards
    Tarapada  D.

    please CRM Experts give me some answer!!!!!!!!!!!!!!!

  • How to display smart form stored in SAP in Webdynpro java( TLINE table)

    Hi
    I have a requirement where I have to display the smart form from WD Java end.
    The BAPI is producing output in TLINE(TDLINE(132),TDFORMAT(2)). I am trying to concat both(TDLINE+TDFORMAT) and put in the interactive form but I am not able to get the output from BAPI.
    Is it because the TLINE  format is not supported in the WD java. How can I solve the issue.
    Looking forward for the reply.
    Regards,
    Pawan

    Hi..
    Try this PDF URL.... u might get useful things...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
    Web Dynpro Java
    yours GS

  • How to Mask URL in Smart forms

    Hi,
    i wanted to mask the URL in my smartform so that it is concise and readable, like suppose url is like this http://www.myurl.com/pages/abcd&attr=19093  i wanted to create text which is something like click here  on clicking click here it should take me to the desired page which the above mentioned URL ( http://www.myurl.com/pages/abcd&attr=19093 ) actually navigates.
    How can i achieve this Smart forms??
    Please suggest
    Edited by: kranthi kumar on Oct 29, 2010 12:56 PM
    Edited by: kranthi kumar on Oct 29, 2010 12:59 PM

    Hi Aidan,
    Thanks for your answer, Just got an alternative solution, when i got XSF output from smartform function Module, the same XSF  output (me->sf_job_output-xmloutput-trfresult-content) i used in below method to convert to string.
    CALL METHOD cl_hrrcf_cs_sf=>convert_xsf_html_to_txtstring
            EXPORTING
              content     = me->sf_job_output-xmloutput-trfresult-content
            IMPORTING
              html_string = me->doc_properties-output_c
              html_tab    = me->doc_properties-output_c_tab.
    later i realised that URLs in the smartform has got corresponding HTML code as below in the (me->doc_properties-output_c_tab).
    <a href="https://www.google.com">
    <span>
    https://www.google.com
    </span>
    </a>
    when i changed the link in the debugger  https://www.google.com  which was inside
    <span> </span>
    to "Click Me", the output was as i expected in the E-Mail which showed me Click Me and when i click that it took me to google web site.
    so i decided that i would change this table(me->doc_properties-output_c_tab.) for every URL in code, though it did not seem like right solution, as suggested in this forum there is no straight solution for this, i have no other option.
    Please comment.
    Thanks,
    Kranthi.
    Edited by: kranthi kumar on Oct 29, 2010 9:43 PM
    Edited by: kranthi kumar on Oct 29, 2010 9:44 PM

  • Conversion of Smart form to PDF in Webdypro UI

    Hi Gurus,
                 I want to display a smart form as PDF by converting OTF to PDF and thereby passing the PDF format data to Interactive Form UI element in a Webdynpro application (via portal iview). Do I need ADS server for publishing the OTF converted PDF data in the Interactive Form UI element of the WDA framework.
    Is there a better way to display a smartform in Webdynpro application by avoiding ADS?
    Regards,
    Subhadip

    Hi Thomas,
                    Great to see reply from you. I still cherish the memories of your TechEd sessions that  I have attended in 2007.
    Well back to the topic I'm able to publish a Smartform as PDF via OTF conversion and passing the binary PDF string to pdfsource. While I'm testing the webdynpro application in the WebAS backend I can see the PDF screen with data but when I'm trying to run it from prortal as an iview I can only see a blank screen even without the PDF container. Can you please suggest me whether ADS is a requirement in this kind of scenario (ie portal integration via iview) or this different issue altogether. In case if you feel it's not due to ADS can you please give me a clue on the issue.
    Regards,
    Subhadip

  • Licensing with Smart Forms

    Are Smart Forms included as part of the standard SAP licensing agreement if my client has purchased SAP ERP?  Does this apply even when I create my own custom Smart Form?  We are investigating the decision criteria of when to use Smart Forms vs. Adobe Interactive Forms.  I would appreciate any references out there that provide insight as to when to use one versus the other.  Thanks.

    Smartforms come with your standard R/3 only.
    as for choosing between the two, Adobe forms are next version of smartforms they can give better look feel and as addition they can also provide you facilities for user inputs which is not there with smartforms.
    Check these links -
    <a href="http://www.sap.info/goto/en/go/25080">http://www.sap.info/goto/en/go/25080</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/a-c/adobe%20interactive%20forms%20and%20sap%20netweaver%20extend%20power%20of%20enterprise%20systems.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/a-c/adobe%20interactive%20forms%20and%20sap%20netweaver%20extend%20power%20of%20enterprise%20systems.pdf</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/nw/how%20to%20design%20forms-based%20processes%20in%20manager%20self-services.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/nw/how%20to%20design%20forms-based%20processes%20in%20manager%20self-services.pdf</a>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/s-u/sap%20netweaver%20whitepaper%20on%20sap%20ag%20and%20adobe%20systems.pdf
    Regards,
    Amit
    Reward all helpful replies

  • Difference between Smart Forms and Adobe Form

    Hi all,
    What are disadvantages of Smart form in SAP ,
    What is difference between Smart Forms and Adobe interactive Form.
    I heard from someone that in future Adobe interactive Form will repalce smart forms. Is it true or not
    Best Regards
    Srikanth

    Hi,
    Companies depend on formal documents that reflect their corporate identities and contain critical business information from live systems. SAP and Adobe partnered for automating and streamlining forms-based communication to support customers who create reusable forms for their business processes.
    SAP Interactive Forms by Adobe will be used more and more as a way of simplifying and automating manual processes.
    There are various advantages of Adobe forms.
    SAP Interactive Forms by Adobe provides all the features and functions you need to create form-based output, such as order confirmations, invoices, or pay slips. You can either print such documents or send them by email or FAX.
    <b>Online Interactive Forms</b>
    A user logs on to the company intranet to fill in a form required by the HR department (for example, a Non-Disclosure Agreement to be signed by a new employee). The form is displayed in the browser.
    As the user is logged on in the background to the company's HR system, his master data is displayed in the form. The user enters the required information in the fillable fields of the interactive form, and sends the data back to the system by pushing a button. The system extracts the data from the form and saves it in the database.
    <b>Offline Interactive Forms</b>
    The purchasing department of a company creates a bid in its Enterprise Resource Planning (ERP) system and selects the potential vendors. Based upon this data, the system automatically creates interactive bidding forms with specific vendor information, such as the address or contact person.
    The forms are transmitted to the vendors by email. The vendors can fill out the forms offline (without being connected to the system that created the forms) and transmit them back to the company. The company then processes the forms automatically, and the data provided by the vendors is written to the ERP system. The purchasing department uses the data to evaluate the quotation and then issues an order.
    <b>With the integration of Adobe PDF technology into its solutions, SAP will be able to further extend its offerings of end-to-end business solutions by:</b>
    Providing for the first time the capabilities of Adobe's interactive PDF-based forms.
    Integrating PDF documents into business processes that are driven by SAP applications.
    Automating the process of moving XML data from SAP applications into interactive forms and vice versa.
    Reducing time to design, manage, and maintain extended forms-based processes through easy-to-use forms design and deployment tools.
    Offering its customers enhanced printing capabilities, in particular for interactive Web applications.
    The focus of new forms technology from SAP is interactive PDF-based forms that can be created in SAP systems as a result of the <b>integration of Adobe technology with Web Dynpro and the SAP NetWeaver Developer Studio.</b> This integration means that adobe is the future technology.
    Regards,
    Kate

  • Smart Forms or Word

    Hi,
    I'm in a SAP-Standard-Web-Application and there I have to create some forms.
    The forms should contain a lot of static text und some dynamic text (like name, address, amount, description)
    from the application.
    Now I have the possibility to do it in Smart Forms or with Word.
    What's are the main differences/advantage/disadvantage between the two systems ?
    what's your expert knowledge?
    thxs in advance,
    kind regards,
    Franz

    Hi,
    Suppose if dynamically you wants to add new fields or lines, then you can go ahead with word doc.
    Otherwise, you can go with smartforms as the look and feel will be too good.
    Regards,
    Prabu

Maybe you are looking for