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 !!!

Similar Messages

  • 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

  • Communication problem between Adobe Form and WebDynpro

    Hi all,
    I have the following problem and am thankful for any help I can get from you in order to solve it:
    I created an Adobe Form in WebDynpro. In both the WebDynpro as well as in the Adobe Form, I created a Submit Button (which I binded to the same method) as well as a text field (which I binded to the same context attribute). When I do changes in WebDynpro, everything works fine and the changes are displayed in the Adobe Form as well.
    But when I do changes in the Adobe Form, these changes are not submitted. Also the Submit button in the Adobe Form is not working.
    I send the project to a colleague and she could deploy and run my project without any problems. So I think it is a problem with my settings or installation. I already did a reinstallation of the NW Developer Studio as well as the Adobe Lifecycle Designer. But it did not help.
    Did anyone have a similar problem or has a suggestions what else I could do?
    Thanks in advance,
    Thorsten

    Hi Thorsten,
    If the submit button doesn't do anything, it usually means there's something wrong with your client software.
    Are you using NW04s or NW04? NW04 only supports ACF (Active Component Framework) forms, whereas NW04s also supports ZCI (Zero Client Installation) forms (there're different Submit buttons in Adobe LiveCycle Designer). Reader 7.0.9 should definitely work in all cases, but Reader 8.0 (and Reader 8.1, released yesterday) doesn't work properly with ACF forms (there's an SAP note on this subject).
    To use ZCI forms, all you need is Adobe Reader at client side. To use ACF forms, you also need some other client software: either (the correct version!) SAP Active Component Framework (stand alone software that you can download from SAP Marketplace; it's part of some SAP note; search for xACF and select the correct version of the note). A better option is not to install xACF manually (uninstall it if present, using Control Panel > Add/Remove programs), but to use the ActiveX control instead (reinstall it in your case because of the problem you have). First kill the AcroRd32.exe process, if it is running. Then go to "C:\WINDOWS\Downloaded Program Files" and delete the file AdobeControl(s) (NW04) or AcfControls (something similar; NW04s) if present. Then access your form in your Web Dynpro application using IE (Firefox doesn't support ActiveX; the only option is to use ZCI forms with non-IE browsers). If all goes well, prior to displaying the form, IE should ask to install an ActiveX control (it will only be asked if you have sufficient privileges, that is belong to the local Administrators group).
    Kind regards,
    Sigiswald

  • How to print Adobe Forms without the black/gray backgrounds in the side columns

    How can we print Adobe Forms without the black/gray backgrounds in the side columns? We are wasting a lot of ink printing out these forms and would like to have simply black ilnes to distinguish columns and black lettering, but no background colors.  Any help would be appreciated. Thanks.

    I am not positive what you are printing from but I am thinking it is from the View Responses tab with a response row selected and then shown in "Detail View" and that the column of field names has a dark grey background...
    To change the color of the column headers select the row of headers (do this by clicking on the first dark grey header field and then scroll to the last one and shift+click on the last one), then in the "Text" tools change the text color to Black and the Fill color to white:
    (Selected the header cells)
    Changed the text/font color to black and the fill color to white
    Now you can see the detail view does not have the dark grey.
    Thanks,
    Josh

  • To integrate the Adobe form in webdynpro ABAP

    Hi Experts,
                    How to use the adobe form in Webdynpro ABAP?
    Thanks & regads
        Vino

    That is quite the general question and I think if you search SCN you will find many resources - such as videos, tutorials, how-to guides, documentation - on the subject.  Perhaps just starting with the online Help and the associated links form the help article will get you started:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/0f/128841e8231709e10000000a155106/frameset.htm

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

  • Adobe forms in webdynpro abap

    which is better to use adobe forms . whether webdynpro with abap or java?

    The capabilities around the usage of the Adobe Forms is pretty equal between WDA and WDJ now.  In the earlier support packages when we only had ACF based forms, WDA did lack some of the UI elemetns supported by WDJ when using Adobe Forms. However with the addition of ZCI (Zero-Client Installation) based forms in WDA, the features are quite equal.
    To me the better question is: where is your data and what programming language do you want to use.  These are the main deciding factors between using WDA or WDJ in this situation.

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

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

  • Erro while executing adobe forms in webdynpro

    Hi ,
    Please help me in resolving the following issue while running the adobe form in webdynpro for java on sneakpreview
    java.lang.exception:incorect content type found "text/html"
    thanks

    Hi
    For Adobe Interactive forms in webdynpro ,u need following things;
    1. Adobe life cycle designer installed on ur system
    2. ACF installed
    3. AdobeDocumentService configured on ur system
    I think application/x-pdf  is the suitable mime
    check this
    1 . http://help.sap.com/saphelp_nw04/helpdata/en/20/9727dce8953c4f944aac6e4725b195/frameset.htm
    2 . http://plugindoc.mozdev.org/winmime.html
    3 .  SAP Interactive Forms by Adobe
    Regards
    Abhijith YS

  • Validating Input fields in Interactive Adobe Forms with Webdynpro ABAP

    Dear Friends,
    Am new to Interactive Adobe forms with Webdynpro Abap,
    My scenario is, I have few Input fields, i need to handle the Messages when am not entering values in any of the Input Field,
    and raise the message when i click on Save Button.
    I have tried with setting the field as Required in Form itself, but i can't set the Field as Mandatory.
    I don't know how to do, Please give some needed points, as well needed some Script/Formcalc code.
    Thanks,
    Pradeep.

    Hi Pradeep,
    You can validate the fields by using javascript/formcalc logic in onclick event of button.
    Please refer the below links
    Adobe Form -How to make an Input Field Mandatory
    Validate Intercive Adobe Form
    Hope it helps you.
    Regards,
    Rama

  • Create printing adobe forms

    Hi experts
    I Want to create function that print adobe form directly
    not by the button (print) in the pdf
    i want send command to print the pdf
    thanks
    Yossii

    hi i also have the same situation pls help me if u got any solution for this
    Warm regards
    Shanto Aloor

  • Calling adobe form from webdynpro abap view

    Hi,
    I need some help. The situation is: I have created a Adobe form interface as well as a form using the SFP transaction. Now, I have a webdynpro screen with a button, which upon pressed must give the output of the PDF form.
    I tried the following steps:
    1. Call function 'FP_FUNCTION_MODULE_NAME'
    2. Call 'FP_JOB_OPEN'
    3. Call the generated function module name
    4. Call FP_JOB_CLOSE.
    The procedure works fine when I use the same code in a report program. It opens a dialog box where there is a option for Print preview and it displays the PDF.
    But when I try to replicate the same, it does not work in Webdynpro for ABAP. Any suggestions as to how to go about this problem?
    regards,
    Praveen Kumar

    Hi Praveen
    there is documentation on the Web Dynpro for ABAP integration of Interactive Forms in the SAP Help Portal at http://help.sap.com/saphelp_nw2004s/helpdata/en/aa/940ee5331b4b8fa0a6cb6714dc5db4/frameset.htm which should answer most of your questions.
    You specify the form to be used during the design of your Web Dynpro application (you are prompted to determine it when you insert the UI element).
    You can save the form from the Reader toolbar, the question would be why would you want to do this and not use a proper download screen.
    A proper tutorial is planned to be available in June. Until then, check the ABAP page in SDN for some e-learning / webinar recording), or directly here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3
    Cheers,
    Markus

  • Translating Adobe Forms in WebDynpro ABAP

    Hi experts,
    I use Adobe Forms for printing purposes only.
    I have a form (XML based) which has to be in English and German. The original Language is German.
    So I translated it via the SE63 (all the blue printed Words), which worked fine but after this it is always displayed in the English Version, ignoring the SAPuser/SAPsystem language.
    Any ideas how to solve this or where to find the error?
    Best regards
    Volker

    The problem lies in my Service USER which I use for the WebDynpro Application and the RFC to the ERP backend. The Method cl_wd_adobe_services->create_pdf() uses the system language of the system user which in this place is not the logged in Portal User but the mapped Service User of the WDA Application.
    Easiest solution without modifiying the standard cl_wd_adobe_services class is just to duplicate the adobe form for the needed langugaes and to call the appropriate one from the webdynpro.
    Best regards.
    Volker

  • Error when integrating Adobe form in Webdynpro

    Hi,
            Anyone tell me whts this error? How to solve this?
    The following error text was processed in the system AD0 : WebDynpro Exception: ADS: com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights(200.101).
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================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
    Thanks...

    Hi Reema,
                        I created a Adobe interactive form. In a Webdynpro view i use the IAdobe nteractive UI Element & also File Upload. If i click a Submit or upload button in Webdynpro its not able to display a values in Adobe. I written all the XML Parsing to retrive the values. Its is working when i display in Webdynpro screen but not in Adobe form.
    Thanks.

Maybe you are looking for

  • My FIOS has slowed to a snails crawl.

    I have a wired (to FIOS) PC and a wireless (router), brand new, Mac. Over the last few weeks my internet speed on both has intermittently slowed considerably. I've reset my router a couple of times and that seemed to temporarily correct the problem.

  • My iPod touch Is No Longer syncing with my iTunes.

    I Don't Know WHat The Problem Is. All Of A Sudden My iPod Is No Longer Syncing with my iTunes.

  • Time Machine with two computers - "You do not have sufficient access privileges"

    I am currently running an Intel-based iMac at home and was recently given a new Intel-based MacBook Pro to use for work.  The iMac at home is running Leopard and the MacBook is running Snow Leopard.  After I loaded all of the necessary files from the

  • Refresh characteristic texts in query result without logoff in Bex 7.0

    Dear Experts, I'm using a query in BEx 7.0 and switched off all caching parameters in RSRT. For instantly reloading values from Cube/DSO this is working fine. Some of my characteristics are shown as key + text in query result. Unfortulately these tex

  • Drag card from Address Book adds a row?

    I have a small table in an estimating spreadsheet into which I can drag a card from AddressBook.app. That populates the table with name, address, etc., providing info that is picked up elsewhere in the file. In my old template, this worked fine. But