Save the adobe form

hi expert
     I have created the simple application in that i have created
open and save button , once i click the open button the adobe form will open
after that i want to save these adobe form in the particular location ("c:\temp")
how can i do this without using the upload and download UI element
help
its urgency
thanks
Regards
vijay

Hello Vijay,
You want save the pdf file to particular location..,So go through the following code. This might be useful to you.
IIWDAttributeInfo attInfo =
wdContext.currentContextElement().node().getNodeInfo().getAttribute("pdfsource");
ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
IModifiableSimpleValueSet binaryType =
type.getSVServices().getModifiableSimpleValueSet();
binaryType.put("FileName","TravelRequest.pdf");
binaryType.put("MimeType","WDWebResourceType.PDF");
String Filename =
"temp
webdynpro
web
local
offlineInteractiveForm
Components
com.sap.offlineinteractiveform.shital.UploadDownloadformComp
TravelRequest.pdf";
/* CONVERTS BINARY FILE TO A BYTE ARRAY */
try{
File file = new File(Filename);
FileInputStream in = new FileInputStream(file);
ByteArrayOutputStream out = new ByteArrayOutputStream();
int length;
byte[] part = new byte [10 * 1024];
while ((length = in.read(part)) != -1 )
out.write(part, 0, length);
in.close();
wdContext.currentContextElement().setPdfsource(out.toByteArray());
}catch(Exception e) {
throw new WDRuntimeException(e);

Similar Messages

  • Save the Adobe form to backend system(R/3)

    Hi all
      I have created the simple Adobe form which having button 'save '. when i click the save button the form save to the database(not the content of the form)how can i do this
    urgently
    thanks

    Hi vijay,
    I hope this link will help you.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/7d646a6c-0501-0010-b480-bf47b8673143?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#15 [original link is broken]
    Regards
      - Vinod

  • Save the PDF Form with Field Name

    HI Guys,
    I have the Requirment in PDF Form.The PDF Form is generated with the Adobe Live Cycle Designer.After generating the PDF Form the user filled the details in the form and save the filled form.while clicking the Save button the default PDF name is displayed in the File name box.The Requirement is iam having one field in the form.The Field name value should needs to displayed in the File name box during saving.Is it possible.Once its possible please let me know.This is needs to be delivered very shortly.
    Thanks & Regards,
    SatheshKumar R

    You can save the form with name generated from a field's value, but therefore you will have to install a folder level script first and design a custom save button in your form.
    You cannot do this with the applications save or save as... buttons, and you also cannot rename a file on submit.
    Here's an example form and a folder level script. (Maybe to complicated fdr newbies)
    http://thelivecycle.blogspot.com/search/label/Save

  • Read all rows in static table defined in the adobe form using webdynproABAP

    Hi all,
    The requirement is i have to display the 5 empty rows using adobe forms in the table format and retrieve the data from that 5 rows after user enter some value and post it in the database table. This is the part of my requirement.
    I have done the designing part in interactive form and coding in WD using ABAP.
    For that, I defined table in the adobe forms where in the DATA subform I have given Min count value is 5 instead of 1(selected the check box - repeat each item... also). I am able to display 5 empty rows successfully. After enter values in 3 rows and press SAVE button i am getting only first record but not all 3 records.
    I have written the code for SAVE records in WD using ABAP. I am using this method "get_static_attributes_table" for getting all records.
    Please help me resolving my issue.
    Thanks in advance.

    Hi,
    In the WDDOINIT method, create an internal table with 5 empty rows and bind it to the context using the method Bind_Table.
    Then try executing your program, this should work.
    If it doesnt , do let me know.
    Regards,
    Runal
    Edited by: Runal Singh on Jun 11, 2009 3:00 PM
    Edited by: Runal Singh on Jun 11, 2009 3:08 PM

  • Cannot save the Interactive form downloaded from abap webdynpro application

    Hello Everyone,
    Can anyone help me here.
    I have created an interactive form in SFP tcode and used in abap webdynpro application.
    scenario is i can downloade the form,fill it, sign it,save it and submit the form.
    Some thing is going wrong when i try to sign the form downloaded from the application.It is giving the error ->
    The document could not be saved. there was a problem in reading the document(26).
    When i try to sign the form save as dialog box will come where we can save the filled form.but here when itry to save it is giving above error.and also i cannot save thye form form file option.
    but form is working fine from sfp tcode not form application link.
    What is going wrong.Can somebody please help me here.
    Regards,
    Menaka.H.B

    Check the enabled and readOnly property of the InteractiveFormUI element in your application.
    enabled should be true and readOnly should be false.
    Also just FYI interactive forms are licensable in Productive environment for which you need Adobe Credentials. You may contact SAP Account Manager and Note 736902 for it.
    Chintan

  • Handling Submit Button on the ADOBE form called from Web Dynpro

    Hi,
    I have placed a Button on the ADOBE Form. How to Handle the event on this button. When i click this button, i want to save the details of the form into a Custom table.

    Hi Majunath.
    Create an event say, SUB_EVTin the view in WD where you have the Interactive Form UI element.
    Bind this event to the onSubmit of the Form.
    Now check the display type of the form. It will be either ActiveX or Native.
    Now go to the form designer and open Library palette. Navigate to Webdynpro ActiveX or Native Library(Depending on the form display Type in WD).
    Drag and Drop Submit button.
    On click of the button, the event handler in WD view namely, onActionsub_evt will be invoked. You can write your code in this handler.
    Now in order to read data from the form. Go to the form and go to Properties tab. Check the form layout type. If it is not ZCI, run transaction SFP_ZCI_UPDATE and convert the form to ZCI type.
    Now back to the event handler.
    as an example... I will use the following context node definitions
    PDF_DATA  1..1
      ACTUAL_DATA 0..n
        ATTRIB01
        ATTRIB02
    Assume the the node PDF_DATA is bound to the data source of your form.
    Now in the event handler write the foll code
    data: lo_node type ref to if_wd_context_node,
            lt_data   type wd_this->elements_actual_data.
    lo_node = wd_context->get_child_node( name = wd_this-.wdctx_pdf_data ).
    lo_node = lo_node->get_child_node( name = wd_this-.wdctx_actual_data ).
    lo_node->get_static_attributes_table(
      importing
        table = lt_data ).
    This will get all the form data in the internal table lt_data.
    Now you can process the data the way you want and save it in your custom tables.
    Regards,
    Reema .
    Edited by: Reema Shahbazkar on Sep 16, 2008 11:39 PM
    Hope this helps!!

  • How to merge data to the adobe forms

    Can any one tell me the solution to merge data to the adobe form created using adobe life cycle designer. Here i want to merge data in the server side and send the resulting forms to the users

    Hi,
    You are correct, You can load the Data from ODSA / ODSB to ODSC.
    1. Create the ODSC which are include the fileds A,B,C,D,E.
    2. Create the Transfermation from ODSA to ODSC> Give the Propermapping with A,B,C,D> Save and Activate the Transfermation.
    3. Create the another Transfermation from ODSB to ODSC--> Give the mapppings with A and E only, then save and activate the Transfermation.
    4. Create the two DTPs for indevidual loading data from ODSA>ODSC and ODSB>ODSC.
    You can see the Data from ODSC by selecting Manage.
    Regards.

  • How can I save filled Adobe Form?

    Hallo experts,
    I use Adobe Forms in my Webdypro application.
    In Form setPDFSourse set dynamically (read from SAP as byte[]) , I do not know the Context.
    How can I save filled Adobe Form, because I must show the Form by next Step in anothe window? 
    Thank you very much!

    This sounds to me like a client-side problem whith adobe reader plugin in your browser. What is your reader version?
    You can try the following to check if there is any content in the byte[]:
    String s = wdContext.currentContextElement().getPdfData().length + "";
    byte[] test = s.getBytes();
    final IWDCachedWebResource resource =
                   WDWebResource.getWebResource(
                        test,
                        WDWebResourceType.TXT);
    try {
         final IWDWindow window =
         wdComponentAPI.getWindowManager().createExternalWindow(
              resource.getAbsoluteURL(),
              "Window title",
              false);
         window.open();
    } catch (Exception e) {
         wdComponentAPI.getMessageManager().reportException(
         new WDNonFatalException(e),
         false);

  • How to use the separate symbol in the text field in the adobe form.

    Hi,experts,
    I don’t know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
    Action:
    1. config the ADS successfully.
    2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
    3. create a WDA for invoke the form and transfer the 'remark' context data.
    I use the following codes to display the paragraph in the PDF document:
    CONCATENATE
    '1、aaaaaaaaaaa;'
    '2、bbbbbbbbb '
    '3、ccccccccccc'
    '4、ddddddddd'
    INTO remark .
    lo_nd_z_hr_php_payslip->set_attribute(
    EXPORTING
    name = `REMARK`
    value = remark ).
    But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
    Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
    My email is : [email protected]
    Best regards,
    Tao
    Edited by: wang tao on Apr 8, 2008 1:58 AM

    Hi,
    If it is just a one word value then you could use this in the exist event;
    this.rawValue    
    = util.printx(">?<*",this.rawValue);
    This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
    If you wanted something more general ... if they could also enter a middle name then you could call a function like;
    function        toTitleCase(textValue)
      return  textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
    This uses a regex to change all lowercase letters following a word boundary to uppercase.
    Bruce

  • Error in opening the adobe form to create a PCR

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

  • Access the adobe form data in the workflow container for further processin

    HI,
    I am using HCM processes and Forms. I need to access the form data in the workflow container once the workflow kicks off.
    I need to access these data as would need it for further processing in the workflow.
    I know that TS17900110 allows to import form conatiner to
    -> WF Container in the field name and value pair. But I need to access a lot more fields than what is in the task. Is there a standard task which allow to retrieve all the fields in the form in one task or do I need to develope a custom class to do that. If so could you please provide some clue as in how to code this specific requirement as i am somewhat new to OO ABAP.
    Thanks...

    hi,
    in the livecycle designer under libary tab u have webdynpro tab--->choose submit to sap button and place it in the adobe form ur designing. u can use this button to trigger the code that u have written in webdynpro java.
    for eg if u have
    a value node details
    and under that two value attr fname,lname
    import the model (Insertdata---it has two import param fname and lname)u need for updating the data to r3 system.
    in the ctrller have a method submit.Here write the code to insert fname and lname into the db.
    IPrivateMyForm.IDetailsElement elem = wdContext.nodeDetails().currentDetailsElement();
    Insertdata_Input input = new Insertdata_Input();
    wdContext.nodeInsertdata_Input().bind(input);
    input.setFname(elem.getFname());
    input.setLname(elem.getLname());
    try
    wdContext.currentInsertdata_InputElement().modelObject().execute();
    wdContext.nodeOutput().invalidate();
    catch (Exception ex)
    { ex.printStackTrace();}
    ul bind details to the datasource.
    when u edit ur interactive ui element these attr(fname and lname) vl be visible under dataview tab u can drag and drop them to the form
    now add submit to sap button in ur form.
    this button correspond to the onactionSubmit dat u have written in the ctrller.
    so wen u click this the data vl be inserted
    Regards
    Jay

  • Calling the Adobe form in a workflow step for Approval

    Hi All,
    We are creating a PCR scenario using Adobe forms for "Employee seperation". This form will require 7 subsequent approvals from various agents which is to be handled using a workflow.
    I had gone through the ISR cookbook and managed to create a scenario. I have also assigned it to a PDF form and a dummy workflow. Now from my PCR iview i am able to submit the form for my scenario which also triggers the dummy workflow(through the BUS7051-CREATED event).
    Right now this dummy workflow just sends a mail(by sendmail step) to the first approver. Now i want this workflow to send a workitem to the first approver for approval of this form which will have to appear in his UWL. When the approver double clicks on the workitem in UWL he should be able to view the form along with Approve/Reject/Cancel buttons. I am not aware how to do this. My questions are,
    <b>Is this handled by a decision step or an activity?
    If it is an activity step which Task/Business object method is used to handle this?
    If it is a decision step how do we make the Adobe form also to be displayed along with approve/Reject buttons?</b>
    We are using ECC5.0 and EP6.0.
    Thanks in advance for any help.
    Prasath N

    Hi Rajasekhar,
    The UWL issue has been resolved now and i am receiving the workitems in my UWL. But i am getting the following error when i am trying to execute the workitem from my UWL.
    <b>Service cannot be reached
    What has happened?
    URL http://xxxxxxxx.xxxx.xxx.xxx:8000/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrFormApprove call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system xxx with error code 404 and for the reason Not found.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:DALSPHSB_HSB_37-v:0-s:404-r:Notfound
    HTTP 404 - Not found
    Your SAP Internet Communication Framework Team
    </b>
    I have done the following configuration settings in SWFVISU transaction :
    Task : TS500000075
    Visualization Type : WebDynpro Java
    visualization parameter: Application
    visualization Value: IsrFormApprove
    visualization parameter: Package
    visualization Value: sap.com/pcui_gp~isr
    Is there anything else that i have missed out in the configuration?
    Message was edited by:
            prasath natesan
    Message was edited by:
            prasath natesan

  • Place the Adobe Form as PDF file in a URL

    Hi Experts,
    I have created an Adobe form and got the PDF data in the form of XSTRING now I need to place this as PDF file in the URL which I have generated programmatically. Not sure on how to do it. Any function modules or classes to place this as PDF file at a URL will be really helpful for me.
    Tried with HTTP* function modules and seems they are not working.
    Thanks for you help.
    Regards,
    Srinivas

    Hi Sai,
    Thanks for ur input.
    My requirement is not exactly the string with XML data, but the string with PDF data.
    I will try to explain my requirement here in detail.
    I have the adobe form triggering from the webdynpro. This form has different objects like, text fields, dropdowns, check boxes, radio buttons...etc and one SUBMIT button for which webservice is attached in the properties.
    User will fill all the fields and clicks on SUBMIT. When he clicks on the SUBMIT, the webservice should attach the filled PDF document at partner level.
    For this purpose, i need the string with PDF data and not the XML.
    WIth this PDF string again i should be able to re generate the PDF document which was filled by the user.
    If string with PDF data is not possible, Please suggest me the possible way of achieving this?
    Regards,
    Ram.

  • Error when activate the Adobe forms

    Hi,
      I am getting the below error message when activate the adobe forms,and the message tells that to install a forms design tool,please tell me which tool in need to install and where i will get this tool.
    Could not start Layout Designer (see long text)
    Message no. FPUIFB086
    Diagnosis
    The forms design tool for developing the form layout could not be started; either it is not installed or there are errors in the installation.
    Procedure
    Make sure that you have the forms design tool installed on your desktop (the tool is part of the SAPGUI installation).
    Also read SAP Note 801524.
    Thanks,
    Deesanth.

    FIrstly, you have posted the question in the wrong forum. There's an entire forum in SCN only for Interactive Forms: .
    Secondly, this is a frequently asked question, especially in the Interactive Forms Forum. There's enough information there to get your query solved by searching.
    pk

  • Error during the adobe form activation

    hi all,
    when am i activate the adobe form layout (Zlayout) , the following error message occured:
    Error during activation
    Message no. EU837
    but iam not found any syntax error in layout development.
    please help in this it very urgent....
    Thanks,
    Ramana

    Hello Sir,
    You need to apply the note 1047930, After this the problem should be resolved.
    Thanks and Regards,
    Deepak...

Maybe you are looking for

  • XML Data into oracle table

    Hi All, I am trying to insert data into oracle 9i temp tables using the following style. but getting error as ERROR at line 3 ORA-00933 SQL command not properly ended Please assist me. INSERT INTO emp (empname,empno) SELECT * FROM XMLTABLE ( '/EMP/CO

  • WL5.1sp8-NSAPI-IE-Status bar shows page is loading for minutes

    I'm using WL5.1sp8, NES4.1sp6 on a Solaris 7 to deliver JSP pages over https. I notice that the status bar on the bottom line of IE5 (windows NT) indicates that the page is still loading for minutes, even though the page appears to be complete. What

  • Why I can't start firefox like this?

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/960958]] </blockquote> I put " "C:\firefox\firefox.exe" -osint --no-remote -profile "C:\firefox\profile" -url "www.google.com" " in cmd.exe ,why my firefox can't start?

  • BLOB data

    I am trying to delete the data from table and reclaim the BLOB space. Can someone shed some light on best procedure to do that? Oracle 11gR2

  • Mac OS X version 10.6.8. I keep getting "blocked plug-in" messages. Adobe Flash player update won't upload. Suggestions?

    Mac OS X version 10.6.8. I keep getting "blocked plug-in" messages. Adobe Flash player update won't upload. Suggestions?