Updating data in adobe form

Hi All,
In my java webdynpro application, i want to show an adobe form and allow the user to update the data. Then, i want to store the form in binary in a db table.
The layout of my form is not fixed as a different form can be uploaded each time. So, all i have is the binary of the interactive form.
I have added the interactive form uielement in my view. I have bound the 'pdfsource' property to a context attribute that contains the binary of the interactive form to be shown. Also, i have chosen 'usepdf' in the mode.
Now, after the user updates the form, if i read the context attribute bound to pdfsource, will i get the updated data in the form? Or should i do anything more to get the desired result?
Thanks and Regards,
Ram

Hi Ram,
In my Project we solved the same type of situation in following Procedure.
1.) First after the User enters data in to the Form u hav to read it from the PDF
      by using this code .It converts the Data in to XML Format.
public String getData(String pdfSource) throws EJBException
ByteArrayOutputStream pdfSourceOutputStream = new ByteArrayOutputStream();
try
   InputStream pdfSourceInputStream = new FileInputStream(new File(pdfSource));
   IOUtil.write(pdfSourceInputStream, pdfSourceOutputStream);
   pdfSourceInputStream.close();
catch (Exception e)
   System.out.println(e.getMessage());
   throw new EJBException(e.getMessage());
IWDPDFObject pdfObject = WDPDFObjectFactory.getPDFObject();
pdfObject.setPDF(pdfSourceOutputStream);
ByteArrayInputStream dataInputStream =                                      (ByteArrayInputStream) pdfObject.getData();
  if (dataInputStream == null)
    return(null);
  else
    try
      String output = formatData((InputStream) dataInputStream);
      return(output);
    catch (Exception e)
       System.out.println(e.getMessage());
       throw new EJBException(e.getMessage());                                 
2.) Then u can get the data from tht XML code easily & store it in the Data Base where u need.
--> For more Details watch the " TutWD_PdfObject " Sample Application from this site .
I Think It helps u lot.
With Regards,
Roop Kumar.

Similar Messages

  • UPDATE DDIC USING ADOBE FORM

    Hi ALL,
        I  am new in adobe forms , i have a problem that i want to show some require fields related to vendor master data on adobe forms then i send it to vendor who fill the adobe forms and send it back then i want update DDIC as per the adobe forms .
    Thanks in advance.
    Regards
    Anirudh

    Anirudh,
      Go through the following tutorial to connect to the back end using RFC and displaying/updating the data in R/3
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    and goto the section Online Interactive PDF Form
    Thanks
    Surya.

  • Updating data in Web Forms

    Hi,
    I would like to know if it's possible to update data in web forms :
    * periodically (every 10 seconds for examples)
    * from the server (in a trigger or something like that) for all clients connected
    Thanks

    Taz,
    for the first a timer could do that. The second is not possible without having asynchrous message support in Forms. There are plans for such a feature but its not yet implemented
    Frank

  • Group by colum wise data in adobe form

    Hi,
      I have a requirement to print data in adobe form thru webdynpro for abap.
    example; i have a table data getting from webdynpro like below.
    date               empno   activity.
    11-11-2008     p101       x1.
    11-11-2008     p101       x2.
    11-11-2008     p102       z1.
    12-11-2008     p110       z2
    12-11-2008     p111       z3
    above table data i need to print in adobe form like this.
    date :  11-11-2008
    empno       activity
    p101           x1.
    p101           x2.
    p102           z1.
    date : 12-11-2008
    empno        activity
    p110             z2
    p111             z3
    please tell me how can make this
    Thanks
    Murali Papana
    Edited by: murali papana on Nov 14, 2008 1:47 AM

    Hi,
    After creating new data connection in the Lifecycle designer, all the attributes in the web service will appear in the 'Data View'.
    Drag and drop a DropDownList from the library palette
    Add the static values and texts to it
    Select the UI element (DropDownList) within the form designer.
    Goto Object palette --> Binding
    select Import/Export Bindings (Execute):
    Select data connection and give the binding attribute.
    Thanks & Regards,
    Sanoosh

  • Getting data in Adobe forms

    Hi,
    what are the ways to get the custom field data into adobe forms. I want to use in WD application.I made the zpdf form with standard and added some custom fields in that. But how to get the data from table .
    Thanks

    hi,
    ->For getting data from table into Adobe Forms, you need to add code in your WD application only.
    -> You create an UI Element (Interactive Form) for the adobe forms in the Layout.
    -> Give the name of your form (Zpdf) in the Template Source property.
    -> A pop up will appear asking you to make contexts in your application by its own.
    -> Click on Ok and then context will also appear in your Wd application.
    -> Now you can use the context and write the code for getting values in Wddoinit or anywhere you want.
    -> Write select/query or call a FM to fetch the data into an internal table.
    ->Finally bind the internal table with the Contexts created.
    Check out this link :
    /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
    I hope it helps.

  • How  to update image in adobe form

    Good Day
    I am trying to update image in adobeform. i used object library->image->and double clicked it and i got a popup and given the path. i got my image there
    but when i am running my adobeform in url  I am unable to see the image on it.  is it  because the path is from my desktop.  there is no binding done with any field on the context of adobeform.. do i need to upload the image in se78 and then do binding....
    pls help
    Regards

    hi battula,
    1.upload the image in se78
    2.Get the xstring of image by function module
    data img_ x_string type  xstring.
    data img_string type string.
    CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
       EXPORTING
         p_object       = 'GRAPHICS'    " SAPscript Graphics Management: Application object
         p_name         =  'LOGO'   " Name of image
         p_id           =  'BMAP'   " SAPscript Graphics Management: ID
         p_btype        =  'BCOL'   " SAPscript: Type of graphic
       RECEIVING
        p_bmp          =    img_x_string.
    and convert this xstring to string by function module
    CALL FUNCTION 'SSFC_BASE64_ENCODE'
                     EXPORTING
                       bindata                        = V_FIELD
    *                BINLENG                        = BINLENG
                    IMPORTING
                      B64DATA                        =  img_string.
    *               EXCEPTIONS
    *                 SSF_KRN_ERROR                  = 1
    *                 SSF_KRN_NOOP                   = 2
    *                 SSF_KRN_NOMEMORY               = 3
    *                 SSF_KRN_OPINV                  = 4
    *                 SSF_KRN_INPUT_DATA_ERROR       = 5
    *                 SSF_KRN_INVALID_PAR            = 6
    *                 SSF_KRN_INVALID_PARLEN         = 7
    *                 OTHERS                         = 8
    3.bind the img_string to imageField in  adobe form ..
    if you want to update image then update image in se78 keeping name same.
    4.and write also javascript code
    on initialization event of ImageField
    this.access = "readOnly";
    hope it will help.
    regards
    Jitendra..

  • One section data of adobe form is not read by web dynpro code

    Hi,
    I am facing problem in adobe form integrated with web dynpro. Form is having Java script. There is a section in the form related to settlement rule of wbs. It can be added in the form by pressing add record button.
    When I use this form offline and press add record and one section is added. I fill the data in those two section and upload on the portal to process online data in the second section is not reaby the code whereas in the first section is present there.
    But if the same activity is performed online data is properly read by the code.
    Could you please assist if there is any issue of saving data in the form offline and how it is handled in offline form.
    Thanx..

    Hi ,
    Try this.
    I think  you have corresponding context node is in the WDP. using  'APPEND INITIAL LINE TO'  just add  some blank data to the context. .
    Inside the form, create a table  for the context node. so at  run time all the empty entry will be displayed. Make this Table as hidden.
    Create another  Table that will display all the non empty row from  the above hidden table. When ever  we add / delete rows, the corresponding entry will update the hidden table. or else you can update the  hidden table on the click event of SUBMIT .
    Hope  this will help you.
    Regards ,
    Shaira

  • Update fields from Adobe Form to Table

    Hello,
    I want to integrate Adobe Form into Webdynpro ABAP Application in which I want to have 2 fields which need to be updated to a DB Table.
    For this first I created an Interface in Transaction SFP , added 2 import parameters of type <Table Type>-<FieldName>. Then I created a Webdynpro Component created a new I Interactive Form UI Element and binded the Context of the Form to the Interface.
    Then I added 2 fields to the form from Data View . Everything is fine but when I run the Webdynpro Application the fields are not available for Input.i.e. They are in the ReadOnly Mode.
    The 'enabled' property of the Interactive Form is checked.
    Please help.
    Any help would be highly appreciated.
    Thanks.
    Edited by: SAPEPDeveloper on Feb 7, 2011 11:45 PM

    Hi,
    The process explained is ok, but I can explain you a better way.
    1) Create the webDynpro Component first.
    2) Create the context nodes as per the requirement.
    3) From the 'integration' panel drag and drop the Interactive form UI element into the view.
    4) Bind dataSource to root context node.
    5) Check enabled property true.
    6) Give a template source name (ZName).
    7) On double clicking the template source, system will prompt you to enter the interface name. Map context node to the interface.
    8) Interface gets created automatically and the lifecycle designer gets opened.
    9) Goto the properties tab and give layout type as 'ZCI Layout'
    10) Drag and drop required fields from the data view to the layout designer.
    11) Insert webdynpro script from the Utilities
    12) Edit -> Form Properties -> Defaults -> XDP Preview Format should be dynamic
    13) Drag and drop 'Submit Button' from Library palette -> Webdynpro native controls
    On clicking the submit button at runtime you will get the control in the webdynpro submit event.
    Above all these you have to check with your basis team, that the 'usage credentials' have been applied while configuring the ADS. Go to SE38 and run the program 'FP_TEST_IA_01' and check whether it is giving an error message or not.
    Hope this Helps.
    Thanks & Regards,
    Sanoosh

  • Update SAP from Adobe forms

    Hi all,
    I use BAPI with web service to update several line items (e.g. of a PO) from a table in Adobe forms to SAP.  I expect that all the occurrences of the line items to be transferred to the func mod. via the defined table interface, but only the last line got transferred and the others seem to be overwritten.  I have tried adobe fixed and dynamic tables but that did not change the outcome (In another application, I'm able to display all line items from func. mod. to Adobe form).  Question : What do I need to do to have ALL the line items transferred  from Adobe form to the func. mod. ?            
    Components used : Designer 7, SAP ECC 6 level 9 .
    Please, provide help with concrete and proven information only.
    Best regards,
    Nancy

    Hi Vaibhav,
    Thanks for the reply.  I use table and not structure but somehow all the records did not get transferred.  So far i've been able to get the data to and from SAP without web dynpro and hope to be able to get this scenario to work as well.
    Regards,
    Nancy

  • How to refresh the data in Adobe forms

    Hi,
    I have created an Adobe form through SFP transaction and a print program which passes data to the form through an internal table. The probelm is, first time the data is getting printed perfectly as per the internal table, but next time when I again run the program for new set of data, the form doesn't display the current data. It still has previous data in it, though the internal table contains the correct data. Can any one tell me why this is happening? Is there any way to refresh the adobe form data?
    Thanks in advance,
    Kiran

    Hi,
    Your Try and check this statement program level...
    FREE <itab>
    Regards,
    Ansari.

  • Read table data from Adobe Form in WD method

    Hello,
       Context is like this :
       ADOBE_DATA        --- Node
             POS                  -
    Node   which has Dict. Stru : TABLE  card : o..n
                   POSNR       --- Attribute
                   MATNR       -
    Attribute
    Created Adobe Interactive Form through the template source of view layout.So xml schema generated automatically
    and is all ok.
    Method on action Submit :
    DATA :
    Node_zatodv_pos       type ref to If_Wd_Context_Node,
    it_zatodv_pos TYPE STANDARD TABLE OF zatodv_tab_pos.
    Node_pos =
                 Node_Adobe_data->get_Child_Node( Name = If_MAIN=>wdctx_POS ).
      Node_pos->get_static_attributes_table( importing table = it_zatodv_pos ).
    When I test the application,this method returns SY-SUBRC is 0 but internal table is "always empty".
    I have also individual attributes in the context which are read correctly.Only get_static_attribute_table doesn't read the table content.Please could any one help me where would be the problem.
    Thank you

    Hi peter,
    If you are trying to add data to a standard SAP table then you should use a FM or BAPI for that but if the table is not standard then you can use following steps but it would be better to do it using FM or BAPI.
    Do the following(without FM/BAPI):
    1. Crate a context in your view mapped to the fields of the database table.
    2. Now use this context as the data source for the form.
    3. Map the fields of the form with the attributes of the context.
    4. Now create a button on the form or on your view which has a action event handler method.
    5. In the method use code wizard to read the context attached to adobe form. By default it will create a structure containing data, which will be sufficient for adding one record at a time.
    6. Now use this structure to add data to table using SQL queries.
    Do the following for FM/BAPI integration:
    1. Create a FM/BAPI which has the functionality to add data to your SAP table.
    2. Now use service call to add the FM/BAPI fields as a context to your web dynpro component's context.
    3. Now map it with the view where the adobe form is created.
    4. Follow steps 2nd, 3rd and 4th as above.
    5. Now in your Action method use code wizard to call the method created by service call to FM/BAPI.
    This will work as required.
    Please reward points if useful.
    Regards,
    Vaibhav Tiwari.

  • Problem with data in Adobe Forms - partially displayed(first pade only)

    Hi all .
    I only start work  with Adobe Forms so I need your help .
    My form includes   table with lot of data .
    My problems are:
    1.only the first page with data is displayed and I don't see the rest  of data .
           What I need to define  for get all my data printed ?
    2. How can I print total at end of  table ?
                 Regards Helena .

    select the subform where your table body present , there you choose the pallete object inside you need to set.
    if you still have doubts see these blogs
    Adobe Forms Using:  Nested Table, Text Module & providing the functionality of Page Total & Grand Total
    Displaying Internal Table in Adobe Form

  • Input data in adobe form not geting saved to desktop

    Dear All,
    I have adobe form incorporated in a wed dynpro component. It's an interactive form and user has option to fill in details in the form. There is a submit button which user can click in order to submit details. This submit in turn does posting. Method is written in wed dynpro view for validation and posting.
    My problem starts here, when user has clicked on submit and posted, posting happens and finally the data is present in adobe form with the new PR no crated. When i try to save this form in my desktop it saves a blank form and not the data which is present in it. However if i don't click on submit and save the pdf with the manually entered values it save properly with the data.
    Please help in getting to bottom of this issue. One point, i have no idea about adobe forms, so pleae let me know for some obvious case as well.
    Thanking everybody in advanc.
    Regards,
    Saud

    Thanks for your reply.
    1. I tried finding similar questions but was not able to do so.
    2. Yesterday itself i found out that it's working fine for some users but not for others. So i am just wondering whether it's a problem related to version of softwares like Adobe or IE?
    I have IE7 and Adobe Reader 9.4
    Please give some inputs, friends.
    Regards,
    Saud

  • Data in adobe form gets cleared when saved to desktop(Form is added in WD)

    Dear All,
    I have adobe form incorporated in a wed dynpro component. It's an interactive form and user has option to fill in details in the form. There is a submit button which user can click in order to submit details. This submit in turn does posting. Method is written in wed dynpro view for validation and posting.
    My problem starts here, when user has clicked on submit and posted, posting happens and finally the data is present in adobe form with the new PR no crated. When i try to save this form in my desktop it saves a blank form and not the data which is present in it. However if i don't click on submit and save the pdf with the manually entered values it save properly with the data.
    Please help in getting to bottom of this issue. One point, i have no idea about adobe forms, so pleae let me know for some obvious case as well.
    Thanking everybody in advanc.
    Regards,
    Saud

    Hi,
    My question still remains unanswered and i have found some observations myself. The thing is if i use any button on the form, and then try saving it saves an empty pdf, however if i do a manual entry it retains the data, and even after submit if i try something to enter maually and then try to save, it saves correctly.
    Please help me with some information.
    Regards,
    Saud

  • Sorting of data in adobe forms

    Hi,
    We have an adobe form designed which picks the data from the backend. In one specific case, a table comprising of different headers with different data, including date is being called.
    My pdf simply displays the data, the way it is stored in the backend. But now I want to display the data, sorting by its date mentioned. Is it possible for the pdf to read the content of the data and display it based on the sorting defined on the layout end?
    I did come across the 'controls' option for the table(under context) and tried adding the field name for sorting based on ascending/descending. But unfortunately, whenever I tried to enter the field name as 'date', it gives me an error saying "component does not exist". I have tried for other fields too, but the same message. This message comes irrespective of the check box for 'already sorted' property.
    What could be the reason for this?
    In the code initialisation of the interface, I heard that there can be a sort mechanism being coded. Is this alternative possible in my case?
    Please provide your valuable inputs.
    Thanks

    You´d better sort the table in the backend (data does not change in the form, as you said, you can do that). If that is your program which prepares the data, change it, if that is a standard, find an exit or repair it or you can do that in the interface. You would maybe like to read my blog about the changes of forms: /people/otto.gold/blog/2010/05/06/how-to-deal-with-sap-standard-adobe-forms
    Otto

Maybe you are looking for

  • Hlp with a query !

    Hi, i have 14 querys on my Oracle 8i Server, I'm trying to optimize my queries, but I need a help !, well ... i speak english bad I have a report ... this has 15 fields ... it's about deposits ... for example .. one field represents one query ... i n

  • Any function modules or user exit for confirmation mail

    Hi,     I am in SAP system , there is data distribution happening with SAP and non SAP system through middleware XI system. pls help me suppose there is an error happens how SAP can send an email to nonsap system or suppose data updated it should be

  • Preview crashes every time I try to print! Help!

    Every time I try to print from preview, it crashes. It says, "Preview quit unexpectedly while using the EF472831 (FF) plug-in." I have tried updating the printer drivers, reparing the permissions in disk utility and reparing the disk. Nothing so far

  • How can I reduce (or remove) camera shakes in a video with Premiere Pro CS5???

    I want to reduce (or remove) camera shakes in a video with Premiere Pro CS5. Is there an build-in plugin I can use, or do I have to  download / buy one? Thanks.

  • How to custom table field to be sortable at core form

    Hi, Can anyone provide the hint for the captioned topic. Example, R11i PO autocreate document form, column 'Requestor' is not sortable, how to custom it to be sortable? Thanks in advance. Rgds, CY