Auto Saving of HCM interactive form in Background

Hi ,
We are using HCM Forms and Process to automate the processes where user fills the interactive form from EP and after that workflow will take care of approvals and finally data of the form is saved in the infotypes.Till now its working fine.
But there is one requirement to save the form at the last approval level on the application server.As HCM forms and process is using Case management and all data of the form is available in XML format which enduser cannnot understand.
So can you  suugest the way to save this pdf form automatically in the backgound.
Thanks,
Rahul

Hi Rahul.
Please use my profile to contact me and I'll send you some code that will help.
Thanks,
Derrick Banks
Banks & Company

Similar Messages

  • HCM Interactive forms - operation error while applying usage rights

    Hi!
    We have setup several scenarios using the new HCM Interactive forms on ERP6.0 and EP7.0. The scenarios include things like Transfer, pay change request.
    In 9 out of 10 cases everything thing is working as expected so that the users can complete the forms and the process for their requests but occasionally we are seeing a random error that occurs for any user at any time without any apparent pattern.
    The below is what is seen from the log file
    Exception Stack Trace:
    com.adobe.ProcessingError: PDF operation error while applying usage rights to PDF: /tmp/adobewa_PEP_17116350/DM-6192899546130604164.dir/DM8253967776737558967.tmp
    Specific error information:
    this document is signed
         at com.adobe.ads.request.UsageRights.execute(Unknown Source)
         at com.adobe.BaseADSRequest.doWork(Unknown Source)
         at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)
         at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
         at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
         at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0_0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0_0.java:120)
         at sun.reflect.GeneratedMethodAccessor403.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:62)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
         at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
         at SoapServlet.doPost(SoapServlet.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:215)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.adobe.document.pdf.PDFOperationFailure: IDL:com/adobe/document/pdf/PDFOperationFailure:1.0
         at com.adobe.EJB_PDFAgent.linearize(Unknown Source)
         at com.adobe.EJB_PDFAgent.setUsageRights(Unknown Source)
         ... 30 more
    I am in the processes of raising a message to SAP about this but was wondering if any one else had experienced a similar error or knows what might cause this type of error.
    Thanks
    Matt

    We had the same problem. The fix is to get a unique ID for every form. Given below
    Instructions to generate unique ID
    1. Modify template
    Edit your template via t-code SFP
    -> goto Layout tab -> Adobe LiveCycle Designer will be started
    -> Goto 'XML source' tab
    in line2, you will find following entry
    <?xfa generator="AdobeLiveCycleDesigner_V8.0_SAP" APIVersion="2.5.8227.0"?>
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2008-09-11T14:
    39:44Z" uuid="4ed773ff-6aeb-483e-a5ec-4af1a138c775">
    from this line, delete uuid="..." part.
    Go back to 'Design view' tab
    Check if layout is not changed.
    Save / activate template
    2. Delete database table entry for table ADS_Licensed_forms
    Schema SAP<SID>DB -> table ADS_LICENSED_FORMS
    (you can delete all table entry from this table)
    3. When you access the forms, they are aitomatically registered in this table.
    Hope this helps.
    Sunil

  • 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

  • Changing the default file name while saving the PDF interactive form

    Hi All,
    I am generating an Interactive PDF form using webdynpro, but when I try to save the PDF to my local machine the default file name comes as "<b>unknown.pdf</b>" so I have to manually go and enter the name before saving it.
    Is there any way to change this default name so that I don't have to manually edit the file name each time when I want to save the generated PDF interactive form?
    Please reply soon.
    Thanks in advance!

    I am running into the same issue. Setting the desname parameter (e.g. desname=temp.pdf) doesn't have any effect. Has anyone found a solution to this?
    Thanks,
    Brian

  • Generate Adobe Interactive Form in background and setpdfSource value.

    Hi,
    Is there any way to create Adobe Interactive Form in the background assigning R/3 data (without displaying) and assign pdfSource binary information in context attribute and later, display Adobe Interactive Form using pdfSource context attribute in a new window?
    if Adobe Interactive Form is in Visible state, I'm also able to display Adobe Interactive Form in a new window using pdfSource binary context attribute, .
    But, unable to create Adobe Interactive form in the background when Adobe Interactive Form Visibility is NONE and unable to assign binary data to pdfSource attribute in context and hence unable to display Adobe Interactive Form in a new window. Kindly help me if this process is possible.
    Thank you in advance.
    Regards
    Prasad

    Hi Prasad,
    This is certainly possible. First populate the dataSource context node with the data (e.g. coming from R/3). Then use <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/adobe/api/WDInteractiveFormHelper.html">WDInteractiveFormHelper.getContextDataAsStream</a> to obtain the data.xml as a byte[] by calling toByteArray() on the ByteArrayOutputStream. The next step is to obtain the xdp template as a byte[] (I don't know exactly how to do this, but it's certainly possible using some API, just as you would read other resources deployed within your Web Dynpro). When you have both the template and the data, you can use the <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/adobe/pdfdocument/api/package-summary.html">PDFDocument</a> API to render a PDF, something as <i>WDPDFDocumentFactory.getDocumentHandler().getDocumentContext().getDocumentCreationContext()</i>; set the data and the template and other options like interactive, call execute and retrieve the pdf byte[] from the returned object. Eventually you can assign the pdf byte[] to the pdfSource context attribute. In case you use NW04, you must use the <a href="http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/pdfobject/api/package-summary.html">PDFObject</a> instead.
    Besides, why would you want to create the PDF before displaying it?
    Kind regards,
    Sigiswald

  • License requirement for HCM INteractive form

    Hi,
    We are planning to use HCM form and process in HR Admin role.
    There are Interactive pdf form in process which will be filled and submitted by end user(like employee, HR admin).
    Do we need a separate license from SAP or ADOBE to use or customize or to developed our own interactive form.
    Request you to please clarify.
    Regards,
    Zaid

    Hi Chintan,
    Thanks for reply.
    We have gone through SAP note 750784.
    Need clarification regarding below criteria mentioned in  note.
    You use interactive forms in a productive system, that is, end
    users fill in generated PDF forms during business operations.
    Is this also applicable to standard form used in production scenario with out modification?
    Regards,
    Zaid

  • HCM interactive Forms - hide fields and backend connection

    Hello,
    we plan to implement a personnel transfer workflow based on interactive forms. Because in one step the user should not be able to see a couple of fields, it is possible in interactive forms zu hide fields based on the users role?
    I read a lot the last days but what I still havent found out and I hope you can push me in the right direction is, how the connection between backend and Form is working.
    Inside of an example form and in the documentation is descriped to use this below code to implement a bushbutton and the send message to create a server round trip. But if I create 2 pushbuttons with the same code, how do I know which button was pressed? Or do I have to create my own events somewhere? Or is there only this one event and I have to set a hidden field with some value via javascript or formcalc to find out whats going on in the form?
    $record.CONTROL_PARAM.ISR_EVENT = "USER_EVENT_CHECK"
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    best regards,
    Kai

    Hey Rajesh
    I'm not sure it will work - but its worth a try.
    Every time i wont to hide some subforms or UI elements - I determine them as "invisible" by default - and when the conditions are right - I turn them to "visible" (negatively way).
    Hopefully it will help you.
    Eyal

  • Saving an Online Interactive Form onto Client PC and UWL query

    Hi all,
                I am pretty new to Adobe Interactive Forms and i have 2 questions which i hope someone can shed some light on.
    1) Is it possible to save an Online Interactive Form after entering data as a PDF softcopy onto a local client machine before submission to the SAP R/3 system? This form is embedded in a Webdynpro App that is accessed through the portal.
    2) I wish to integrate the Adobe Interactive Forms together with an approval workflow that is accessed through the portal UWL. I am wondering if my form needs to be embedded in a webdynpro app that allows an approver to view the filled in form filled in by the requestor. In addition, if the approver rejects the form, is it possible for the requestor to make the changes on the rejected form directly through the UWL or must the requestor create a new form?
    Thank you all for your time and expertise! =)

    Its an interesting idea. but I think it would be better if your students download Eclipse Europa IDE (or similiar IDE) and learn how to work with it. The vendor spent over 20,000,000 dollors on creating it and your application is attempting to create an on-line IDE that will not have nearly as much functionality. I don't want to discurage you, but I suggest a different project. Alternatively, If you want, you can create a tutorial on setting up the IDE and how to create a simple project in it and launch it. Then again, there are probably a lot of other on-line examples already on this this. On the other hand, your application is great practice on updating your java skills.

  • Interactive Forms by mail in background

    hi gurus
    I need to know if is possible ti develop a web dynpro application to create an interactive forms in background and send it by mail, it's possible to do or is necessary the visualization of interactive form and then send it by mail?
    Moderator message: we have separate forums for "Web Dynpro ABAP" and "Interactive Forms by Adobe", please have a look there.
    Edited by: Thomas Zloch on Oct 27, 2010 6:19 PM

    Hi..
    I am not sure you want to know for WebDynpro Java or WebDynpro ABAP...
    In WebDynpro Java it is deficately possible to create a form and send as a mail.
    In WDJ we have IWDPDFDocumentHandler class by which we can create the form in background..  For that we need the first have the .xdp template of the form ready stored somewhere it can be in mimes folder of KM repository.. then using the class we can create the form and pass the binary stream of the .xdp file as a e-mail attachment using javax.mail class..
    - Akshay

  • Saving an interactive form temporary and then retrieve it in DMS -possible?

    Hi!
    We have a scenario as follows: When a user creates a new Functional location, a new Interactive Adobe form should be automatically created - prefilled with the new number for the functional location and the description. This should be triggered from an existing user exit. The master data is on a 46c system so we need to call a function module on an ECC system remotely to create the Interactive form. Then this new form should be saved on a common folder or maybe c:/temp and then another program in the 46c system should be triggered that put this PDF-file into DMS. Manually the user will export the document to a Cfolder system, where external Vendor could do some updates in the Interactive form. 
    Do you think this Scenario is possible ? We will have a Proof of concept Workshop next week. But it would be nice to have others opinion on this.
    Do we always need to build a WebDYnpro application around the Interactive form ?
    Is it possible to generate an Interactive Form in the background?
    Any thoughts is appreciated!
    Regards, Tine

    Hi Tines,
    Yes it's possible to do so without Web developpement .
    You need to retrieve the PDF content , store it on a file server and then use BAPI DOCUMENT_CHECKIN to do it .
    If you want i can send you abap code for adding file into DMS.

  • Adobe Interactive Forms in SAP HCM

    Hi,
    What do Adobe Interactive Forms in SAP HCM do?
    What is the difference between Interactive/Non-Interactive Forms?
    In which sub-modules of SAP HCM are such forms used?
    What is that an HCM consultant has to expect from Basis and ABAP consultants for this?
    Where can I get reference material on Adobe Interactive Forms in SAP HCM.
    Please help.
    Thanks and regards,
    Sasidhar.

    Hi,
    Check the answers for u r questions...
    What do Adobe Interactive Forms in SAP HCM do?
    Adobe Forms is the second step in the HCM process, as HCM is the online process..in between of the process adobe form will come in to picture to fill online.
    What is the difference between Interactive/Non-Interactive Forms?
    In non-interactive forms,there is no database interaction.If u say interactive forms.if u enter data in the form data will be saved directly in the data base..
    In which sub-modules of SAP HCM are such forms used?
    OM(Orzanization Management),PA(Personel Adminstration) and PD(personel Admin) ..ect...
    What is that an HCM consultant has to expect from Basis and ABAP consultants for this?
    from basis HCM dont required more help..only authorization and access only.
    from ABAP u need more..if u use standard backend system..some times data will not picked automatically at that time through BADI u need to fill the data to the form,and to do validation in the form level..ABAPER need to write scripting
    Where can I get reference material on Adobe Interactive Forms in SAP HCM.
    check the below link
    http://www.cogentibs.com/pdf/cogsap08/HRForms.pdf
    Thanks,
    Madhukar.

  • Changing the background of a text field in adobe interactive forms

    Hello All,
    Is there any way to change the background colour of text field in interactive form dynamically.??
    Thanks,

    Naresh,
    Change the language to JavaScipt in Script Editor of LiveCycle Designer and use the following code to highlight the area of TextField where R,G,B means that you have to give the RGB values of the color you want.
    <YourTextFieldName>.border.edge.color.value = "R,G,B";
    For eg:- If you have a textfield with name TextField1 then this will highlight the TextField1 area in red color.
    if ((TextField1.rawValue==null) || (TextField1.rawValue==""))
      TextField1.border.edge.color.value = "255,0,0";
    You can use this on exit event of Textfield1 or at the submit button where you check the form data.
    Chintan

  • 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

  • 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 Interactive Form WITH filled in data

    Scenario:
    We have created an interactive form in the ABAP environment (SFP).
    The user receives the interactive PDF form as an eMail attachment.
    The user needs to fill in the form AND save it WITH the filled in informatiion.
    Right now, the user cannot save the form WITH the filled in information.
    Why?
    The Adobe help says:
    <i>You can't save the data that you enter into the PDF form, unless the form author included additional usage rights in the PDF file.</i>
    How do I include  these <i>'additional usage rights'</i>?
    We are on NetWeaver 04, and the ADS is fully installed and configured on the Java stack.
    Your help is greatly appreciated!
    Regards,
    Karin.

    Hello,
    I have created a form using transaction SFP. I don't use any web dynpro.
    The  issue is that I am not able to automatically have the data back in the SAP program.
    The only solution I have found is saving the PDF locally, then calling the METHOD cl_gui_frontend_services=>file_open_dialog and finally extracting the data from the XML file.
    It works this way.
    I would like to automate this process, I mean, I would like to automatically save the pdf (after pushing a submit button) into a specific folder and then to be able to read it.
    The aim is to avoid having too many manipulations.
    I tried the xfa.host.exportdata("",0) but i cannot specify a path because my pdf is not certified!
    Thank you for your help.
    Damien

Maybe you are looking for

  • Migration from Exchange 2007 to Exchange 2013

    We are migrating from Exchange 2007 to Exchange 2013. We have a new Exchange 2013 server will all of the roles installed, but none of the mailboxes have even been moved yet. We are seeing some of our users getting prompted to accept the self signed c

  • Obvious Error in APEX 4.1

    Hi friends, While trying to use APEX 4.1, im facing the below error then and there Error     ORA-01403: no data found Technical Info (only visible for developers)     * is_internal_error: false     * ora_sqlcode: 100     * ora_sqlerrm: ORA-01403: no

  • Drop multiple tables

    Hi Can you pls help me on this I have 300 tables starting 'ABC_' and I would like to drop all these table starting with this drop table select table_name from all_tables where table_name like '%ABC_%'but the above query is not working,pls help me on

  • Finding Future-Dated Files

    I'm still attempting to figure out my Spotlight indexing problem. Apparently there's a poisoned file that causes it to just go on and on forever. One of the known sources of such a problem is future-dated files. I'm not sure how to search for such fi

  • CS6 Student to CC Individual question

    I have a question. I have CS6 Student - from when I was studying, but now am working Freelance. Am I able to upgrade to CC with the $29.99 month special for existing customers, or do I need the new one $49.99 month? Thanks