Saving Adobe Interactive Form into a Server Path in Webdynpro.

Hi Forum,
                 I have an Adobe Interactive Form as UI element in my webdynpro View. This form is available in the context attribute in Binary Format. I can read the form from this attribute as Byte Array only. I want to save this file in to a folder located in the Portal Server (ex : path :
usr\jc00\j2ee\........\temp\myfolder).
              I am trying  with the following code :
  IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(IPrivateTestCompView.IContextElement.PDF_SOURCE);
       IWDModifiableBinaryType binaryType =(IWDModifiableBinaryType) attributeInfo.getModifiableSimpleType();
       IPrivateTestCompView.IContextElement element =     wdContext.currentContextElement();
       binaryType.setMimeType(WDWebResourceType.PDF);
       //if a file in the 'FileResource' attribute exists
       if (element.getPDFSource() != null) {
            try {
                                     String ext=binaryType.getMimeType().getFileExtension();
                                String fileName="PriceUpdateForm1";
                      byte[] b = wdContext.currentContextElement().getPDFSource();
                      File files = new File("C:
usr
sap
EP7
JC00
j2ee
temp
HTI
"fileName"."+ext);
                      try {
                                                       FileOutputStream out = new FileOutputStream(files);
                                                       out.write(b);
                                                       out.close();
                                                                                          } catch (FileNotFoundException e) {
                                                        //TODO Auto-generated catch block
                                                       e.printStackTrace();
                                                       wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
                                             } catch (IOException e) {
                                                       //TODO Auto-generated catch block
                                                       e.printStackTrace();
                                                       wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
                      element.setPDFSource(null);
                  } catch (Exception e) {
                       throw new WDRuntimeException(e);
it is giving me the error :-
java.lang.Exception: Incorrect content-type found 'text/html'
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientMimeMessage.initDeserializationMode(ClientMimeMessage.java:120)
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:951)
    at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
    at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:82)
    at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:99
Can any one tell me what went wrong and how to convert the ByteArray into PDF and save it on to network path.
Any help will be highly awarded........
Thanks
Ramesh.

Hi,
Please refer this, Page 7-8
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1bbc91c3-0401-0010-91bc-a25b2a3dff19
Regards,
Eric

Similar Messages

  • How to use Adobe Interactive forms with ISR frame work in Webdynpro forJava

    Hi,
    Anybody worked on Adobe Interactive forms with ISR frame work in Webdynpro for Java in ESS/MSS development.
    We have already searched in ISR_Cookbook_2004, however we didn't anything related webdynpro for java in that.
    Any information regarding this will be of great help.
    Regards
    Satish Kumar

    There are a number of issues here. A form that you created with LiveCycle Designer (XFA) cannot be used with FormsCentral. An Acroform, the kind you can create with Acrobat, can be used with FormsCentral, with certain limitations,  one of which is skip logic. A dynamic XFA form allows for this type of thing, but as mentioned, they don't work with FormsCentral. You can set up an Acroform to show/hide or activate/inactivate fields based on selections or entries made in other fields, but you'd have to set this up in Acrobat, not FormsCentral. So you can set up something roughly equivalent to a web form's skip logic, but you'd have to learn how to do this in Acrobat using JavaScript. There is a separate Acrobat JavaScript forum here if you have any questions.

  • Saving Adobe Interactive Form

    I have a web dynpro application opens an interactive form and once a user fills it out it creates an activity on the crm backend. That works fine.
    What I'd like to do is take the adobe form and attach it to the newly created activity. I am able to attach other documents to the activity, but not the .pdf from the interactive form.
    The method I use to attach documents takes a context element called pdfObject and passes it to the backend as a byte arry. The problem is, only some data is coming thru.
    I'm thinking that it might only be passing the data or the form template, but not both in a .pdf format.
    Anyway, if anyone knows of a way to take a interative form and get it into a byte array, please help.
    Thanks,
    Tom

    Markus,
       You are correct the pdfObject is the binary context that is assigned to the pdfSource property. The form works great for filling out and calling the ABAP rfc. The problem is that I tried saving the pdfObject element, in the web dynpro application, to file and it does not save in a readable pdf format. If I go into the form manually and save it as a pdf it works ok. I also compared the size of the pdfObject and the saved pdf and the saved pdf is much bigger. This leads me to believe that the binary stored in pdfObject is not a pdf, but maybe the data from the pdf.
       I guess the question really is, What is pdfSource holding? Is it the data less the template,all the pdf data...
        Anyway, I image someone has tried to save an interactive form to file via web dynpro. Let me know if you have any hints for me, or have tried something similar.
    Regards,
    I guess the context element pdfObject is the value you assigned to the pdfSource property of the InteractiveForm UI element. And you probably also made it of a 'binary' type in the Context. Can you please check this?

  • Saving a interactive form into the application

    hi gurus,
    I have developed an application which contains interactive form design by getting values from the back end r/3 system.
    The PDF is being populated by getting the data from the back end.Now my problem is that I need to open this PDF in an external window.
    Earlier I have embed this interactive form in a view and the view contains the PDF, now the PDF should be opened in a external window and does be in the view.
    So I thought of saving the file into the src/mimes/components and then call the PDF on file download.
    Can you help me in this issue.
    Thanks and regards,
    kris

    hi,
    Canyo check the following link
    SAP Interactive Forms by Adobe

  • Adobe Interactive Forms without Web Dynpro and ACF???

    Hi All, we would like to build an interactive forms solution based on the Adobe software integrated into WAS. However, the customer requires a true thin client application with no additional installation on the client. Integrating Adobe Interactive Forms into Web DynPro however requires the Active Component Framework (ACF) to be installed since these forms are integrated into the page within an ActiveX container.
    So the question is whether there is a way to use Adobe Interactive forms including the Adobe Documents Service within WAS but without(!) using Web Dynpro?(the full blown Adobe LifCycle Forms solution is not an option). Any suggestions on this are highly appreciated!
    Tanks!
    Frodo

    Hello everyone,
    I would like to add a couple of points from the SAP Product Management perspective.
    Adobe has a number of stand-alone products that are the foundation for what SAP can now offer thanks to our partnership. This is exactly why we decided on a partnership that provides us with established technology, which is now integrated.
    It is true that Web Dynpro is the main SAP way of integrating the interactive functions of the solution. We made this decision consciously, because the development and run-time environments provide very useful features that reduce the need for manual coding, such as the possibility of passing the data back to the backend using the Web Dynpro context. The automatism we offer here needs to be implemented from scratch with any other solution, including the Adobe stand-alone one.
    While it is true that the ACF constitutes a certain limitation for the reasons you mention, Adobe will remedy this in 2005. The Reader/Web Dynpro integration will be available later this year for multiple platforms (OS, browsers) and will not require ACF anymore.
    If you do not want to use a full-blown Web Dynpro application for your concrete scenario, consider developing an application that provides nothing but the interactive PDF form to the end user, to be filled in using the stand-alone Reader. The submit of the form data (with or without the PDF itself) could then happen via HTTP or e-mail.
    Kind regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Calling BRF in Adobe interactive form/Webdynpro application

    Dear Friends,
    I have a requirement that  I need to call BRF in Adobe interactive form.
    I would be great if you coud help me how to call  BRF Event in Adobe interactive form?
    Is it happening through webdynpro application?
    Please share your ideas.
    Thanks.
    Regrds,
    Preethi.

    Hi,
    Can anybody provide document link for BRF/Webdynpro and adobe combination ?
    Thanks.
    Regards,
    Preethi

  • OVS implementation in Adobe Interactive Form

    Hi,
    I have to implement OVS in Adobe Interactive form, which will be part of WebDynpro component. I  have done this  in webDynpro, but i am not able to figure out how it is implemented in AIF.
    I am using NW04s SP09 , patch 2.
    Any documentation for implementing OVS in AIF is would be a great help.
    Thanks & Regards,
    Mamta

    Hi Chintan,
    Basically, I have tried to search in the forum within this two days... But I could not find the step by step how to do it. Anyway, I will try to search again. Really appreciate if you don't mind give me the link of it.
    Hi Otto,
    I have created the WD application. Unfortunately, the requirement is online processing form which is attached in the SAP transaction. So, when user open document number of one transaction, the form will be displayed and user can fill the information in this form. Then after that user will click SAVE button to submit data to SAP.
    Any advise?
    Thanks,
    Nonik

  • Capturing entire directory path in Adobe Interactive Form

    Hi All,
    I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.
    *Start of JavaScript
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;
    *End of JavaScript
    1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.
    2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.
    3. This way is only giving me the selected FILE NAME whereas I need the complete path.
    I have tried below way also:
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;
    This function returns me the complete path but in URL form. It does not give me the presentation server path.
    Please suggest me how to get the complete path of presentation server to the file.
    Appreciation would be honored in form of points!!!
    Regards,
    Ashish

    please post it here for quick response
    and also search in adobe forums also for java script related.
    http://www.adobe.com/support/forums/index.html

  • Getting complete file path in Adobe Interactive Form

    Hi All,
    I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.
    *Start of JavaScript
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;
    *End of JavaScript
    1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.
    2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.
    3. This way is only giving me the selected FILE NAME whereas I need the complete path.
    I have tried below way also:
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;
    This function returns me the complete path but in URL form. It does not give me the presentation server path.
    Please suggest me how to get the complete path of presentation server to the file.
    Appreciation would be honored in form of points!!!
    Regards,
    Ashish

    please post it here for quick response
    and also search in adobe forums also for java script related.
    http://www.adobe.com/support/forums/index.html

  • Need to capture full file path in Adobe Interactive Form

    Hi All,
    I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.
    *Start of JavaScript
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;
    *End of JavaScript
    1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.
    2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.
    3. This way is only giving me the selected FILE NAME whereas I need the complete path.
    I have tried below way also:
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;
    This function returns me the complete path but in URL form. It does not give me the presentation server path.
    Please suggest me how to get the complete path of presentation server to the file.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Regards,
    Ashish
    I have also tried below way:
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Oct 17, 2008 3:26 PM

    please post it here for quick response
    and also search in adobe forums also for java script related.
    http://www.adobe.com/support/forums/index.html

  • How to capture full file path on Adobe Interactive Form using Acro JS

    Hi All,
    I have a requirement where I have a field ZPATH1 on Adobe Interactive Form. I am putting a BROWSE button and writing following JavaScript on CLICK event on this button for populating the chosen file path into field ZPATH1.
    *Start of JavaScript
    var sFile;
    event.target.importDataObject(sFile);
    var oFile;
    oFile = event.target.getDataObject(sFile);
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path;
    *End of JavaScript
    1. event.target.importDataObject(sFile) --> Giving me the pop up to select the file.
    2. this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = oFile.path; --> Putting the oFile path in field ZPATH1 on the form.
    3. This way is only giving me the selected FILE NAME whereas I need the complete path.
    I have tried below way also:
    this.parent.parent.Sub_Form_Fields_Mass.ZPATH1.rawValue = even.target.path;
    This function returns me the complete path but in URL form. It does not give me the presentation server path.
    Please suggest me how to get the complete path of presentation server to the file.
    Appreciation would be honored in form of points!!!
    Regards,
    Ashish

    please post it here for quick response
    and also search in adobe forums also for java script related.
    http://www.adobe.com/support/forums/index.html

  • Need help with Adobe Interactive Form Saving

    Hi Gurus,
    I need your help with Adobe Interactive form saving.
    I have written the code in pre-save event to prompt a message when user didn't enter any value before saving. The form data should not be saved upon clicking save (Just prompt the message and exit form the form). Can u please advice me how to do this.
    Regards,
    Srini

    see the link: http://forms.stefcameron.com/2008/04/
    it says:
    preSave: Failed validations will not prevent the form from being saved however Acrobat/Reader will issue a special warning message, after issuing the validation error message, to inform the user that the validations failed. Iu2019m guessing this is because the user may be saving the form to continue filling it at a later time so the save canu2019t be completely prevented.
    regards,
    BJagdishwar.

  • Saving an Adobe Interactive Form without dialog in background

    Hi'
    I hope someone here can help us.
    Our client uses an R/3 system, version 4.6C, where data for the Interactive form is generated.
    We use an RFC call to send the data to a NetWeaver system.
    The RFC generates our Adobe Interactive form in the NetWeaver system.
    We need to save the generated PDF file onto a harddrive in this background processing ( in the RFC ) immidiately after the file has been generated.
    Any ideas as to how we save the file?
    Regards,
    Karin.

    Here's one way I could think of doing it. Not sure if it's the most efficient. There may be some function modules out there....
    You write a small program to print an Adobe form from the RFC.
    Before you call Job open (CALL FUNCTION 'FP_JOB_OPEN'
    ), set the following parameters of
    sfpoutputparams.
    Set the outputparamaters to suppress the dialog
    utputparams-nodialog = 'X'.
    Set to print to a dummy printer
    outputparams-dest = 'LP01'.
    Set a spool request
      outputparams-REQNEW = 'X'.
    Then you can call a program like rstxpdft4 to download the PDF file.
    Regards,
    Lavaughn

  • Problem Saving AdobeForm: INTERACTIVE FORMS DEVELOPMENT BASED ON ADOBE

    Gurus,
    I am basically developing "INTERACTIVE FORMS DEVELOPMENT BASED ON ADOBE SOFTWARE".
    The problem comes when I save the Adobe Form. I am loosing the value (Meaning not able to save the form).
    As far as i understand, this is surely pertaining to the Adobe Version that i am using.
    Can somebody throw light on what Version should be used to go solve the problem
    Regards,
    Arvind Kugasia

    Arvind,
    In the Adobe Forms forum, I told this solution , it worked for him,
    Re: Adobe interactive forms: unable to create part
    The IDEInstaller might not installed the Adobe related files properly.
    In the directory <plugins>\com.sap.ide.webdynpro.adobetemplatedesigner
    \lib\.. there exists a file
    "WDAdobeControl.dll".
    This has to be registered.
    For that following steps have to be performed:
    1. Close the NetWeaver Studio.
    2. Open the command prompt.
    3. Type : regsvr32 "C:\......<plugins>\com.sap.ide.webdynpro.
    adobetemplatedesigner\lib\WDAdobeControl.dll".
    4. Re-open the Studio.
    Thanks, Let me know whether this worked for you.
    Raj.

  • Error while executing WebDynpro Application with Adobe interactive forms.

    I have created a webDynpro application which involves an adobe interactive form. When i deploy and run the application, i am able to deploy it on the J2EE engine on the EP server but while executing it, i get the following exception -
    <b>Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Processing exception during a "UsageRights" operation. Request start time: Thu Oct 12 17:30:39 GMT+05:30 2006
        at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:486)
        at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
        at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
        at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
        at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
        ... 21 more</b>
    I would appreciate any help in this matter.
    Thanks...

    Hi,
    Check the note in this site...
    https://websmp204.sap-ag.de/notes
    Regards,
    <i><b>Raja Sekhar</b></i>

Maybe you are looking for