PDF form generation on Webdynpro Application

Hi
I have an ABAP Webdynpro application with 8 tabs. As per the functionality, all the data entered by the user on these 8 screens has to be displayed in a PDF form as well as in an excel sheet in a defined format. Also  the Adobe Lifecycle Designer is not available. How can this requirement be implemented.
One way is to use the smart form Object and integrate it with Webdynpro.
Please suggest how can such a functionlity be achieved.
Smriti Kapur

Hi Smriti,
Are you using an ALV grid in your application? if so, there should be a 'Print version' button that, when ADS is configured correctly, should produce the PDF version of the Document.
Read these two blog entries:
/people/dezso.pap/blog/2008/01/25/ads-ssl-configuration-journal-i-abap--java-640--70x
/people/george.quaye/blog/2009/05/27/an-interactive-pdf-to-guide-your-configuration-of-the-ads
Thanks,
Umair

Similar Messages

  • Print functionality using PDF form in a webdynpro application

    Hello! All
    Currently, we have a webdynpro application and we need to provide the print feature to print the content of the iview display on IE browser. We try the File-> print feature provide by Microsoft through IE but this doesn't work. We are looking for any other option like print to pdf form. We don't know if it is possible. Is there any tutorial, help or anything that can help us to print to pdf form. Please share any other suggestion, comment and it will be much appreciated. Thank you very much.

    Hi,
    The content (which is a pdf content) can be exported as a PDF from a WD Application. For this you can use File Download control whose source is in the form of bytes (which is PDF content).
    Do you have the PDF content already generated?
    If so it is very easy to generate PDF from WD.
    If you need further help, kindly let us know.
    Thanks and regards
    RK

  • Error occured while showing adobe form in abap webdynpro application

    Dear SAP-Masters ,
    This is the mail regarding the error occured while showing adobe form in abap webdynpro application .
    When i run the adobe form seperately it works fine but with abap web dynpro , i'll get following error .
    Pls tell me how to resolve this problem .
    The following error text was processed in the system D35 : WebDynpro Exception:
    The error occurred on the application server DV35_D35_00 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: UPDATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
    Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP

    Hi Arjun ,
                Thanx for ur reply ,
                i got following results in ST22 dump analysis :
    '  An exception occurred that was not caught ' .
            and
    Source Code Extract
    Line
    SourceCde
    79
    x_xml = get_wd_context_as_xml( data_source = data_source ).
    80
    m_pdf_object->set_data( formdata = x_xml ).
    81
    catch cx_fp_exception into lr_fpexc.
    82
    raise exception type cx_wd_general
    83
    exporting
    84
    previous = lr_fpexc.
    85
    endtry.
    86
    if fillable = abap_true.
    87
           if m_version is initial.
    88
             m_version = m_pdf_object->get_version_info( ).
    89
           endif.
    90
           if version < ''.
    91
             set_usage_rights( m_pdf_object ).
    92
           endif.
    93
    endif.
    94
    endif.
    95
    endif.
    96
    97
    only call the ads if requested
    98
    if execute_ads_call = abap_true.
    99
    try.
    100
          set document
    101
    m_pdf_object->set_document( pdfdata = pdf ).
    102
    103
          execute, call ADS
    104
    m_pdf_object->execute( ).
    105
    106
          get result
    107
    m_pdf_object->get_document( importing pdfdata = pdf ).
    108
    catch cx_fp_exception into lr_fpexc.
    >>>>>
    raise exception type cx_wd_general
    110
    exporting
    111
    previous = lr_fpexc.
    112
    endtry.
    113
    endif.
    114
    115
    endmethod. 
    and
    Error analysis
    An exception occurred which is explained in detail below.
    The exception, which is assigned to class 'CX_WD_GENERAL', was not caught and
    therefore caused a runtime error.
    The reason for the exception is:
    WebDynpro Exception:
    The occurrence of the exception is closely related to the occurrence of
    a previous exception "CX_FP_RUNTIME_SYSTEM", which was raised in the program
    "CL_FP_PDF_OBJECT==============CP",
    specifically in line 255 of the (include) program
    "CL_FP_PDF_OBJECT==============CM02Y".
    The cause of the exception was:
    ADS: com.adobe.ProcessingException: PDF is not interactive.  Data can only be
    |    imported into interactive forms.(201501).

  • Passing value from Adobe Interactive form, to the Webdynpro Application

    Hi,
    I have followed all the tutorials on interactive forms in WD for Java, & am able to successfuly display my context data in an interactive form.
    However, i need help with the following:
    1. Online scenario:
    User has filled details in an interactive form & clicks on the submit button.
    The Data from the form is NOT getting passed back to the WebDynpro application.
    2. Offline Scenario:
    User has filledup a pdf file(form), & has uploaded the form to the webdynpro application, using the file-upload UI element.
    How do i read the data that the user has entered in that pdf file?
    Any help with regard to these two queries, will be appreciated.
    Thanks,
    Hanoz

    1) Online Scenario
    check if the context mapping between UI elements and Context is properly done
    check if the cardinality of the Context is alright.
    2) Offline Scenario
    you will have two views.
    one upload view
    and one interactive form view
    in the upload view use the File Upload UI element.
    in the Interactive Form View.... use the same view which you used to create the offline form, thus the interactive form UI element will already know the structure of data and the context mapping in the pdf file when you upload it.
    Add the following line of code to the
    method wdDoInit.
    wdContext.getNodeInfo().getAttribute
    ("pdfObject").getModifiableSimpleTyp
    e();
    Add the following line of code right
    before
    wdThis.wdFirePlugOutToDisplay()
    in the method onActionShowForm().
    wdThis.wdGetTravelRequestCompControl
    ler().wdGetContext().currentContextE
    lement().setPdfObject(wdContext.curr
    entContextElement().getPdfObject());
    in the interactive form view, change the property of the interactive form.... MODE to usePdf.
    regards,
    -Ag.

  • PDF Forms embedded in Webdynpro Java - Can eCATT recognize???

    Hi All,
               Will eCATT be able to identify the PDF forms embedded in Webdynpro Java applications.....
    Thanks in Advance
    Puru

    I think it will not. I am almost sure it will not. Any new complex screens are a challenge to eCATT. Flash, Flex and sometimes even trees.
    Says,
    Justin

  • Embedding an existing Adobe Form into a Webdynpro Application

    Hi Everyone,
    I have an existing adobe form created thro transaction SFP and its working well.
    I need to launch the form with a Webdynpro application now. I was able to embed the adobe form into the Webdynpro View. The View's context is supposed to pick up the context of the adobe form automatically.
    However I am getting the following error - Either your Interactive form UI element is not bound to a context or a corresponding context does not exist.
    I am not sure how to proceed coz the I executed the Adobe from in SFP and its working perfectly and obviously its bound to a context/ interface.
    Any Ideas?
    thanks for your suggestions in advance !
    Liz

    Pradeep,
    You are right. This time I could bind the context from my interface (even though it was ABAP based).
    I have one quick one for you - you mentioned earlier that when we embed an existing form into Web. View, we cannot have an Interactive form even when we check the 'enabled' property. Can you throw more light onto this pls?
    The runtime error that i am encountering now says :
    Adobe Processing Exception: PDF is not interactive. Data can be only imported into Interactive forms.
    the source text of error is:
    get result
    m_pdf_object->get_document ( importing pdfdata = pdf ).
    catch cx_fp_exception into lr_fpexc.
    raise exception type cx_wd_general
    exporting
    previous = lr_fpexc
    and this exception is not caught ! I am still lost
    thanks again for your help!
    Liz

  • TABLE DATA in PDF FORM  Through ABAP WEBDYNPRO

    Hi Friends,
    I have to Populate  SAP TABLE like MARA,VBRK table into PDF form throught ABAP Webdynpro.
    Can you send STEP by STEP Example Doc.
    Thanks In Advance.
    Gautam.

    Hi,
    To display the Table in the Adobe Form you must create a WebDynpro Context.
    In WebDynpro Context, in the main node create another node like A1 with cardinality 0..n and in this node create attributes FIELD1 and FIELD2 and so on.
    Now goto method and in that method using code wizard read the node A1.
    And use the below code snippet sample in your program, i.e. code this under respective method of the webdynpro.
    *Declare the TYPES
    TYPES : BEGIN OF TY_TABLE,
    FIELD1 TYPE SOMETYPE,
    FIELD2 TYPE SOMETYPE,
    END OF TY_TABLE.
    *Define Internal Table and work area.
    DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0.
    SELECT FIELD1 FIELD2 FROM TABLENAME INTO TABLE IT_TABLE.
    lr_node_info->bind_table( IT_TABLE ).
    And now goto Layout and give the TemplateSource and after that it asks for the interface name fill on that and select the relevant context. Now the LiveCycle Designer opens. There goto DataView pallette, there you can see the context of the webdynpro, now you simply drag and drop that table, a table is being created in the Layout Designer.
    Regards
    Pradeep Goli

  • Display Smartform Pdf output in ABAP Webdynpro application

    Hello,
    there is a solution for displaying Smartform output in Java Webdynpro application in this forum. Since i want to start an project in ABAP Webdynpro i need a solution for this technology since i don't want to recreate all the paperwork again using Adobe. Is there any solution available?
    Thanks
    Udo Ahle

    Hello,
    this is the solution which i was able to implement using the hints given by Heidi and Thomas. Thank you for the support. With this solution it is possible to reuse oldstyle sapscripts and smartforms in todays environment.  Here is the sample code which solves the problem:
    In WDA you define for example a pushbutton to start the display of the PDF.
    In the onaction method you implement:
    method ONACTIONSHOW_PDF .
      data LX_pdf type xstring.
    * get PDF from existing sapscript or smatform
      call function 'Y_PDF_GET' destination '46c'
        IMPORTING
          ex_PDF = LX_PDF.
    * append the pdf to the response
      cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = 'Hello.PDF'
        i_content   = lx_pdf
        i_mime_type = 'application/pdf'
        i_in_new_window = 'X'
        i_inplace       = 'X' ).
    endmethod.
    The function 'Y_PDF_GET' is implemented as follows:
    FUNCTION Y_PDF_GET .
    *"*"Local interface:
    *"  EXPORTING
    *"     VALUE(EX_PDF) TYPE  XSTRING
    *"  TABLES
    *"      ET_OTF STRUCTURE  ITCOO OPTIONAL
      data: lf_filesize type i,
            lt_otf type table of ITCOO,
            lt_lines type table of tline,
            tline type tline.
    * start sapscript or smatforms and return
      perform make_otf.
      CALL FUNCTION 'READ_OTF_FROM_MEMORY'
        TABLES
          OTF                = lt_otf
       EXCEPTIONS
         MEMORY_EMPTY       = 1
         OTHERS             = 2
      et_otf[] = lt_otf.
      CALL FUNCTION 'CONVERT_OTF'
       EXPORTING
         FORMAT                      = 'PDF'
    *   MAX_LINEWIDTH               = 132
    *   ARCHIVE_INDEX               = ' '
       IMPORTING
         BIN_FILESIZE                = lf_filesize
        TABLES
          OTF                         = lt_otf
          LINES                       = lt_lines
       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.
    * convert tline to xstring as needed in
    * in web dynpro            
      field-symbols <X>.
      data: st(268) type c.
      data l1 type i.
      data len type i.
      data maxline type i value 134.
      l1 = 0.
      loop AT lt_lines INTO tline.
        clear st.
        st+l1(maxline) = tline.
        len = maxline + l1.
        l1 = maxline - strlen( tline ).
        ASSIGN st TO <x> TYPE 'X'.
        CONCATENATE ex_pdf <x>(len) INTO ex_pdf.
      endloop.
    ENDFUNCTION.
    The make_otf for sapscript is the following:
    * the next attribute enables the otf output.
    * no other output will be generated
    <b>options-TDGETOTF = 'X'</b>
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
    *         APPLICATION        = 'TX'
    *         ARCHIVE_INDEX      = ARCHIVE_INDEX
             ARCHIVE_PARAMS     = ARCHIVE_PARAMS
                DEVICE             = DEVICE
                DIALOG             = ' '
                FORM               = FORM
                LANGUAGE           = language
               OPTIONS            = OPTIONS
    *     IMPORTING
    *          LANGUAGE           =
    *          NEW_ARCHIVE_PARAMS =
    *          RESULT             =
           EXCEPTIONS
                CANCELED           = 1
                DEVICE             = 2
                FORM               = 3
                OPTIONS            = 4
                UNCLOSED           = 5
                OTHERS             = 6.
    *... make some write forms
      data lT_OTF     type table of     ITCOO.
    * get the otf data
      CALL FUNCTION 'CLOSE_FORM'
    *     IMPORTING
    *          RESULT   = result
           TABLES
               OTFDATA  = lt_otf
           EXCEPTIONS
                UNOPENED = 1
                OTHERS   = 2.
    * put otf into memory for later usage
      if not lt_otf is initial.
        CALL FUNCTION 'SAVE_OTF_TO_MEMORY'
    * EXPORTING
    *   MEMORY_KEY       = 'DEF_OTF_MEMORY_KEY'
          TABLES
            OTF              = lt_otf.
      endif.
    For Smartforms technology it is possible to implement the same concept.

  • Deploying pdf forms in an ES2 application using java

    Hi,
    Can we deploy pdfs,  xdps , processes etc in an application on livecycle ES2 using java ? I know we can deploy in resources using java but can we do the same in an ES2 application ? Somebody please provide some pointers .
    Thanks

    Here you go:
    http://help.adobe.com/en_US/livecycle/9.0/programLC/help/000315.html#1548555
    This quickstart shows you how to write a resource using the Java API. We use the term resource because you can put any file in an application.

  • Problems with PDF report generation on WEB application

    Hi friends.
    I have the following problem.
    I heve many reports running on a client/server system. But we decide to move one by one, the menu options of the system to the WEB, using iAS. Most of the reports works just fine, but some of them works wrong.
    But I am not talking about the data or something like that, I am talking about the layout format. All of them out a grey rectangle in all the pages of the PDF reports. The report doesn't have any color inside, but when we move the file, to the UNIX server and test it, it is generated not in a white normal report but grey and white colors.
    anyone have an idea what is it happend?
    thank you folks....
    abdel.

    hi shivanjali..
    the problem may be due to your local system settings..
    try this..
    open internet explorer.-> click on tools menu-> click on internet options-> select connections tab-> press lan settings-> uncheck the proxy address if you have any and press ok....
    now try your web report.. hope it will help your concern..

  • Print button disabled on webdynpro application

    Hi
    I have a requirement to have 'PRINT' button on PDF form generated from webdynpro application.[POWL],whereas my 'SAVE' button enabled.
    Please suggest me where I need to check for this settings?
    I have checked in POWL_UI_COMP, not found any related stuff.
    Please help me.
    Thanks

    Follow the first 19 steps in below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL+CONFIGURATIONS
    Regards
    Srinivas

  • Directly print PDF form in WebDynpro ABAP

    Hello folks,
    one little question.
    Is it possible to directly print an PDF form in an WebDynpro Abap Application?
    Thanks,
    Alex

    I don´t understand your question. You don´t provide much information.
    You have 2 options:
    1) write a printing program (like non-WDA form etc.) and run it in background
    2) tell user to use the Reader embedded in WDA window to print his/her form
    Otto

  • How to call pdf forms developed in ABAP from WD Java application?

    Hi
    I have a web dynpro ABAP application that that is responsible for generating PDF forms for all other applications (WD ABAP and WD Java).
    How can I call the pdf forms generated by the WD ABAP application from WD Java application in a separate window?
    These forms are to be called on click of a "Print" button. Also, these forms are non interactive.
    Kindly let me know if you need any other information.
    Regards
    Vineet Vikram
    Edited by: vineet vikram on Jun 24, 2009 7:28 AM

    in addtion to Nikhil's response. you can write following code on action of print button:
        IWDWindow window = wdComponentAPI.
            getWindowManager().createExternalWindow(
                  "<ABAP Application URL>",
                  "<Title for window>",
                  false);
       window.open();
    to Close the application, you can use the window close or u can fire an event to close current window.
    Abhinav

  • Fill out a pdf form from ADF application

    Hi
    I need to fill out a PDF form, from my ADF application and i want to know if exist a component or libarary to do this.
    i hope you can help me
    Regards.

    Hi,
    two options are:
    Oracle BI Publisher (by far best choice but needs to be licenced)
    http://www.oracle.com/technology/pub/articles/vohra-jdev-xmlpub.html
    Jasper Reports, Free but not as functional or easy to use as BIP
    http://jasperforge.org/projects/jasperreports
    Both products have Java API's which you can integrate with your application.
    Brenden

  • Fillable PDF form in windows application

    Hi,
    I need to open a fillable PDF form from my windows application which I am developing in C# 2.0
    I added acropdf.dll from
    "C:\Program Files\Common Files\Adobe\Acrobat\ActiveX\acropdf.dll"
    but this is a reader and I want a fillable form to be opened.
    Can some one help as to how to go about it?
    thanks in advance,
    Kusuma

    Leonard,
    Thanks for your prompt reply.
    I am able to open a fillable form, but I have to disable the some of the menu options like save.
    I am not sure as to how to do this.
    I am using the Adobe activeX control, acropdf.dll.
    thank you,
    kusuma

Maybe you are looking for

  • Error while deploying a JSR 168 portlet developed in JDeveloper 10.1.3.2

    When deploying a JSR 168 portlet created using JDeveloper 10.1.3.2 (Web Center Suite edition), I get the error : "Shared library "oracle.wsrp" could not be found." Error Log: ---- Deployment started. ---- Sep 20, 2007 9:31:42 AM Target platform is Or

  • Can I use Camera Raw 8.1 to process files and then open them in PSE 12 ot finsih the edit??

    I really like working with RAW files in Camera Raw for initial processing, but I also like the simplicity of PSE to finish the edit.  Before I buy PSE 12, I wanted to make sure that I could get Camera Raw 8.1 also so that I can use them together.  Is

  • My itunes won't open on the desktop anymore

    Hi I have a problem!!! I was loading some songs onto itunes from the itunes store and had paid for each song using a giftcard. All was going well until I came to the last song I had chosen to load and for some reason it was stuck and never finished (

  • HT3765 - Cascading Softwareupdate Server not working!?

    Following HT3765 (OS X Server: How to cascade Software Update Servers from a Central Software Update Server) I am not able to get this to work. The secondary Software Update Server are still contacting Apple's Infrastructure. Did anyone get this to w

  • Re install Shuffle Software

    Will I have any problems re installing my shuffle software onto new computer that will have windows xp operating system? I had windows media edition and shuffle would not work on that. So then I installed shuffle software and downloaded songs onto ol