Read values from Adobe Interactive Form inside the webdynpro

Hello,
I have problems to read the values of the fields inside de adobe. I read an article on saptechincal that told:
You can see the Adobe form that we have designed, enter the data as shown below and press the submit button. (As I said earlier an activex control will be installed on to the client machine, you can see the activex control in the internet explore go to the menu: ToolsàInternet optionsàgo to the programs tab àPress button Manage add-ons.
You can see an activex control named u2018SAP ACFu2019, if you donu2019t have this control you will not see this page: Note you need to have adobe acrobat reader 7.1 installed, I have used version 9, the activex control was not working properly so down graded my adobe reader to 7.1)
This is true ???  I have the Acrobat reader 9.3 and i saw that also have the SAP ACF installed.
The value of the property displaytype  on adobe interactive form on webdynpro is activeX or native.
Thank you in advance.

Hi,
<p>
Thank you for the answer.
<P>
I change the value of the attribute but again i can read anything from the adobe form. So let me explain what i'm doing.
<P>
Objective: I have to create one webdynpro with an adobe interactive form for create new clients on r/3 system.
<P>
1. I create de the view with 2 elements an interactive form and one submit button.
<P>
2. Create the context of the view with the following tree:
<P>
> context (node)
<p>
   > ADOBE_DATA (node)
<p>
      > Clients (from KNA1 table) (node)
<p>
         > KUNNR
<p>
         > LAND1
<p>
         > NAME1
<p>
         > ORTO1
<p>
         > TELF1
<p>
  >PDF_SOURCE
<p>
3. Complementing the properties of the interactive form:
  datasource = clients node of the context
  displaytype = native
  pdf_source = pdf_source attribute of the context
  templatesource = name of the form
<p>
4. Create the form, and add the data source to the interface of the form
<p>
5. On the form bulider i add and subform on the hierarchy tab and the all the fields of the interface to the form and
automatically the value of the fields are binding.
<p>
6.Add a submit button from web dynpro native and add the event click to the button. Then i change the value of the layout type and save e activate the form and the interface
<p>
7. The next step is create an action for the button submit for the event  "onSubmit". So i create the function and start coding this code:
<p>
DATA: adobe_node    TYPE REF TO if_wd_context_node,
<p>
        client_node   TYPE REF TO if_wd_context_node,
<p>
        client_element TYPE REF TO if_wd_context_element,
<p>
        client        TYPE if_create_client=>element_clients.
<p>
*Get reference to the adobe_data node from the context
<p>
adobe_node = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
<p>
*Get reference to the clients node from the context
<p>
client_node = adobe_node->get_child_node( name = wd_this->wdctx_clients ).
<p>
*Get element node
<p>
client_element = client_node->get_element( ).
<p>
*Get the values from the form
<p>
client_element->get_static_attributes(
<p>
    IMPORTING
<p>
      static_attributes = client ).
<p>
8. Then for finalize i add the view to the window and crate a web dynpro application and put one break point on the submit function event.
<p>
9. Activate and test the application and when the program try to add a reference to the element node always returning a null reference and the application dumped.
<p>
So please help with this situation i can't understand what is the mistake.
<p>
PS: Now i have installed the acrobat reader 7.0.8
<p>
Edited by: miglsilva on Sep 4, 2010 5:50 PM
Edited by: miglsilva on Sep 4, 2010 6:01 PM

Similar Messages

  • Passing value from Adobe Interactive form, to the Webdynpro Application

    Hi,
    I have followed all the tutorials on interactive forms in WD for Java, & am able to successfuly display my context data in an interactive form.
    However, i need help with the following:
    1. Online scenario:
    User has filled details in an interactive form & clicks on the submit button.
    The Data from the form is NOT getting passed back to the WebDynpro application.
    2. Offline Scenario:
    User has filledup a pdf file(form), & has uploaded the form to the webdynpro application, using the file-upload UI element.
    How do i read the data that the user has entered in that pdf file?
    Any help with regard to these two queries, will be appreciated.
    Thanks,
    Hanoz

    1) Online Scenario
    check if the context mapping between UI elements and Context is properly done
    check if the cardinality of the Context is alright.
    2) Offline Scenario
    you will have two views.
    one upload view
    and one interactive form view
    in the upload view use the File Upload UI element.
    in the Interactive Form View.... use the same view which you used to create the offline form, thus the interactive form UI element will already know the structure of data and the context mapping in the pdf file when you upload it.
    Add the following line of code to the
    method wdDoInit.
    wdContext.getNodeInfo().getAttribute
    ("pdfObject").getModifiableSimpleTyp
    e();
    Add the following line of code right
    before
    wdThis.wdFirePlugOutToDisplay()
    in the method onActionShowForm().
    wdThis.wdGetTravelRequestCompControl
    ler().wdGetContext().currentContextE
    lement().setPdfObject(wdContext.curr
    entContextElement().getPdfObject());
    in the interactive form view, change the property of the interactive form.... MODE to usePdf.
    regards,
    -Ag.

  • How to read attachment from adobe interactive form

    Hi,
    My requirement is- vendor should fill all the detail in an offline interactive form and attach necessary documents in the form itself. How can i read the attachments from the form inside my program and how can i store it in SAP. I am using FM ' SMUM_XML_PARSE' to read all the data in the form.
    Best Regards,
    Tofan

    mailForm
    Parameters: bUI, cTo, [cCc], [cBcc], [cSubject], [cMsgBody]
    Returns: nothing
    This method exports the form data and mails the resulting FDF file as an attachment to all recipients,
    with or without user interaction depending on the value of  bUI.
    If it is set to true then the rest of the parameters are used to seed the compose new message window that is displayed to the user.
    If bUI is set to false, the cTo parameter is required and all others are optional.
    You must use a semicolon u201C;u201D to separate multiple recipients in cTo, cCc, cBcc parameters.
    The length limit for cSubject and cMsgBody is 64k bytes.
    Example:
    /* This will pop up the compose new message window */
    this.mailForm(true);
    /* This will send out the mail with the attached FDF file to fun1 @ fun . com and fun2 @ fun . com */
    this.mailForm(false, "fun1 @ fun . com; fun2 @ fun . com", "", "", "This is the subject", "This is the body of the mail.");
    Note:
    This is a Windows-only feature. In addition, the client machine must have its
    default mail program configured to be MAPI enabled in order to use this method.
    I had to change the code:
    instead of this.mailDoc :
    var myDoc = event.target;
    myDoc.mailDoc(false, "fun1 @ fun . com; fun2 @ fun . com", "", "", "This is the subject", "This is the body of the mail." );       
    But the outlook new message window still opens...
    Any Idea's?
    Eran

  • Reading attachments from adobe interactive form

    Hi,
    My requirement is- vendor should fill all the detail in an offline interactive form and attach necessary documents in the form itself. How can i read the attachments from the form inside my program and how can i store it in SAP. I am using FM ' SMUM_XML_PARSE' to read all the data in the form.
    Best Regards,
    Tofan

    Hi Ali,
    Thank you for the reply. But i want to read the attachments which are attached inside the adobe forms.
    How to read the form and get all the data i know but i want to extract the attachments which are attached in the form and save it in sap.
    For example- in an adobe form customer is attaching the PAN copy, Registration certificate etc, how to read these attachment from the adobe form and store in sap?
    Regards.
    Tofan

  • Binding problem from adobe interactive form to SAP

    Hello All,
    I'm using SAP NetWeaver Developer Studio 2.0.9 SAP WAS 2004s SP11.
    I'm tried to exercise with document "How To…Create Online and Offline Forms in Web Dynpro for Java" (you can check it this link https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fd2d690-0201-0010-de83-b4fa0c93e1a9). I could run it succesfuly but i have a problem. I couldn't get data from Adobe Interactive form when i click "Submit to SAP" button. All field value return with "null".
    The code is like that;
    public void onActionFormSubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionFormSubmit(ServerEvent)
         String name = wdContext.currentTravelDataElement().getEmployeeName();
         String costcenter = wdContext.currentTravelDataElement().getCostCenter();
         String city = wdContext.currentTravelDataElement().getDestinationCity();
         String country =
         wdContext.currentTravelDataElement().getDestinationCountry();
         wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
         "Form submitted: Employe Name="
         + name
         + " costcenter="
         + costcenter
         + " city="
         + city
         + " country=" +
          country);
    What could be the problem?

    hi Selcuk,
    check what is the cardinality of the node that bound to the interactive form.
    interactive form->properties->dataSource = <xyz node of context>
    goto <xyz node of context> -> properties
    just change the cardinality to 1..1.
    goto
    interactive form->properties...
    check that the dataSource and pdfSource are bound to the right Context nodes/attributes...
    hope this helps...
    with regards,
    -Amol Gupta

  • Calling a WD method from Adobe Interactive Form JavaScript

    Hi all,
    I would like to save the PDF file (into KM) defined by the binary Context Attribute "PdfSource",  when I run a Adobe Interactive Form inside a WD application. And this must be done automaticaly at starting.
    The origin of my problem is that "PdfSource" is not filled-in until the adobe form is completely loaded and ready.
    So i was thinking to use the "form:ready" event of Adobe Inteactive Forms to call a WD method ir order to save the PDF file (into KM) but i do not find the way
    Can anybody tell me if this is correct and how, or should I try another way?
    Very thanks in advance,

    hi
    good
    go through these links, i hope these ll help you to solve your problem.
    https://media.sdn.sap.com/javadocs/NW04/SPS15/wd/com/sap/tc/webdynpro/services/sal/config/api/WDConfigurationConstants.html
    https://media.sdn.sap.com/javadocs/NW04s/SPS7/wd/com/sap/tc/webdynpro/clientserver/uielib/adobe/api/WDInteractiveFormDisplayType.html
    thanks
    mrutyun^

  • Adobe interactive form inside SAP GUI

    Friends,
    We all know that Adobe interactive forms can be called from portals and updated by the users. Is there any possibility that the Adone interactive form can be called inside SAP GUI and updated in the same manner?
    Regards,
    Sam

    Yes you can generate adobe intetractive forms as ABAP report programme outputs. There ares some standards forms available. Please search by FP*.
    Hope i understood yourr question.
    Thanks and Regards,
    Antony John Isacc.

  • Update table after filling an adobe interactive form inside a workflow

    Hi
    I have the following workflow problem:
    I made a webdynpro application that incudes an adobe interactive form. An user fill this form. After filling the form he will press the submit button. The data will be introduced in the  custom table and a workflow will be started.
    Inside the workflow, I attached the form filled by the user. After attaching it I introduce a user decision step in order to see the content of the pdf attachment, modify it and send again. So, the person that will execute the workitem has to open that pdf and fill some additional fields. The information should be updated in the table and then send to other persons. I don't know how to update the table with the new values that are inserted in the form in that decisional step and send the updated form to the other users.
    Thank you in advance !
    Iulia

    Hi Iulia
      You cannot do that through decision step with attachment. You have to do with task registation in      t-code SWFVISU. so the work item will come to UWL once the approver clicks the work item it opens and entered his comments, You have to caputer the comments and pass these comments to the workflow container element from there you update to your custom table. 
    Regards
    vijay

  • Calling BAPI from Adobe Interactive Form

    Hi Guys,
    I have a requirement from my client to work on interface using BAPI for creating Service notification. Idea is that users will fill an Adobe interactive form (AIF) on company INTRANET and as soon as user press a SUBMIT button on the adobe form, BAPI should be called to create a SERVICE NOTIFICATION (Tcode IW51). I have work with BAPIs and I know the BAPI name (BAPI_SERVNOT_CREATE) to create SERVICE NOTIFICATIONS, but not with this kind of interface. Please advice me how to go about it and if some one can share any documentations to accomplish this task.
    Another developer is in charge of developing the AIF and I am responsible for ABAP side .
    Thanks in advance.
    mini

    Hi Mini,
    Kindly check the webDynpro ABAP section of Intercative form homepage. at - https://www.sdn.sap.com/irj/sdn/adobe.
    You can create a portal application and call your BAPI. Other options include - webDynpro Java, calling webservice (if the call can be unsecured). You will be able to call secure web services from adobe forms from future versions afaik.
    Thanks and Regards,
    - anto

  • Calling RFC from Adobe Interactive Form

    Hello,
       After creating and calling Adobe Interactive form from ABAP web dynpro, within the form designer is it possible to call RFC or Business Object method from the form script to get the data back from SAP for specific Click events?

    Yes,
    this is possible, but not through pure RFC, but using webservices and webservice enabled function modules within SAP.
    Technically it is quite simple. Create a functionmodule, and create a webserve from that (all SE37 or SE80 but from WAS 6.40). Generate a WSDL (with the Java tool) and import that into the form that you are designing. From there you can bind the data from the dataset (as defined in the WSDL) to screenfields or treat the data any other way Javascript can.
    BTW. I only managed this so far by using anonymous logins, so with a password and username bound to the webservice (in SICF).
    Hope this helps, regards, Hans Gmelig Meyling

  • Control not going from Adobe Interactive form to ABAP WD Event handler

    Hi
    I am facing an issue with adobe interactive forms and WD ABAP integration.
    The buttons in adobe interactive form when clicked is going round and round and the control is not going to the ABAP code(WD ABAP event handler code whatsoever). I have also set the debugger but the control is not moving to the ABAP code from the adobe interactive form.
    Can anyone help me what can be the issue here and how can I resolve the same?
    Thanks.
    Sid

    Hi Babi,
    In the adobe form layout library Use the Submit(which internally means submit to SAP) button from the Webdynpro Native category.
    Only this button action can connect adobe to web dynpro.
    Whenever we click on this particular button the event will be trigger in the ONsubmit event of interactive form UI element in the webdynpro.There we can write our abap code.Hope this will help you.
    Regards,
    Simi A  M
    Edited by: amsimi on Mar 22, 2011 11:37 AM

  • Using Adobe Interactive Form - Attach The Static PDF.

    Dear Experts,
    Is it possible to attach the static pdf  along with dynamic pdf, which is been created at run time in using NW 7.0 adobe interactive form(Interactive Form UI Element)., If yes then kindly let me know how can be done ..
    Any help will greatly appreciated.
    Thanks
    AB

    Solved my self, converted PDF into image and used that pdf as a static image in Adobe Interactive Form.

  • Send Data back to SAP from Adobe Interactive Form

    Hello friends,
    I created a Adobe Interactive form using transaction SFP.
    This form have a comment field.
    My requirement is user enter comments in this filed and click on Submit.
    It needs to call a BAPI and save data in SAP table.
    thankz in Advane
    regards,
    Sumit Malhotra

    Hi,
    Create an WebService for the BAPI and in the Adobe Form create a New Data Connection of Type "WSDL", while creating the New Data Connection it asks for the Path so get the URL Path of the WebService created for the BAPI and assign it to the New Data Connection and specify the Binding for the respective fields under the "Import/Export Binding" in Binding tab of Object Pallette.
    Thanks and Regards
    Pradeep Goli

  • Possible to run Adobe Interactive Forms in ABAP Webdynpro?

    Hi,
    Thanks all...
    I was request to install Adobe Interactive Forms (Adobe Document Server) and integrate with Web Dynpro web application.
    Would ABAP webdynpro could be fully integrated with Adobe Interactive Forms (Adobe Document Server)???
    How could i proceed with this?
    Anyone can send me guidance regarding this??
    Appreciate yours assisting.
    THANKS!!!
    BR
    Terry

    I required to load JAVA engine in my sys in order to run ADS (Adode document Server) follow the attached procedure?
    to do a java add-in.
    -Run sapinst
    -use option Java Add-in for ABAP in Additional Software Life-Cycle Tasks.
    Please correct me if i was wrong.
    THousand thanks,
    BR,
    Terry

  • How to send mail from adobe interactive form without opening the outlook

    Hello all,
    When the end user press the submit button i want it to send the XML data without opening the outlook or other mail application.
    Is there a way to do this?
    I tried javascript codes to send mail with UI = false but it did not work.
    Thank you all in advance,
    Eran

    mailForm
    Parameters: bUI, cTo, [cCc], [cBcc], [cSubject], [cMsgBody]
    Returns: nothing
    This method exports the form data and mails the resulting FDF file as an attachment to all recipients,
    with or without user interaction depending on the value of  bUI.
    If it is set to true then the rest of the parameters are used to seed the compose new message window that is displayed to the user.
    If bUI is set to false, the cTo parameter is required and all others are optional.
    You must use a semicolon u201C;u201D to separate multiple recipients in cTo, cCc, cBcc parameters.
    The length limit for cSubject and cMsgBody is 64k bytes.
    Example:
    /* This will pop up the compose new message window */
    this.mailForm(true);
    /* This will send out the mail with the attached FDF file to fun1 @ fun . com and fun2 @ fun . com */
    this.mailForm(false, "fun1 @ fun . com; fun2 @ fun . com", "", "", "This is the subject", "This is the body of the mail.");
    Note:
    This is a Windows-only feature. In addition, the client machine must have its
    default mail program configured to be MAPI enabled in order to use this method.
    I had to change the code:
    instead of this.mailDoc :
    var myDoc = event.target;
    myDoc.mailDoc(false, "fun1 @ fun . com; fun2 @ fun . com", "", "", "This is the subject", "This is the body of the mail." );       
    But the outlook new message window still opens...
    Any Idea's?
    Eran

Maybe you are looking for

  • Change BBD in BATCH MASTER through Pisheet

    hi experts, client requirement is that they want to chnage the BBD in MSC2N of FG through PI hseet. once the batch is created in system . they will give the BBD in CO60 that will go and sit in MSC2N. for eg - if BBD is 12.07.2012 . they may give 10.0

  • How to modify the contact persons company address changes

    Hi Friends, My requirement is i want to update the address of the contact person in relationships. Actually when we are maintaining the relationships it is automatically taking the Accounts address in company address field but i wants to maintain the

  • Query multiple data sources via keys (federated query)

    I have a requirement to fetch data from two different databases, one financial and one operational, to make compound measure (a ratio). I need to fetch a value for the number of calls answered in a call centre from one database (we'll call this "Cust

  • JRUN thread number

    Hello, I was looking for logs and the field "threadId". I've found that "JRPP-X" is for JRUN thread and the X is a number. My X increases, about +200 per day for 60k connections... So I'm wondering if it means that there are memory/thread leak or som

  • Two WSDL and one Client Servlet

    All, How do I refer two wsdl in my servlet which is is client side. I am a newbie and referring the example codes. Currently the code I am using is as follows: package org.me.calculator.client; import java.io.IOException; import java.io.PrintWriter;