Printing  Adobe form using Webdynpro Java

Hi All,
I have a requirement to integrate data coming from web services onto a adobe form on the Portal.
This form needs to be generated in the background and then automatically sent to the local printer attached to the pc.
The idea is that the user need not preview the form and then send it for printing.
Any suggestions on how this custom functionality could be achieved.
Any help will be greatly appreciated.
Regards
Nidhideep Bhandari

"This form needs to be generated in the background and then automatically sent to the local printer attached to the pc.
The idea is that the user need not preview the form and then send it for printing." - not possible. I think what you intend to say is to call up the print option without the preview, correct?
"Send it for printing" is a bit confusing a statement.
I haven't personally tried this but what you can try to do is use JPS (Java Print Service).
Here's the link to the documentation: [JPS Documentation|http://java.sun.com/j2se/1.4.2/pdf/JPS_PDF.pdf]
And this for more info: [http://java.sun.com/javase/technologies/desktop/printing/]
There you can indicate the file stream is a pdf file for printing.
"application/pdf"
Goodluck!
Regards,
Jan

Similar Messages

  • Printing Adobe Form in Webdynpro

    Hi Experts,
    I need one help  from all of you , its quite urgent.
    Actually I am trying to print Adobe form in webdynpro method like below:
       "----- Take the Adobe fprm -------------------"
          lv_form_name = 'ZHR_SAP_FORM'.
          CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
            EXPORTING
              i_name     = lv_form_name
            IMPORTING
              e_funcname = lv_fm_name.
          lfs_output_params-nodialog = 'X'.
          lfs_output_params-getpdf   = 'X'.
          lfs_output_params-device   = 'TR5T'.
          lfs_output_params-connection   = 'ADS'.
          CALL FUNCTION 'FP_JOB_OPEN'
            CHANGING
              ie_outputparams = lfs_output_params
            EXCEPTIONS
              cancel          = 1
              usage_error     = 2
              system_error    = 3
              internal_error  = 4
              OTHERS          = 5.
          IF sy-subrc <> 0.
    * Implement suitable error handling here
          ENDIF.
    *---Form language
          lfs_doc_params-langu = 'E'.
    *---Call Adobe form.
          CALL FUNCTION lv_fm_name  
            EXPORTING
             /1bcdwb/docparams         = lfs_doc_params
              gt_item                  = lit_zhrauth_item
              gs_hrauth                = lwa_zhrauth
           IMPORTING
             /1bcdwb/formoutput       =  lwa_output
           EXCEPTIONS
             usage_error              = 1
             system_error             = 2
             internal_error           = 3
             OTHERS                   = 4
          IF sy-subrc <> 0.
    * Implement suitable error handling here
          ENDIF.
    *---Job Close
          CALL FUNCTION 'FP_JOB_CLOSE'
    * IMPORTING
    *   E_RESULT             =
           EXCEPTIONS
             usage_error          = 1
             system_error         = 2
             internal_error       = 3
             OTHERS               = 4
          IF sy-subrc <> 0.
    * Implement suitable error handling here
          ENDIF.
    Here , the funtion module name is coming correctly.
    But when calling function CALL FUNCTION 'FP_JOB_OPEN' ,
    It is giving sy-subrc = 2 , i.e. usage error (An Exception).
    Similarily , due to this i am getting same exception in 
    CALL FUNCTION  lv_fm_name
    So some one please help me , what should i do ,
    am i supposed to pass some other parameter in  CALL FUNCTION 'FP_JOB_OPEN'
    Hopefully , waiting for responds.
    Thanks & Regards;
    Gaurav Singh

    HI Sikka,
    Thanx for the reply ,
    With your solution CALL FUNCTION 'FP_JOB_OPEN' is done.
    but the same  problem is still happening with
    CALL FUNCTION  lv_fm_name and it is giving sy-subrc = 2.
    i.e.   system_error             =  2
    Thanx !!!

  • Interactive Adobe Forms using WebDynpro ABAP

    Hi,
    I could able to design and execute my interactive adobe form using webdynpro ABAP. Here what i am doing is i am creating context with my structures and table types  and pdfobject of type xstring  and passing the proper inputs in interactive form properties, in template sources i am provinding the interface and form name of my own choice and it is getting created automatically by the system, every thing works fine here and i could able to execute my form from web dynpro application.
    Here my requirement is i have already created structures and table types after that i went to transaction SFP and created an interace and by using that interface i have created form and i have designed the layout. Now what i want to do is i want to integrate this form in my webdynpro appliction and i want to execute it from webdynpro applicaton. When i try to do i am getting short dump, is my approach feasible or not . kindly suggest. If we can achieve this what is the way to achieve.
    Please do send your suggestions.
    Regards,
    Venkat

    Hi
    When u click on button..u will have to get the data from node which is existing on the Intereactive form and pass it to other view via writing logic in button event handler.
    The data can be displayed in other view as result.
    I hope u got it.
    Provide REWARD points..:-)

  • How to integrate adobe forms using webdynpro-abap

    Hi All,
    How to integarte adobe forms with webdynpro -abap(se80).
    Thanks & Regards
    Suman

    Hi suman,
       First you have insert a element interactive form in the view.
    In the properties of the interactive form you have properties called datasource and pdfsource.
    You have to give the data which you want to display in the datasource throught binding.
    These data you have to get it from the context. For pdfsource it should be xstring.
    There is one more property called templatesource, when you give a name and double click. It automatically goes to SFP and you can create the form of your purpose. While creating it will ask for context. That context will be the same which you have declared in the view or component controller.
    Regards,
    Arun.

  • Create offline interactive forms using webdynpro java with XML data source

    Hi Gurus,
    I am having a scenario like below:
    Sales guy request for order list online from portal- Sytem receives the request and creat XML file- from xml file need to create a Offline interactive form-Sales guy fills it offline at customer site- uploads in portal -on submit xml has to be generated with captured data at customer site-Process to  ECC.
    So my questions are:
    How to create the offline interactive form  from XML?
    Once filled offline interactive form uploaded into portal how to create XML again from pdf ?
    Please give some idea on this as this is my first Offline interactive form using XML datasource.
    Thanks
    Ravi
    Edited by: Ravi Sunkara on Jul 27, 2010 5:25 PM

    Hi Otto,
    Sorry for replying lately. First of all  I did not get your suggestions as your are editing the same posting.
    Secondly we will be using WDJ. Actually in between SAP Portal and ECC we are having adobe LCES so we need to create Interactive form using XML only. Once it is filled again the form will be submitted to another application which is running on FLEX, which will process the order.
    if you can give me your personal id i can send you the detailed process
    Thanks
    Ravi

  • Issue with interactive adobe forms in webdynpro JAVA

    hi all,
    I have added new field in interactive adobe form in NWDS and also did required changes to RFC function module which extract the data from database tables. Also, i have mapped the exporting parameter of the function module with newly added field on the interactive adobe form. After all required changes i did manual deployment of .EAR, .XDP and .WDP files in J2EE server (my client doesnt have auto deployment like right click on the project and click on deploy). After doing the manual deploy, i do see new filed on the interactive adobe form, but i do not see any value in that new field. I wanted to know am i missing any other step in deploy or what i am missing.
    FYI.. i also tried restarting the J2EE server, still no use.
    Could any one please help me to resolve this issue.
    Thanks,
    Chandra

    You found it? Use "Open" instead of "show" and it will work like ours.

  • Regarding adobe form using Webdynpro ABAP

    Hi,
    I am new to webdynpro abap.
    Currently I am working on a scenario where..
    I have a function module which generates the pdf for me based on the vbeln i provide in the first view. The only thing I have to do is  to display the generated pdf on explorer.
    As for as the examples i gone through.....I should provide the existing form name or the interface name. I don't have either of them as the function module is generating the pdf for me.
    Could any one help me on this please....
    Thanks,
    Vijaya.

    Hello Vijaya,
    Please check out the following
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
    This is what will work for you with some modifications. Since in your case you are already receiving the PDF from the FM, just set the pdfSource to this value and you should be done.
    Regards,
    Shubham

  • Text Field repeating at Page Break in Interactive Adobe form in Webdynpro Java

    I have requirement in which Text field containing 'Rich Text' data has a huge data coming at runtime. It is displaying correctly without any scrollbars on a single page .Now the problem is when data exceeds to next page ,text field repeats it with first line and also adds scrollbar to text field.
    I have set text field properties like Allow Page Break,Allow multiple lines ,Height Auto fit.
    Also The Text field is in flowed Subform ,Allow page breaks checked.
    Kindly provide solution in quick time..

    Yes I have checked all the subforms Flowed. Text field is working good in Preview Pdf Option of NWDS.
    But when I generate the pdf on server, when TextField flows to next page, on next page it repeats from first line.

  • Problem with native offline Interactive Forms in webdynpro java.

    I have a java webdynpro project build like the one in this tutorial:
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to-guides-rig-official/netweaver-2004/web-application-server/how%20to%20create%20online%20and%20offline%20forms%20in%20web%20dynpro%20(NW2004).pdf
    The "Online" part of the tutorial is working but in the offline scenario I get no data in WebDynpro from the Interactive form (all of Context Attributes have a value "null") after the use of "Submit to SAP" button. this is the button from the Web Dynpro Native Library in the LC Designer.
    the versioning information:
    Netweaver 7.0 WAS on SP13
    ADS SP13
    Lifecycle designer 7.1
    We updated the ZCI template according to the SAP notes.
    Does anyone know this problem and how to fix it ?

    Hi niru,
    To work on adobe forms in webdynpro java you need to install ALCD(Adobe Life Cycle Designer) along with NWDS(NetWeaver Developer Studio).
    To know about adobe forms in webdynpro check the following link
    http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/solution_in_detail_interactive_forms.pdf
    https://www.sdn.sap.com/irj/scn/elearn?rid=/webcontent/uuid/f5718380-0c01-0010-aebf-8786fb890302 [original link is broken]
    For example check the follwoing link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
    /docs/DOC-8661#section20 [original link is broken]
    Regards,
    Sam Charles J.

  • Drop Downs in adobe forms using Web dynpro ABAP

    Hi all,
    Im new to this adobe forms using webdynpro abap.
    In my requirement i have two drop downs on the form.
    by selecting value in one drop down i have to fill corresponding values in the other drop down.
    Using only WDA i know how to do this but with adobe i dnt know how and where i have
    to catch the drop down value and write my code. please let me know how i can achieve this.
    one more thing whatever action or events we are performing on the form where we have to place our code for this?
    Thanks,
    santosh

    hope this helps -
    [Thread: Populating one Drop-Down list from the selection of another Drop-down list |Populating one Drop-Down list from the selection of another Drop-down list;

  • ZCI for Adobe Interactive Forms in WebDynpro Java

    Hi experts,
    Can i use Zero Client Installation (ZCI) forms in WebDynpro Java.
    I am not using ABAP at all & i want to avoid ACF installation on client side.
    I am using :
    SAP NWDS 2004s SP12
    Adobe lifecycle Designer 7.1
    Message was edited by:
            Virag Shinde

    Hello Virag Shinde,
    ACF is supported with all the SPs across the Netweaver 7.0 stack and we will continue to support that except the fact that no further development will happen in that area. ZCI is the future of Interactive Forms solution by SAP.
    Following two notes would be helpful to get started with ZCI:
    <b>1042394: Updating Interactive Form template with ZCI capability</b>
    <b>1055911: Creating ZCI based interactive Forms in Web Dynpro for Java</b>
    Best Regards,
    Krish

  • How to send adobe data to R/3 using Webdynpro Java

    Hi All,
    I have a requirement in adobe form is i have one textfield on the Adobe form and user will enter input in that textfield.
    Now that input should be sent to R/3 using RFC.
    But i am unable to get the data from adobe form to Webdynpro Context.
    I am having model nodes in the Context. i tried mapping to them, but i am not getting data.
    I also tried taking a Value Node and bind that to Textfield in adobe, but in that also i am not getting data.
    I tried Interactive form example for Textfield and submit, but its showing only on that View only.
    My Major Concern is to map the adobe data to Context and then Send to R/3.
    Pls help me out.....
    Regards,
    Dhruv

    Hi Dhruv,
    Why do you want to retrieve the adobe data to context ?
    May be data connection can help you pass the data from adobe to R/3.
    Create a webservice for the RFC function module and mention the link in the data connection in adobe. It updates R/3.
    Priya Kota.

  • Using Adobe Forms in Webdynpro views

    Hi,
    I'm learning Abap-webdynpro, in this i've worked on some sample applications(tutorials) given in the help library. I need to learn using Adobe forms in the views of the webdynpro components. I tried with help library, but not so clear about how to use forms in views,
    So can u please send me some links or materials which describe how to use adobe forms  in webdynpro applications..
    Thanks in Advance,
    Sachi

    Hi ,
      I hope this link will be usefull
    <u>https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/f057d803-3c53-2910-db92-a6a2f1cc7334 [original link is broken]</u>
    Here are some very useful links on Adobe Software for Forms.
    http://www.adobe.com/enterprise/partners/pdfs/sap_datasheet.pdf
    http://www.adobe.com/enterprise/partners/sap.html
    http://www.sap.info/public/INT/int/printout/article/Category-28943c61b1e60d84b-int/0/articleContainer-18393415bdc39551ae/
    http://sdn.sap.com/irj/sdn/adobeforms
    Thanks and Rgds,
    Kamal<a href="http://">http://</a>

  • Adobe prefilled form using standalone java appl

    Hi,
    I have designed adobe form. The requirement is : the end user will open this adobe form offline using Java mobile application, but needs to be prefilled with some field values.
    And there is no connectivity to SAP system/ server.
    My question : Is there any way that we can prefill the offline adobe form when this java application is calling the adobe form.
    Do we need ADS/ any kind of connectivity to any server?
    Any info this, this would help me .
    Thanks,
    Saujanya

    Hi,
    The requirement is : the enduser will not have connectivity to SAP Server. But he uses his SAP mobile device, opens the locally stored adobe form, fills up the details and sends it to SAP.
    I just want to know if ADS is required in this requirement, as i think this nt required,
    But want to confirm.
    Any pointers on this would really help me.
    Thanks,
    Saujanya

  • Offline adobe forms using webservices-how to print table data

    HI,
    i have created offline adobe form using webservices which call rfc to pull the data ...to get inspection lot details ...
    iam getting header data....but iam not able to get multiple line items of the table data ..here in scenario there are 4 line items but only 1 line item is getting displayed in the form...
    is there any need to handle seperately to display  tables data in offline adobe forms if we call from webservices
    Tousif
    Moderator message: please have a look in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Jan 18, 2011 3:08 PM
    << Moderator message - New question asked, so this is locked >>
    Edited by: Rob Burbank on Jan 18, 2011 10:19 AM

    This is oofline adobe form which is created throgh webservices
    Edited by: tousif_ig on Jan 18, 2011 3:19 PM

Maybe you are looking for

  • Problem in mapping remoteobject on server side

    Hello all I am trying to use remoteobjects in Flex and PHP via Zend_AMF.  I am having problem in mapping the data object in flex with the one in PHP. Here's my code.... private function getAuthors(event:Event):void      serviceRO = new RemoteObject()

  • How do i deault logon to GMAIl when opening Firefox on my laptop

    Like to set up GMAIL as the default logon site on Firefox.

  • URGENT : Updating Saudi Payment Output File

    Dear Fellow Boarders, We had an urgent requirement to add a new line at the end of "Saudi Payment Output File" I had created the formula for same and attached at the "Organizational Payment Method" Level, via "Further Information" in "Other" Tab. How

  • Mozilla firefox does not display Notepad++ web programming

    mozilla firefox does not display notepad++ programming of web page and does not connect css files. Currntly programs using CSS + html5.

  • Disk commands

    I'm looking for some command line commands to do the following. 1. See what disks are attached to the system. 2. How to navigate to an external disk. Do you need to mount it first and if so, how? 3. How to tell how a disk has been formatted as well a