WebDynpro vs Form

In Abap WebDynpro I use an Adobe Interactive Form. When I press a button on the Form, I should go to a different View. How can I Bind an action from the Dynpro to the form button?
And by pressing another button I should create an Open File menu, where i can browse, and choose a file like in My Computer. The resulting URL should be passed to a Text Field.
Any ideas how to do that?
Thanks,
Peter

Hello Peter,
the WebDynpro ABAP UI element "Adobe Interactive Form" has an event handler
"onSubmit". This event handler (respectively the WD action linked to that) will be called once you press the form button "Send", which  contains the command
ContainerFoundation_JS.SendMessageToContainer event.target, "submit", "", "", "", "");
in the script event "Click", provided that you use the ZCI evironment.
Best regards,
Simon

Similar Messages

  • Getting when importing Dynamic PDF into Webdynpro Interactive form

    Hi Gurus,
    I have created a PDF(It has  text box with multiline) in Adobe livecycle Designer and saved as Dynamic PDF, then I imported into Webdynpro interactive form.If I
    import only first page of the form and run WD application, i am getting
    the output, Still text with expand is not working.
    But If I try to import the form with 4 pages and run the WD
    application, it is throwing the following error
    "The following error text was processed in the system SM1 : WebDynpro
    Exception: SOAP Framework error: SOAP Runtime Exception:
    CSoapExceptionFault : SOAP fault found in SOAP document /Transaction
    system failure in method
    rpData./<ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException
    xmlns:ns1="http://sap-j2ee-engine/client-runtime-error">Transaction
    (100,102).
    Please help me on this.
    Thanks,
    John

    Hello,
    I closed this thread. As you opened two.
    Best regards,
    Dezso

  • How to attach a WebDynpro Adobe form to backend Business Object?

    Hello,
    I would like to know if anyone has created an Interactive Adobe Form, and then after the user has filled it out (online, via WebDynpro view), attach the pdf form to an SAP Document, for example, Order, Purchase Order or Contract?
    I know how to create the WebDynpro Interactive Form, and I then have the pdf object in context attribute of WebDynpro.  But am not sure how to do the next step of taking that pdf and attaching it to the SAP Document.
    Any suggestions or code samples would be greatly appreciated.
    Thanks,
    Colleen

    The interactiveForm UI element has one action called onSubmit.  This action is triggered when any server event occurs within the Adobe Form itself.  So if you place a submitButton from the Web Dynpro Native (assuming you are using ZCI forms) within the form, it will automatically trigger the onSubmit action and WD event handler.
    Here is a video that shows the process -  although it is a little bit older and uses ACFx forms.  You would want to use the new ZCI form approach. The general process for linking the events is the same however.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3

  • How to color the mandatory fields in a Adobe WebDynpro Java form

    Hi Experts,
    How to color the mandatory fields in a Adobe WebDynpro Java form?
    This will avoid any confusion to he end user while filling the form as he would try to type something in field which is set as Read nlybut stil the cursor appears there.
    Regards,
    Shobhit

    Hi Shobhit,
    you can write something like xfa.host.setFocus(<text field name>). to set the focus or
    <text field name>.fillColor = "120,120,123";
    <text field name>.resolveNode"ui.#textEdit").border.edge.fill.color.value="120,150.200";
    to fill the color.
    Refer to adobe dev centger scripting samples to learn more on these.
    Hope these helps.
    Thanks and Regards,
    - anto.

  • Dynamic table in webdynpro interactive form not working. Urgent

    Hi guys,
    I am facing a problem when trying to retreive data entered in interactive form dynamic table.i can get the data entered in non dynamic fields no problem.
    I have a node structure like this
    Root
       Data 1...1 singleton and non tried both
           Table 1...n singleton and non tried both
    In my adobe form i tried adding rows using add instance, and also using add button in webdynpro native. In the same method that adds row i simulated the submit button to create row in WD context! It adds rows but any data entered later is lost. One more thing i have noticed is it sometimes works after adding just one row! Data is passed to context but from next row it doesnt work! What am i missing?
    I also tried adding a button in webdynpro tray and adding the row directly to the context. new row is created in form but any data entered in new rows is lost!
    I am unable to obtain the data entered in Dynamic fields. I thought i would try the xml reading method but the problem is after crating a couple of rows dynamically if i go save pdf locally the new rows are not showing up in the pdf!
    I have seen a post which said using the if_wd_iactive handler to set the form as dynamic but that method is not available in our system! Sorry i am not in front of an SAP system so i cant type exact names!
    I tried using zci update program/ etc etc but i am still struggling at the moment. Any help would be much appreciated! Pls ask if you need more info.
    Regards
    Naresh
    Edited by: naresh dwadasi on Oct 7, 2011 9:05 PM

    problem solved! I had to recreate the form. not sure if i corrupted the webdynpro scripts etc by mistake.

  • DYNAMIC TABLE IN WEBDYNPRO INTERACTIVE FORM TO WDCONTEXT

    Hi,
    I am working with Interactive Form in (Webdynpro Java). In that form i am having Dynamic table. For that Table datas are comes from Bapi.
    In that table i have ADD button to add a row. If i add a row and enter datas in that row means were it should be stored?
    How can i send those added datas to Bapi? There is any possible way in SP12?
    Please let me know if any way is there?
    Thanks,
    Senthil prabhu

    Hi,
    To add a row in dynamic table in interactive form How to create dynamic table in the interactive form
    also check page 11-13 in this docuemnt https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
    after adding it you can send the table data to rfc asusal Problems while setting Multiple Rows of data as Table Parameter to the RFC
    give a lot at this too want to save data
    regards,
    Pradeep

  • DYNAMIC TABLE IN WEBDYNPRO INTERACTIVE FORM

    Hi,
      I am using dynamic table in interactive form(webdynpro java).  In that form i bind node for to populate the details for the table. The details should be come from RFC.
    The RFC contains more than one record. While i tried to populate all the records to the dynamic table i cant able to got all the datas. I got only one record to the table.
        Interactive Form table node structure is:
                Node                                          Cardinality                             Singleton
    vnPDFDataSource                                    1..1                                         true
            chnTableList                                     1..1                                         true
                           chnTableRow                     0..n                                         true
                                   chnRowData              1..n                                        false
                                             attr-1
                                               attr-2
                                                attr-n
    o   The nodes bound to table and row in Adobe form are:
    chnTableList u2013 bound to Table
    chnTableRow u2013 bound to Row   
    If anybody know means let me tell how to solve the problem.
    Thanks,
    Senthil prabhu

    Hi,
    To add a row in dynamic table in interactive form How to create dynamic table in the interactive form
    also check page 11-13 in this docuemnt https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
    after adding it you can send the table data to rfc asusal Problems while setting Multiple Rows of data as Table Parameter to the RFC
    give a lot at this too want to save data
    regards,
    Pradeep

  • Webdynpro PDF forms issue

    Hello All:
    I am facing an issue, with opening pdf forms using webdynpro applcaions, after applyign support stacks.
    I am using linktoaction UI element to display a pdf form which is stored in mimereporsitory, and i am displaying it after getting URL. and by using abap class cl_wd_runtime_services=>attach_file_to_response.
    This was working fine until, our recent support packs, but after support packs are applied, we are getting an error saying
    Unable to open form yyyy.pdf from yyy.yyyy.com .
    Unable to open this internet site. the requested site is either unavailable or cannot be found.
    We applied support stacks both to, abap side and portal side, and we confirmed that issue is comign from portal side.
    One other thing, the applicaiton works fine when i test applicaiton by itself, but the problem arises when the application is opened from portal.
    And the error occurs only when i open portal using IE8, but it works fine IE9, chrome or mozilla.
    We are on the latest SP Stack 10 for Application Server Java on EHP1 FOR SAP NETWEAVER 7.0
    Thanks,
    Ratna.

    Hi Ratna,
    We are having the same issue when downloading pdf with Internet Explorer 8.
    We have EHP1 too, and the WDA works nice without the portal.
    Did you find the solution?
    Thank you.

  • Not able to edit the Webdynpro Adobe Form

    Hi all,
                 I am new to Adobe interactive forms. I have created an small application which includes the text boxes & tables. But when i execute the application I am not able to edit any of the text field values.
    we have done all the ADS Configurations successfully & we tested also.
    If anyone bring me the solution it wwould be more helpful to us.
    Regards,
    Malar.

    Malar,
      Please check the following...
    In the Life Cycle designer, goto Edit -> Form Properties -> Defaults and check in the XDP Preview format if you have "Acrobat 7.0.5 Dynamic PDF" and also in
      Tools -> Options -> Document Handling ->
    Check what do you have in the Default File Type for New forms drop down box and make sure it is : "Acrobat 7.0.5  Dynamic PDF Form File".
    Also try to deploy the Adobe Interactive Forms Tutorial application from(Online Interactive PDF Form) the following URL and see if everything is fine with the tutorial application.
    https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#50
    Thanks!
    Surya.

  • ABAP WebDynpro, Interactive Form, and Repeating Subforms

    Hi Everyone,
    I have a very simple Interactive Form called from ABAP WebDynpro. 
    Main_View Context:
    Node u2013 FORM.
         Cardinality 1..1
         Selection 0..1
         Initialization Lead Selection u2013 X
    Node u2013 SPFLI
         Dictionary Structure - SPFLI
         Cardinality 0..n
         Selection 0..1
         Initialization Lead Selection u2013 X
    Attributes from SPFLI u2013 CARRID and CONNID
    View contains an Interactive Form and a u201CSaveu201D button.
    Form = Z_TABLE_TEST_FORM, Interface = Z_TABLE_TEST_INT u2013 created through forward navigation in Layout so uses XML interface.
    Button u201CSaveu201D has the following code:
    METHOD onactionsave.
      DATA lo_nd_form     TYPE REF TO if_wd_context_node.
      DATA lo_nd_spfli    TYPE REF TO if_wd_context_node.
      DATA lo_el_spfli    TYPE REF TO if_wd_context_element.
      DATA ls_spfli       TYPE wd_this->element_spfli.
      DATA ls_element_set TYPE wdr_context_element_set.
      lo_nd_form = wd_context->get_child_node( name = wd_this->wdctx_form ).
      lo_nd_spfli = lo_nd_form->get_child_node( name = wd_this->wdctx_spfli ).
      ls_element_set = lo_nd_spfli->get_elements(  ).
      IF lo_nd_spfli IS NOT INITIAL.
        lo_el_spfli = lo_nd_spfli->get_element(  ).
        IF lo_el_spfli IS NOT INITIAL.
          lo_el_spfli->get_static_attributes(
            IMPORTING
              static_attributes = ls_spfli ).
        ENDIF.
      ENDIF.
    ENDMETHOD.
    On the Interactive Form, u201CPage1u201D is a main page.  u201CTableParentu201D is a SubForm, flowed layout, in accessibility tab set to u201CTableu201D, and is bound to u201C$record.SPFLIu201D.
    u201CDATAu201D is a SubForm under "TableParent", Positioned layout, in accessibility tab set to u201CBody Rowu201D, and is bound to u201CDATA[*]u201D.
    Carrid and Connid are both Text Fields bound to Carrid and Connid, under "DATA".
    I also added the Insert/Remove/Reposition buttons, but deleted the two reposition buttons.
    The idea was to be able to add 4-5 Carrid/Connid pairs.
    When running this, as configured above, then none of the data entered in the form makes it through to the Elements.  If the context is changed to make the Cardinality 1..n, then a single Element is added u2013 but not the remainder.
    What needs to be done to get this to work?
    Many thanks
    Jack

    Hi Reema,
    None.  For all other fields, they are bound to the context, so the transfer is automatic.
    These repeating fields are also bound to the context, but it appears that an element needs to be created for every repeating form.  How can this be done from the form?
    Cheers
    Jack

  • Comined ABAP Webdynpro Adobe Form

    Hi,
    we're actually investigation the possibility to print out sales representative data
    from ECC to Adobe Forms. This works realy fine. The Idea is to send the pdf's to
    the sales representative which will fill out the forms offline and upload the pdf's via
    Webdynpro to the ECC-System back again.
    The question is now, that we do not get the pdf data back in the webdynpro. I was
    using a howto from sdn to get the upload of the pdf done and the pdf is shown to
    the user for review and then click on the send button. so far so good - the data will
    be send, but i don't know how to handle the data then.
    Has anyone of you an idea??
    Thanks for every hint,
    Mike
    PS: ECC 6.0

    Hi @ll,
    sorry, i forgot to mention the solution.
    The problem exactly was that I didn't know exactly the structure of the adobe
    document and had to update the data in the ECC-System, but I found the
    following sdn thread and  and could have a look at the adobe structure
    and did some xml-processing to get the data.
    The process goes on as follows:
    1. a new contact is being created in transaction VC01N
    2. a adobe interactive form is being send to the sales representative
    3. the sales p. filles out the form and uploads it to a webdynpro app
    4. the wd-app updates the contact in VC01n
    here is the code (maybe not the smatest code, but it works g):
    public void onActionFormSubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionFormSubmit(ServerEvent)
        String xmlData = null;
         try{
              byte[] filebytearray = wdContext.currentContextElement().getPDFObject();
              ByteArrayOutputStream out = new ByteArrayOutputStream();
              IOUtil.write(new ByteArrayInputStream(filebytearray), out);
              IWDPDFObject pdfObject = WDPDFObjectFactory.getPDFObject();
              pdfObject.setPDF(out);
              InputStream in = pdfObject.getData();
              if (in == null) {
                   xmlData = "<empty>";
              else{
                   java.io.DataInputStream din = new java.io.DataInputStream(in);
                   StringBuffer sb = new StringBuffer();
                   String line = null;
                   while((line=din.readLine()) != null){
                        sb.append(line+"n");
                   xmlData = sb.toString();
                   //for debugging only (to see the xml structure before): wdContext.currentVBKAVBElement().setINCLUDETEXT(xmlData);
           catch( Exception ex ){}
           try{
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder documentBuilder = factory.newDocumentBuilder();
              Document doc = documentBuilder.parse(new InputSource(new StringReader(xmlData)));
              NodeList tmpNodeList = doc.getElementsByTagName("VBELN");
              Node tmpTextNode = tmpNodeList.item(0);
              Text tmpText = (Text) tmpTextNode.getFirstChild();
              wdContext.currentVBKAVBElement().setVBELN(tmpText.getNodeValue());
              NodeList tmpNodeList2 = doc.getElementsByTagName("KTABG");
              Node tmpTextNode2 = tmpNodeList2.item(0);
              Text tmpText2 = (Text) tmpTextNode2.getFirstChild();
              wdContext.currentVBKAVBElement().setKTABG(tmpText2.getNodeValue());
              tmpNodeList = doc.getElementsByTagName("KTAEN");
              tmpTextNode = tmpNodeList.item(0);
              tmpText = (Text) tmpTextNode.getFirstChild();
              wdContext.currentVBKAVBElement().setKTAEN(tmpText.getNodeValue());
              tmpNodeList = doc.getElementsByTagName("KTABT");
              tmpTextNode = tmpNodeList.item(0);
              tmpText = (Text) tmpTextNode.getFirstChild();
              wdContext.currentVBKAVBElement().setKTABT(tmpText.getNodeValue());
              tmpNodeList = doc.getElementsByTagName("KTAET");
              tmpTextNode = tmpNodeList.item(0);
              tmpText = (Text) tmpTextNode.getFirstChild();
              wdContext.currentVBKAVBElement().setKTAET(tmpText.getNodeValue());
              tmpNodeList = doc.getElementsByTagName("KTEXT");
              tmpTextNode = tmpNodeList.item(0);
              tmpText = (Text) tmpTextNode.getFirstChild();
              wdContext.currentVBKAVBElement().setKTEXT(tmpText.getNodeValue());
              tmpNodeList = doc.getElementsByTagName("KUNNR");
              tmpTextNode = tmpNodeList.item(0);
              tmpText = (Text) tmpTextNode.getFirstChild();
              wdContext.currentVBKAVBElement().setKUNNR(tmpText.getNodeValue());
    } catch( Exception ex2){}
    Mike
    Message was edited by: Mike
            Mike Fröhlich

  • JAVA WEBDYNPRO : ADOBE FORMS

    Hi Experts,
    Im a newbie in WEBDYNPRO, please suggest where can I read on ADOBE Forms for JAVA WebDynpro. I have a to start learning from scratch. Please suggest some good tutorials and PDF's. Please also suggest if I need to have some special packages installed on my WAS.
    Regards
    Saurabh

    Hi Arjun,
    Warm Welcome to Web Dynpro World!!!!
    For Adobe form I suggest you to go through these Links,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/37/47a2be350c4ac8afe36b691203971f/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/60/6fc10c6748479392101e09c9e8d33a/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/46/55c841d202c317e10000000a155106/frameset.htm
    For Webdynpro Learning Documents,
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/8921447c-0501-0010-07b4-83bd39ffc7be">Getting Started</a>
    <a href="https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro">Webdynpro Java</a>
    <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">Webdynpro Sample Applications ans Tutorials</a>
    https://www.sdn.sap.com/irj/sdn/thread?threadID=139467
    https://www.sdn.sap.com/irj/sdn/thread?threadID=200852
    Very useful
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/1b76bc3da0504e8b535cf3e154eaa7/content.htm
    Value help in webdynpro Applications:
    Please gothrough these documents,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/391ee590-0201-0010-1c89-f1193a886421
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e038cf90-0201-0010-0a9a-ec69262a1564
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cf40cf90-0201-0010-4a85-e5a207b900d8
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2833ce90-0201-0010-f1af-d3cfe1155b16
    https://weblogs.sdn.sap.com/pub/wlg/5508
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58a7e390-0201-0010-abb1-8eec7eb7a2ec
    webdynpro UI's(pdf)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/Developing%20Web%20Dynpro%20User%20Interfaces.pdf
    *Reward Points for useful answers.
    Regards,
    <b>Ramganesan K</b>

  • Need WebDynpro & Adobe Forms Sample Programs

    HI Gurus,
    I am new to WebDynpro and ADOBE Forms  in ABAP and would appreciate, if you provide me some useful examples/useful resources of both.
    Regards,
    Srinivas

    hi,
    refer these tutorials/videos  for WD ABAP :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/content.htm
    Main Topic Page:
    http://sdn.sap.com/irj/sdn/nw-wdabap#section2
    Tutorials for Beginners:
    Web Dynpro for ABAP: Tutorials for Beginners [original link is broken]
    eLearning Videos:
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    For help with Dynamic coding check out these sources:
    Have a look at the documentation for the WDDOMODIFYVIEW section of the phase model:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d2/8acd409cc4dd50e10000000a1550b0/frameset.htm
    There is also the class CL_WD_DYNAMIC_TOOL:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/6935425394033be10000000a1550b0/frameset.htm
    regards,
    amit

  • No margin in WebDynPro modal forms

    Hi experts!
    I suppose this question already been answered somewhere but I coundn't find it.
    I don't get any left margins in the modal forms in WebDynpro applications. I think it looks really ugly. Should it be like this or can it be changed?
    Anyone that does understand what I mean and has an explanation to this layout behavior?
    Thanks in advance
    Fredrik

    Hi Fredrik,
    I saw the image. how are you creating the pop-up window ?Are you creating your own pop-up then calling l_window_manager->create_window_for_cmp_usage , if so then the view that constructed needs to be adjusted. Try giving WIDTH of the container ROOTUIELEMENTCONTAINER as 90%.
    if_wd_window reference where you recieve the constructed window has a method set_size however it doesnt seem to work,
    you can give it a TRY.
    Greetings
    Prashant

  • Webdynpro iview form portal on internet

    Hi ,
    I 've a strange problem .
    I'm using NWDS04 SP13, EP6.0 SP13.
    Problem
    1) I 'm pulling web dynpro iviews to the portal.
    2)They are working fine on LAN,WAN.
    3)when i 'm accessing them from internet IP(real ip)
    first screen is coming with all the data.
    when i click on the button or drop down
    problem
    ===============
    Application expired .need to refresh .
    Although i 've set the expiration time 1hr.
    problem is coming only through internet .
    i 've to made some changes or ??
    plz help very very Urgent
    Regards
    Vikas

    Hi,
    I can think of 2 possible reasons
    1. Firewall between portal in internet and R/3 in intranet. In this case you need to open up firewall ports for the iView to work.
    2.. The domain of Portal and the domain of R/3 system may be different. SSO will not work. Try user mapping
    Hope this helps.
    Thanks and Regards,
    Prasanna Krishnamurthy

Maybe you are looking for