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

Similar Messages

  • How to disable Save & Print functionality in PDF form?

    Hi,
    This is the requrement, client need to disable Save & Print functionality in PDF form. (They not allow employee save & print the hrforms payslip)
    May I know how to do it. Thank you.
    What is the parameter value in structure SFPOUTPUTPARAMS  that I need to set in order to  disable Save & Print functionality ?
    call function 'FP_JOB_OPEN'
        changing
          ie_outputparams = SFPOUTPUTPARAMS
        exceptions
          others          = 1.

    Hi Nayan,
    I'm the person who did the WD as well, using IFrame to contain the PDF binary. WD site didn't contro the binary source.
    I pre-define the 'FP_JOB_OPEN' before calling the PDF generation.
    Optional: Set output parameters
      gs_outputparams-nodialog  = ''.
      gs_outputparams-preview   = ''.
      gs_outputparams-getpdf    = 'X'.
      gs_outputparams-nopreview = 'X'.
      gs_outputparams-noprint   = 'X'.
      gs_outputparams-noarchive = 'X'.
      gs_outputparams-nopributt = 'X'.
      gs_outputparams-arcmode = '1'.
      gs_outputparams-noarchive = 'X'.
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = gs_outputparams
        EXCEPTIONS
          OTHERS          = 1.
    Regards,
    Eric

  • 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

  • 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

  • Why doesn't Preview print out my pdf forms as edited anymore?

    A week ago, I was able to print out a pdf form  the way it was editted on the screen using Preview. As of Wednesday, it no longer prints what I have editted in Preview.  It prints the naked, empty form only. No edits.  I have Mountain Lion and am using an hp deskjet 6122.

    Assuming that you're talking about printing from Adobe Reader for iPad or iPhone, you either (1) need an AirPrint-enabled printer, or (2) (for the iPad only), purchase a third party app like Printer Pro from Readdle.
    Here's a list of AirPrint-enabled printers:
    A List of Printers with AirPrint (updated March 2013)
    If you're talking about printing from Reader on your laptop or desktop computer, you're in the wrong forum.

  • 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

  • Can not print turbo tax pdf form prints but no data

    can not print turbo tax pdf form prints but no data

    Thanks much for your help
    Works great
    Ward Johnson

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

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

  • 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

  • WF_EXTSRV: use PDF Form in Change mode in Portal:

    Hai,
    I'am trying to use transaction WF_EXTSRV to generate a task which can be used within the UWL from the portal. The main purpose of this task is to show an exsisting PDF form in change mode. I allready found some nice information from SDN, but not enough to make it all work. I still have still these questions:
    1) How must I setup the required fields within transaction WF_EXTSRV when I want to generate for example this url:
    http://abc.abc.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?SCENARIO=SPEG&MODE=CHANGE&NOTIF_NO=000600000003
    2) How must a then setup transaction SWFVISU? Which apllication and package name.
    I hope some can help me.
    Greetings,
    Remco

    Hi,
    When do you get this error ... "No scenario specified". ???
    I mean did you try creating an iview for IsrForm Java WD application sending the Scenario name as parameter?
    Betn us,
    Why dont you try the parameter IFV='P' for IsrFormApprove Java WD application itself. Get to know more about this parameter in these threads...
    Re: Buttons for ISR_APPROVE & ISR_PROCESS appearing in Workflow
    https://forums.sdn.sap.com/click.jspa?searchID=165819&messageID=1268222
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Web Dynpro as Callable object in GP using PDF Forms

    Hi All,
    I somehow want to integrate a user filling out a pdf form within a Guided Procedure. So far I have created a local web dynpro DC and I want to make it a Web Dynpro Callable Object (GP Interface). The problem is, I want the user to be able to see the PDF form when filling out the form. For example, if they had a role in the portal where they can invoke the Web Dynpro application with the pdf form, then when they click submit on the pdf they invoke the guided procedure...is this possible? This is so, I can use the web dynpro to do some data validation and call some bapis to get info, then submit this all to the GP. Is this achievable? I know how to do most things, I just want to know things like when is the "execute" and "getDescription" methods called? I want my execute( com.sap.caf.eu.gp.co.api.IGPExecutionContext executionContext ) method to call a bapi also. Is that possible? How do I automate a GP process when I click submit on the pdf form?
    Thanks in advanced
    TM

    Hi,
    You can integrate a PDF control in a Web Dynpro view. Refer the following links for that:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/dc/f1783fe3263042e10000000a114084/frameset.htm">Example of the Use of an Interactive PDF Form (SAP Library - Web Dynpro for Java)</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/60/6fc10c6748479392101e09c9e8d33a/frameset.htm">Interactive Forms in Web Dynpro for Java</a>
    Also you can create Web Dynpro Java callable object in GP by implementing the IGPWebDynproCO interface. Refer the following links for that:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59">Implementing a Web Dynpro Callable Object which Implements the GP Interface</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814">Implementing a Web Dynpro Callable Object</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/fd/afb4429027da11e10000000a155106/frameset.htm">Implementing a Web Dynpro Component</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/de/8976417f2d5558e10000000a1550b0/frameset.htm">Implementing and Exposing a Web Dynpro as a Callable Object</a>
    You can start a GP process using the public API:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm">Starting and Terminating Processes Using the GP API (SAP Library - Creating Composite Applications)</a><a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1">Creating Interactive Forms in Web Dynpro for Java</a>
    Also you can start a GP process using Web Service:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm">Starting a Process Using Web Services (SAP Library - Creating Composite Applications)</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/93/27dc108cfc407fbf6c726151840001/frameset.htm">Starting and Terminating Processes Within a Composite</a>
    Refering the above links you'll get a fairly good idea how to integrate Adobe forms in WDP and how to start GP process programitically. My suggestion for your requirement would be if always you need to start the process after the user submits the Adobe form, then consider having the Adobe form as the first step for the process. In that case you don't need to start the process programitically. Whenever the user starts filling up the Adobe form the GP process will start. You can refer <a href="/people/dipankar.saha3/blog/2007/03/02/how-to-present-your-gp-processes-to-the-end-user">this blog</a> on how to start a GP process as an iview link in portal.
    Otherwise if based on certain conditions you need to start the process then you can either use the Java API or the web service to start the process from Web Dynpro. You should have the Adobe form embedded in Web Dynpro and on submit event you can check the conditions and start the process if required.
    Thanks,
    Dipankar

  • How to write printing function using JSP?

    dear all,
    i want to add a printing function in my project but i do not know how to do it? could anyone teach me how to do it?
    thanks
    eric

    salut eric,
    you can do it this way :
    1 - create a html link in your code to this javascript
    function : (I am using Struts, but you can write it in
    pure html
    <html:link href="#bodyStart"
    onclick="openWindowForPrinting()"
    titleKey="msg.status.print">      <bean:message
    key='app.print' />
    <script language="JavaScript">
    <!--
    window.open = SymRealWinOpen;
    //-->
    </script>
    </html:link>
    >
    >
    2 - here is the javascript function : it open a window
    with the "print.jsp" page.
    function openWindowForPrinting(){
    window.open('/your_project/pages/common/print.jsp','',
    'left=150, top=150 , status=no, directories=no,
    toolbar=no, menubar=yes, location=no, scrollbars=yes,
    resizable=yes, dependant=yes');
    3 : here is the print.jsp page : You have only to
    create a session variable called
    "currentBodyRelativeLocation", which content the
    relative URL to the page you want to print (for
    example, the boby of the current page).
    <%@ taglib uri='/WEB-INF/tlds/perso.tld'
    prefix='perso' %>
    <html>
    <head>
    <perso:csslink page='${cssRelativeLocation}' />
    </head>
    <body onload="var SymTmpWinOpen = window.open; window.open = SymWinOpen; printPage();; window.open = SymTmpWinOpen;">
    <body>
    <jsp:include page="${currentBodyRelativeLocation}"/>
    </body>
    <script language="JavaScript">
    <!--
    window.open = SymRealWinOpen;
    //-->
    </script>
    </html>
    <script language='javascript'>
    function printPage(){
    window.print();
    window.close();
    </script>
    hai,
    i'm not very understand how is your code work. when i write html code, do i need to mind about this code: "msg.status.print" ? what is this code mean?
    i have too much question on this thing. would you mind to be further explain to me? or is it any reference for me to refer? i'm really new to write printing function on JSP.
    i never write this function before. i'm feel so lost.....:(
    thanks again
    eric

  • Re : Print program to PDF form

    Hello Gurus,
       Can any one help me out in getting the print program to related form.
       Is there any table which stores the form and related program.
    Thanks,
    Feroz.

    Hi
    This is related to SAP Scripts/Smartforms only
    You can check the Table <b>TNAPR</b> table
    most of the SD and MM modules forms/programs are stored here.
    also from <b>NACE</b> tcode you will know
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Issue with printing from web pdf forms

    Hello, This printer prints locally in an okay amount of time but If we go to a web site that we usually go to and pull up a pdf form, it takes up 3 minutes to print the pdf form.  Any suggestions to fix this issue?
    {Personal Information Removed}

    hi there,
    could you provide the community with a little more information to help narrow troubleshooting? Things like your printer model and your operating system help out a lot.
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

Maybe you are looking for

  • Having trouble setting up my personal domain.

    When going to my site it says not found: resource does not exist. The site works fine on web.me.com/rdenis though. Go daddy says i have done everything correctly with them so it must be a problem with MobileMe. Any ideas to what it could be? The only

  • What is the best external hard drive i can get for my macbook pro snowleopard?

    my hard drive is full and i need an external drive we dont have a mac store here so i went to radio shack and picked up a toshiba  canvio 3.0 plus all fine and good except the fellow at the store failed to notice i am a 60 year old grandmother and pr

  • My sound Is increasing automatically!!!

    I Formatted my notebook ( dv7-1014tx ), Installed Windows 7, Downloaded ALL drivers And updated them ALL! So, my notebook is like new. BUT - My sound keeps increasing and decreasing. Can It be a Driver problem? If it is, is a problem with the sound d

  • Only seeing one window in time machine

    When I enter time machine I only get the first window "now". Shouldn't I see something in the windows behind that? I've only had it running a few hours but I thought I would get to see the hourly back there or something?

  • HELP PLEASE WITH FILL IN FORM

    I have a bridal shower invitation that I bought at the store and I just need to fill in the form with the names, date, time and etc.  and then put the invitations in my printer and print out the filled in blanks with the correct information.  I wish