Reusability of Adobe form created in SFP in a WebDynpro Java application

Hi Experts,
Can some one advise me how I can use the pdf form created in ABAP side (Transaction SFP) in the WebDynpro Java application?
What is the procedure to include this pdf object in the WebDynpro application development?
Regards,
Shobhit

Hi,
You can add customised UI elements by a right click in your library pallette/ ot by dragging the ui elelments into the pallette. Like wise you can put your layout into the library pallette and reuse them. You may refer the Adobe life cycle designer (ALCD) help for it.
the second option i meant was after designing the layout in the SFP transaction, click on the PDF preview tab in the layout. Save the PDF.
NOw on developing the Java application, open the ALCD and use tools-> import to import the PDF you have saved.
Regards,
Anto.

Similar Messages

  • Creating Packages and Namespace for Webdynpro Java applications in NWDS

    Hi Experts,
    I am working on a stand alone application and using NWDS for the same. This application consist of some Webdynpro Java apps, Dictionary perspective DC's and BPM applications.
    I need to create a package and name space for all the applications. I have read some documents on creating SC in SLD and using it in NWDI. But since I am working on NWDS i am not able to see the SC.
    May be I am not following a correct procedure. Can some one provide a basic document or can tell me steps in short that i need to follow, for Name space and package creation and how to use them in NWDS.
    I am working on CE7.1 ehp1.
    Regards
    Pranav

    HI,
    This blog expalins how to Setup and configure NWDI System land scape:
    /people/bhavana.gupta/blog/2007/01/23/installation-and-configuration-of-netweaver-development-infrastructure-was-64
    NWDI Post installation:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/419b479b-0801-0010-f8a1-c26208b4b209
    http://help.sap.com/saphelp_nw70/helpdata/en/44/60dc1943c2311ce10000000a155369/frameset.htm
    Complete NWDI Resources:
    NWDI Resources [original link is broken]
    Thanks
    SrinivaS

  • Sending PDF forms (created using SFP) as Email Attachment

    Hi,
         I have created bunch of ADOBE forms using SFP. They are not interactive forms. created using ADOBE Live cycle designer.
    I have the Function module and by executing I can view the PDF form in print preview mode. But I have to save this in backend and attach to email.
    I have a program that have to send one of the forms created in SFP as email attachment to outside SAP.
    Please advice how to achieve this.
    Thanks,
    Sanjeev

    Hi ,
    Please find below a code sample for your requirement
    *& Report  ZENVOI_PDF_MAIL
    REPORT  zenvoi_pdf_mail MESSAGE-ID ad.
    TYPE-POOLS : abap .
    DATA : data_for_update TYPE zdemopdf ,
           hexa            TYPE solix_tab.
    DATA : fm_name   TYPE funcname ,
           param     TYPE sfpoutputparams,
           doc_param TYPE sfpdocparams ,
           output    TYPE fpformoutput .
    param-nodialog = abap_true. " suppress printer dialog popup
    param-getpdf = abap_true.
    doc_param-langu = sy-langu.
    doc_param-country = 'FR'.
    doc_param-fillable = abap_true.
    doc_param-dynamic = abap_true.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = 'ZDEMO_PDF'
      IMPORTING
        e_funcname = fm_name.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams = param
      EXCEPTIONS
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 4.
    CHECK sy-subrc EQ 0.
    CALL FUNCTION fm_name
      EXPORTING
        /1bcdwb/docparams  = doc_param
        data_for_update    = data_for_update
      IMPORTING
        /1bcdwb/formoutput = output
      EXCEPTIONS
        usage_error        = 1
        system_error       = 2
        internal_error     = 3.
    CALL FUNCTION 'FP_JOB_CLOSE'
      EXCEPTIONS
        usage_error    = 1
        system_error   = 2
        internal_error = 3
        OTHERS         = 4.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        buffer     = output-pdf "PDF file from function module
      TABLES
        binary_tab = hexa.
    * Envoi du mail
    ** CLASS-DEFINITIONS
    DATA: send_request       TYPE REF TO cl_bcs.
    DATA: document           TYPE REF TO cl_document_bcs.
    *DATA: sender             TYPE REF TO cl_sapuser_bcs.
    data: sender            TYPE REF TO if_sender_bcs.
    DATA: recipient          TYPE REF TO if_recipient_bcs.
    ** INTERNAL TABLES
    DATA: l_mailtext TYPE soli_tab.
    DATA: iaddsmtp   TYPE TABLE OF bapiadsmtp.
    DATA: ireturn    TYPE TABLE OF bapiret2.
    ** VARIABLES
    DATA: mail_line  LIKE LINE OF l_mailtext.
    DATA: bapiadsmtp         TYPE bapiadsmtp.
    DATA: subject    TYPE so_obj_des.
    DATA : att_subject TYPE so_obj_des.
    DATA : w_except TYPE REF TO cx_root .
    CONSTANTS : c_defmail TYPE ad_smtpadr VALUE
                     '[email protected]' .
    FIELD-SYMBOLS : <smtp> TYPE bapiadsmtp.
    *Set subject of the mail
    subject = 'Exemple de PDF interactif'.
    * Set text of the mail
    mail_line = 'Merci de remplir le formulaire et nous le retourner'.
    APPEND mail_line TO l_mailtext .
    att_subject = 'Template du PDF'.
    TRY.
    * Create persistent send request
        send_request = cl_bcs=>create_persistent( ).
    * Get sender object
        sender = cl_sapuser_bcs=>create( sy-uname ).
    *    sender =
    *      cl_cam_address_bcs=>create_internet_address( '[email protected]' ) .
    * Add sender
        CALL METHOD send_request->set_sender
          EXPORTING
            i_sender = sender.
    * Read the E-Mail address for the user
    *    CALL FUNCTION 'BAPI_USER_GET_DETAIL'
    *      EXPORTING
    *        username = sy-uname
    *      TABLES
    *        return   = ireturn
    *        addsmtp  = iaddsmtp.
    *    LOOP AT iaddsmtp ASSIGNING <smtp> WHERE std_no = 'X'.
    *      CLEAR bapiadsmtp.
    *      MOVE <smtp> TO bapiadsmtp.
    *    ENDLOOP.
    *    CASE bapiadsmtp-e_mail.
    *      WHEN space.
            recipient =
         cl_cam_address_bcs=>create_internet_address( c_defmail ).
    *      WHEN OTHERS.
    *        recipient =
    *     cl_cam_address_bcs=>create_internet_address( bapiadsmtp-e_mail ).
    *    ENDCASE.
    * Add recipient with its respective attributes to send request
        CALL METHOD send_request->add_recipient
          EXPORTING
            i_recipient  = recipient
            i_express    = 'X'
            i_copy       = space
            i_blind_copy = space
            i_no_forward = space.
    * Set that you don't need a Return Status E-mail
        CALL METHOD send_request->set_status_attributes
          EXPORTING
            i_requested_status = 'E'
            i_status_mail      = 'E'.
    * set send immediately flag
        send_request->set_send_immediately( 'X' ).
    *Build Document
        document = cl_document_bcs=>create_document(
                            i_type    = 'RAW'
                            i_text    = l_mailtext
                            i_subject = subject ).
    *     add attachment to document
        CALL METHOD document->add_attachment
          EXPORTING
            i_attachment_type    = 'PDF'
            i_attachment_subject = att_subject
            i_att_content_hex    = hexa.
    * Add document to send request
        CALL METHOD send_request->set_document( document ).
    * Send document
        CALL METHOD send_request->send( ).
        COMMIT WORK.
      CATCH cx_send_req_bcs INTO w_except.
      CATCH cx_address_bcs INTO w_except.
      CATCH cx_document_bcs INTO w_except.
    ENDTRY.
    Hope this help you .
    Best regards

  • Adobe form created in LiveCycle does not remember user input

    Adobe form created in LiveCycle does not remember user input when the file has been re-opened after it has been saved.
    Example:
    "Check box" that has been selected and who have registered Action script (may be that it should be disabled), seems to be reset when the file is re-opened, although it apparently is checked.
    Are there settings or script that can prevent this?

    Hi there,
    usually if the values are not kept in form after saving and re-opening the form, it would be because of your code... or because it is not Reader Extended PDF...
    If your code has a function which is to return a value to your field without it to be working based on your Design, it will reset any data..(variables)
    Which means...
    e.g.: You have an array/var/JSONobject which you populate varying on the data entered in the design, as long as you are in the actual form, without closing and re-opening the form, it will keep all values inside that array / variables / JSONobject. But, once the form closed and re-opened, if you have a function that returns a value to your field, whatever the field, from any variable in the script it will return nothing because every variables are reset. To avoid such a thing, you must repopulate all variables that were assigned previously before closing the PDF Form. To do so, I recommend to have a page(hidden) which contains every important values according to that function and you must repopulate those variables according to the values in the keepVar page...
    If you do not have any function that returns a value to a field based on your variables, this is not the solution you are looking for and I am not aware of the reason why it behaves like this... Maybe more information on the behaviour of your form would help locate the issue...
    Hope this help

  • How to create a .exe file for a java application

    Hi, I want to create a .exe file for a java application I am developing so that I can schedule it to run at a particular time using Windows Scheduler on WinNT. Is there any way to accomplish this? Or is there any other way in which a Java application can be scheduled to run at a particular time on Windows everyday?

    Create a .bat file and run that. Just have, in the .bat file:
    java YourClassName Alternatively, you can use javaw YourClassName (without *.bat, just put it into Windows Scheduler like suggested above).
    using javaw won't pop up any window...

  • Importing Adobe form into SAP (sfp)

    Hi Friends
    I am trying to import an Adobe form designed in Live cycle designer outside SAP into SAP form builder (tcode SFP). The form imports fine in 'Layout' section of form builder but when I save it, it doesn't get saved. I mean if I save and try to open form later in SFP tcode the saved form disappears. The form also disappears when I activate the from in SAP builder (tcode SFP).
    Am I doing anything wrong while importing pdf file or form designed outside SAP? Please help.
    Regards
    Sunny

    Hello,
    I am aware its is possible to use "import" in SFP menu. But I don´t know how. I would like to assure you, you can just copy the layout in your source form (it was just some layout created in standalone LCD) and copy it into the opened layout (LCD in SAP) in your SFP transaction. Then the editor think you have just finished drawing that and everything works the way you expect.
    Regards, Otto

  • 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( ).

  • Adobe Form Layout is not loading from webdynpro abap

    Hi Experts,
    I am creating adobe forms using webdynpro.If i double click on the adobe form name from UI element properties,i am getting an error:
    'Error while opening document'
    Also in diagnosis it is written as:
    'An error occured in the desktop application while opening the document' and also the message number is 'SOFFICEINTEGRATION143'.
    Please help me to solve these issue.
    Regards,
    Arun.

    Hi,
    I solved this issue by reinstalling Life cycle designer.
    Regards,
    Arun.
    Edited by: ARUN.NAREIN on Oct 4, 2011 12:47 PM

  • Adobe form data not being retrieved by Web Dynpro application

    Hi,
    I have created an online interactive Adobe form embedded in a Web Dynpro ABAP application.  The Web Dynpro application calls a function module to update data in SAP.  My problem is that the ABAP code that was generated to retrieve the data from the Adobe form and call the function module does not retrieve the data if it has been typed into any of the input fields.  Oddly enough, it does work if the data is entered by using the value helps that have been placed on the form. 
    I would appreciate any suggestions.
    Thanks!
    Russell

    Use messageboxes on various events to find out when your value dissapeears.
    If you´re not sure about the binding, you can always drag/drop from data view tab onto the layout and check the binding which the system generates for you. Just to make sure.
    Regards Otto

  • Adobe Form Layout is not loading from webdynpro

    Hi Experts,
    I am not getting the layout for Adobe forms from webdynpro.If i click the layout tab an error is poping:
    "Error while opening the document"-Message no.SOFFICEINTEGRATION143
    When i checked the diagnosis it is stated as:An error occured in the desktop application while opening a document.
    Please help me to solve this issue.
    Regards,
    Arun.

    Hi Arun,
    Error due to incorrect installation of life cycle designer.
    check the below links for solution.. ( same issue ).
    Error Message "Error while Opening the Document"
    Error - Adobe Live Cycle designer
    Regards
    Srinivas

  • Round trip clearing adobe form field values not binded to webdynpro context

    Hi ,
    I have developed a webdynpro ABAP application with Interactive form. I'm calling a webservice on 'exit event' of the one of the form fields. Once webservice is executed, Im filling a table with 300 rows which is in the form. The table fileds are binded to webservice fields from the dataview of the form , these are not webdynpro context attributes in the data view.
    But when I open any seach help , this table values are disappearing. I need to execute the webservice again to get the values.
    can any one tell why the values in the table are disappearing? since I have binded to the webservice fields the values should remain there.
    Apprecaite your response.
    Regards,
    Ravi

    I looked over that note yesterday, but too quickly - i thought it was an older note explaining which standard programs to run to test out the connection etc...
    but i see now that there is an important point:
    The "pdfSource" attribute of the InteractiveForm UI element should be linked only if the Web Dynpro ABAP application requires the PDF document for further processing (saving data to the database, and so on). However, it is mostly only the data entered in the interactive form that is relevant for the application. If this attribute is linked, the Web Dynpro ABAP framework must request an updated PDF document from the Adobe document services each time data is changed in the form.
    It looks like this is saying that a round trip is possible in WDA.
    EDIT - I wish SAP would fix this certificate issue. My first post every day is doubled because of it.
    Edited by: robert phelan on Jan 7, 2010 3:22 PM
    Edited by: robert phelan on Jan 7, 2010 3:25 PM

  • Saving a adobe form Output to presentation server from webdynpro

    Hi all
    I have a webdynpro aplication, where on clicking a button  I want one adobe form  output to be downloaded
    in pdf format to local server.
    currently while clicking the button its calling the webdynpro application where pdf is integrated and its displayed
    on the browser.
    Instead of the display I want to download to presentation server on clicking of the same button ,
    The layout type of the PDF component is  ZCI Layout and  interface is XML schema based interface.

    With an XML based interface it is going to be much easier to display the form and then download it.  The user could choose the save from the Adobe Plug-In toolbar or you can get the XSTRING content of the PDF from the PDFSource Property of the InteractiveForm UI element.  With the XSTRING you can then, start a download with this content.  However PDFSource doesn't get populated until the InteractiveForm is visible on the screen.
    If you want complete background rendering of the PDF, you would have to call the form interface and pass the data into it with the XML format.  Function Module based form interfaces are really much better suited to background calls because of their nice, flat and ABAP structure based interfaces.

  • How to create a calender view in webdynpro java EP 7.0

    Hi ,
    I want to create a calender view in webdynpro,
    Requirments are
    1. it should be current month view
    2. Below each day i want to show office in-time and out-time in two cloumns(these values will be coming tru RFCs).
    ie
    1
    10am | 4pm
    Is this possible in webdynpro java EP 7.0 ?
    Please help me
    Thanks
    Kumar

    Hi Kumar,
    If you are using EP7.0, there is no calendar UI element in webdynpro development. There is only date navigator UI element. This is demonstrated in the below article.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059344a-1930-2d10-6e8a-dcec5f94993e?quicklink=index&overridelayout=true
    Regards,
    Ganesh N

  • Creating an xdp file from flex/java application

    Hi,
    I have an application in Flex 4  and As 3.When I click a button in flex application I have to generate a file in java with
    extension xdp.When I try this locally(Run as java application) the file is generating  correctly.When i compile the applic
    ation and try it, the file is not writing correctly.Do someone have any idea about creating an xdp file from flex application?
    i am using blazeds to connect java and flex4.When i opens the file in notepad the file is writing correctly.There is only problem in openig an xdp file...
    please help me.

    specifically:
    Runtime.getRuntime().exec("filename.exe")

  • Is it possible to create triggers in sybase from jdbc (java application)?

    We are in the need to create a triggers in the database (sybase) from JDBC (java application)?
    Please send me pointers or articles related to this.
    Thanks in advance,
    Kri

    A trigger is NEVER explicitly called, from any environment.
    It is implicitly called when you invoke the operation that it's a trigger for.
    Whether you're using Java or anything else to invoke that operation makes no difference whatsoever.

Maybe you are looking for

  • Is it possible to change the ALV report layout settings in spool request

    Hi All, Please let me know is it possible to change the ALV layout settings in background as we can change the layout settings in foreground to get correct format when download to excel. Regards, Jyothi CH.

  • How to resolve Certficate Error on port 1159

    When I try to connect to https://{server}:1159, I receive the following certificate error: The site's security certificate is not trusted! You attempted to reach {server}, but the server presented a certificate issued by an entity that is not trusted

  • What is the most up-to-date Version of 5.0 for Windows XP Destop?

    I currently have Firefox 6.0 beta on my Windows XP Desktop. I want to change back to Firefox 5.0 version. How can I be sure to download the correct up-to-date version of 5? The 6.0 beta is too much for my limited expertise and I don't want to deal wi

  • Records and Field Names

    The table structure for the system can be changed through the front-end, so I am using a record structure with the %ROWTYPE functionality to pick up these changes. Data is received from an external source which has to update this data. What I would l

  • LR not reading Canon CR2 and JPEG files

    I have been a long time user of Lightroom, now have LR 3.4 installed. No serious problems so far and I love using it. For a computer set up, I use a one year old Apple desktop with Lion installed. My problem is that this past week, my LR 3.4 will not