Sf_webform_04

Hello Forum,
I try to know how to generate a pdf document from a bsp..i am trying with this example...but when i am going to generate the pdf the page is completly empty...i dont know why¿?
Anybody know how it works¿?
Thanks in advance and regards,
Mon

Hi,
Craig made an excellent overview of the possibiliites in
/people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
Eddy

Similar Messages

  • How to display the smartform of a purchase order from EBP (its) into a BSP

    Hello,
    I'm trying to make a bsp which lists the purchase orders (PO) for a user, that is not a problem.
    But I would like to open the smartform of a PO like in EBP (SRM) into my BSP.
    In EBP with the ITS i use this function :
    BBP_OUTPUT_PO_PREVIEW_SMART
    I give in input of this function the GUID (number) of my PO and the name of smartform to use with.
    I would like to reproduce this functionality in a BSP like on the ITS.
    Can someone help me ?
    Thanks a lot !
    Francois

    Indeed with the example of the bsp sf_webform_04 i can display my smartform !
    I have two choices : HTML or PDF.
    You only have to choose OTF for PDF or XSF for HTML !
    Thanks a lot !
    Francois
    Message was edited by: Francois Lavoissiere

  • Where can I see sample programs

    Hi gurus,
    Where Can I see sample standard SAP programs for BSP?
    Advance Thanks for all.

    Look at the blog..
    <a href="/people/thomas.jung3/blog/2004/06/17/bsp-150-a-developer146s-journal-part-i-introduction – a Developer’s Journal</a>
    Also try the below standard programs..
    <b>BSP with MVC</b> - bsp_model
    <b>BSP With input help</b> - bsp_value
                                    bsp_vhelp
    BSPTestPage
    BspTutorialDataPersistance
    BSPTUTORIALDDIC
    bsptutorialmail
    bsptutorialmessages
    <b>BSP with Smartforms:</b>
    sf_webform_01
    SF_WEBFORM_02
    sf_webform_03
    sf_webform_04
    <i>* Reward ech useful answer</i>
    Raja T

  • How to display Adobe form build in SFP in BSP?

    Hi ,
    i have built an adobe form (not interactive one) using sfp, and it works fine in SAP GUI, by calling the FM behind.
    now i want to display it on our sap portal, could you please tell me what's the easiest way to do that?  how about in BSP?
    Thanks and best regards.
    Jun

    Hi
    I hope you ppl are able convert the pdf document into xstring. This sample code here will help you tranfer any pdf document, and will display in web browser.
    Sample from BSP application sf_webform_04
    which display smartfrom into pdf format
    Fill HTTP request
      response->set_header_field( name  = 'content-type'
                                  value = 'application/pdf' ).
    response->delete_header_field( name = 'pragma' ).
    response->delete_header_field( name = 'expires' ).
    response->delete_header_field( name = 'cache-control' ).
    some Browsers have caching problems when loading PDF format
    response->set_header_field(
                        name  = 'cache-control'
                        value = 'max-age=0' ).
    start PDF viewer either in the Browser or as a separate window
      if pdf_in_browser is initial.
         response->set_header_field(
                            name  = 'content-disposition'
                            value = 'attachment; filename=webforms.pdf' ).
      endif.
    finally display PDF format in Browser
      l_pdf_len = xstrlen( l_pdf_xstring ).  <= pass ur binary data here
      response->set_data( data   = l_pdf_xstring
                          length = l_pdf_len ).
      navigation->response_complete( ).

  • Rename filename of Data Overview PDF

    Hi,
    Using E-Recruiting, when the user opens a BSP to see a Data Overview (SmartForm), it opens up Adobe Acrobat to view it.  However, the filename is 'dummy.pdf' when it opens up.  The client would like it to be something else, but I can't find out where the filename gets populated!
    I have checked the controller for the BSP, as well as the function module for the SmartForm, but I still can't find out where this name is being populated.  I check this forum often for other problems, and you guys are great!!  Please help!

    Joe,
    In this sample BSP application SF_WEBFORM_04 I see the following code, which might be of interest, just check out.
    Conversion of output format OTF into PDF format
    now convert the final document (OTF format) into PDF format
      call function 'CONVERT_OTF'
           exporting
             format                      = 'PDF'
           MAX_LINEWIDTH               = 132
           ARCHIVE_INDEX               = ' '
           COPYNUMBER                  = 0
           importing
             bin_filesize                = l_pdf_len
             bin_file                    = l_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 <> 0.
      error handling
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.

Maybe you are looking for

  • Buttons in a table and their function

    Hi all, I have another question. I use a table to display some master data of an infoobject from the BW. I want edit them with a popup window. Therefore I have three Buttons in the toolbar of the table "Edit", "Delete" and "Add". Is it possible, that

  • Service error when installing OO4O

    I get an error telling me to shut down the service OracleOra9i_HOMEAgent when trying to install OO4O in XP. I can't see anything relating to this in my processes. Does anyone know how to shut this down? thanks very much... Brian....

  • Error in CO-PA extractor with operating concern

    Hello, I have a problem when trying to load data from R/3 to BW using a CO-PA datasource. When I try to load it into BW Server and even using simulation transaction RSA3, I get the error: "Inconsistency in the control tables of the operating concern"

  • Upgrading JRe-URGENT

    Hi friends; I need your help, i am confused about one issue. My instance r11 db10.2.0.3 on linux. I am following 2 note: 1.Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite 11i [ID 290807.1] << per this note i need to

  • Lightroom 3 wiping all my presets

    I purchased Lightroom 3 as a download last year, and I've had constant issues with it ever since. Problems include the following: -On startup, it says my camera profiles are missing, and to reinstall Lightroom to fix the issue. Of course, reinstallin