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

Similar Messages

  • Web Dynpro ABAP, Adobe interactive forms and Drag and Drop functionality.

    Hi Experts,
    is it possible to use Drag and Drop functionality together with Adobe Interactive forms in Web Dynpro ABAP? I consider dragging object (like texts) to interactive form placed in Web Dynpro.

    I think I understand but just to make it clear. I use texts created using function module "SAVE_TEXT". In my Web Dynpro I  select one or more of them and use the button "insert text" (with appropriate functionality behind it) to insert them to specified location in my PDF form opened in this Web Dynpro. Considering what you said it is not possible to replace this "insert text" button by drag and drop functionality. Am I correct?
    Btw great job with the book "Next Generation ABAP Development" Thomas!

  • How can user attach file to interactive form, and be read by abap program?

    Hello,
    I created an abap interactive form, sent to the user, then user fills out the form fields, then it is uploaded back to sap, then my program reads this data and process it.
    It works.
    Now I want users to be able to attach any file they want, and the abap program to extract this file out of the PDF, to put it into SAP (or anywhere).
    I succeeded in attaching a file, I can "see" it via function module get_annotations, but I get the file in compressed form by Adobe (filter="FlateDecode").
    Do you know how to unzip the file, or is there another way to attach files in adobe reader/extract them via abap?
    I use acrobat reader 8.1.2
    Thx a lot!
    sandra
    Below is the xml obtained by GET_ANNOTATIONS. We see that there are other text annotations, and that the attached file has {length="98005"}, though real file (before "attach file" to the PDF, and also after "detach file") has length 111 995 bytes. It's why I deduced that there is a compression (I also tried to extract it as-is and open it with adobe but it doesn't work.
    <?xml version="1.0" encoding="UTF-8"?>
    <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
      <annots>
        <highlight rect="212.347,624.257996,252.979004,636.539978" creationdate="D:20080604100938+02'00'"
    name="2114308b-275d-4eca-8bfc-c8288ef4a77c" color="#FFFF00" flags="print"
    date="D:20080604100938+02'00'" title="mtresori" subject="Texte surligne "
    coords="215.432999,636.179016,249.893005,636.179016,215.432999,624.619019,249.893005,624.619019"
    page="0">
          <popup rect="595.276001,516.179016,775.276001,636.179016" flags="print,nozoom,norotate"
    open="no" page="0"/>
        </highlight>
        <fileattachment rect="15.345001,802.841003,29.345001,822.841003"
    creationdate="D:20080604101011+02'00'" name="f6e12648-c9b0-4cd1-b08b-82876c8300d7"
    color="#4055FF" flags="print,nozoom,norotate" date="D:20080604101019+02'00'" title="mtresori"
    subject="Piece jointe" file="SAP_WIDGETS2.pdf" mimetype="application/pdf"
    creation="D:20080603112937+02'00'" modification="D:20080603112937+02'00'" size="111995"
    checksum="9F846412B510089F7C6DBCC6527C6339" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>SAP_WIDGETS2.pdf</p>
            </body>
          </contents-richtext>
          <data MODE="raw" encoding="hex" length="98005" filter="FlateDecode">
    4889CC570B5414D719F651A38EC468D5C6A2980104E528BBF3B8F3B2626405242920020A0AA4AEBB
    C3B2BAECEAEEA2A018030A628C8FFA4A0F568F58426A1EF5118FB5266A8D9AA2B16A55044541C5
    A62656EBA315935AE8BDB3BBEC2C0BD9D5B39EB3671966FEFBFCE6BF
    ETC. (all hexa code is the attached file, but with compression by adobe)
          </data>
        </fileattachment>
        <text rect="96.187408,680.099976,116.186996,698.099976" creationdate="D:20080613144537+02'00'"
    name="73360fcf-f5e5-4d5b-9315-fe4c42924300" color="#FFFF00" flags="print,nozoom,norotate"
    date="D:20080613144617+02'00'" icon="Comment" title="srossi" subject="Note" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p dir="ltr">
                <span dir="ltr" style="font-size:10.0pt;text-align:left;color:#000000;
    font-weight:normal;font-style:normal">
    ffffffffffffffffffffff
                </span>
              </p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,578.099976,775.276001,698.099976" flags="print,nozoom,norotate"
    open="yes" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144627+02'00'" state="Marked"
    name="d524b7d5-1a85-4b62-80b3-5875dd152c51"
    color="#FFFF00" flags="hidden,print,nozoom,norotate" date="D:20080613144627+02'00'"
    icon="Comment" title="srossi" subject="Note"
    inreplyto="73360fcf-f5e5-4d5b-9315-fe4c42924300" statemodel="Marked" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Marked definie par srossi</p>
            </body>
          </contents-richtext>
          <popuprect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144633+02'00'" state="Accepted"
    name="88af2cb6-7516-4f21-81e6-97edc7a85184"
    color="#FFFF00" flags="hidden,print,nozoom,norotate" date="D:20080613144633+02'00'" icon="Comment"
    title="srossi" subject="Note" inreplyto="d524b7d5-1a85-4b62-80b3-5875dd152c51" statemodel="Review"
    page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144642+02'00'" state="Marked"
    name="a8c6b485-c3f9-44e2-ad53-c61b2766d9d5" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144642+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="f6e12648-c9b0-4cd1-b08b-82876c8300d7" statemodel="Marked" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Marked definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144647+02'00'" state="Accepted"
    name="0136b689-575c-46b8-a21a-86e3c8d73904" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144647+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="a8c6b485-c3f9-44e2-ad53-c61b2766d9d5" statemodel="Review" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
        <text rect="100,82,120,100" creationdate="D:20080613144657+02'00'" state="Accepted"
    name="a21fc3c5-cf6a-4c6f-bc1f-328a91050b4e" color="#FFFF00" flags="hidden,print,nozoom,norotate"
    date="D:20080613144657+02'00'" icon="Comment" title="srossi" subject="Note"
    inreplyto="2114308b-275d-4eca-8bfc-c8288ef4a77c" statemodel="Review" page="0">
          <contents-richtext>
            <body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"
    xfa:APIVersion="Acrobat:8.0.0" xfa:spec="2.0.2">
              <p>Accepted definie par srossi</p>
            </body>
          </contents-richtext>
          <popup rect="595.276001,-20,775.276001,100" flags="print,nozoom,norotate" open="no" page="0"/>
        </text>
      </annots>
      <f href="acTempF-00000028453-00000000089"/>
      <ids original="03473EFED11DB2110A00000000000000" modified="959796E85292D54DB7FA558CAAD4A346"/>
    </xfdf>

    Hello everybody,
    I am sure you have an answer to my question above. It was :
    how is it possible for a user to ATTACH files to a PDF interactive form, and then be able to READ them via a program ? (I guess the solution to read them via ABAP or JAVA is quite the same?)
    Thx a lot !
    sandra

  • Adding rows in web dynpro ABAP Dynamic Interactive form.

    Hi Experts,
              I am having problem in web dynpro ABAP Dynamic Interactive form.
    This is my scenario....
    I have a dynamic interactive form that has buttons to add and remove rows in a table. It works fine when I preview it , but when I render, view or save it using ADS, it no longer works. The "add" button actually does instantiate more repeating rows, because I put some trace messages in to count them, but the added rows are not displayed. How do I make them visible?
    In web dynpro java we write some coding in modify view to set the pdf form as dynamic
    IWDInteractiveForm iForm =
    (IWDInteractiveForm)view.getElement("<ID>");
    iForm.setDynamicPDF(true);
    simillarly what we need to write in web dynpro ABAP.
    Please give me solution for the same.
    Thanks,
    Sathish

    hi all,
             expecting reply from u all. pls help me and give some sugesstion.
    regards,
    vinoth.

  • How to get the values enterd in the interactive form and store it in table.

    Hi Experts,
    I have a requirement, i want to display the editable fields in Adobe form and have a button.If i click the button what i enter in the fields that will be store in the table.
    I tried but the button action is not going....
    In the Form i put the layout type as : xACFLayout.
    and in the webdynpro the enabled property checked and display type put the activeX still the form in the fields are in non-editable....
    Can you please give me step by step procedure for the same.
    Thank you in advacne..
    Thanks.
    Rrrr.

    Hi,
    I put the form layout is ZCI.
    When i click the button the acion was not trigerring.
    Please help me in this ASAP. It's imp for me..
    For your understand;
    My Requirement:
    I have a interactive form in that 2 input fields 1. First name 2.Last name and one button .
    If i clcik the button what i enterd in the above 2 inputfields i have to get store it in R/3 table.
    I tried this one.
    1. Created the view in the context created the node "adobe" cardinality... (1..1) and below created the child node "input" cardinality(1..1) and 2 attributes first name and last name.and other attribute pdfsource type xstring.
    created the UI element Interactive form, and chekc the enabled checkbox, and display type "native" and binding the  data source property to node  "adobe" cardinality... (1..1) and pdf source to pdfsource node. and templet  gave  "ZFORM" and gave the interface name "ZINTERFACE" and drag and drop the node elements into layout
    and created the webdybnpro button and webdynpro event gave *clcik and javascript and save activated the form.
    2. In the Ui elemt in view action onsubmit wrote the code to get the context element values and insert  that int0o table.
    But here the Submit button action was not trigerring.....................
    can you please help me in the same..... ASAP give any sugesstion what i have to change in this scenario.....

  • 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

  • I am trying to use a interactive form and it says "If this message is not eventually replaced by the proper contents of the document, your PDF  viewer may not be able to display this type of document."  This is a IRS form and has worked before.

    I am trying to use a interactive form and it says "see below"  This is a IRS form and has worked before.
    is there a tech support phone number?
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF
    viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by
    visiting http://www.adobe.com/go/reader_download.
    For more assistance with Adobe Reader visit http://www.adobe.com/go/acrreader.
    Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark
    of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries

    That means you are looking at the form online with a browser that uses its own (incompatible) PDF viewer, not the Adobe Reader plugin.
    Either
    download the form to your local disk and fill it from there
    use a browser that employs the Adobe Reader plugin
    configure your browser to use the Adobe Reader plugin: http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

  • Interactive Forms and submit to sap

    Hi Everybody!
    I'm doing a application using interactive forms and web dynpro. However nothing happens when pushing the Submit to SAP button.I've been watching all foruns about this issue....but the submit to sap button doesn't work.
    Could somebody tell me where I can find a read-to-use project that works fine with submit to sap button?
    Thanks!! =)
    (I'm using WAS 6.40, the Adobe reader 6.0.2, NDS 2.0.11 and the ACF is installed.)

    Hi Luiza
    some of the interactive Adobe tutorials on the Web Dynpro tutorial page also contain Submit buttons.
    Check this page: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#pdf
    Regards,
    Markus Meisl
    SAP NetWeaver Product Management

  • Multiple search helps in ABAP Adobe interactive forms not working....

    Hello,
    I am working on my first interactive form. I have a couple of fields to which I have attached a search help. However, I am able to use the search help for only one field in a session. If I use the search help on one field then I am unable to use it on another field which uses the search help.
    Can some one help? I am new to interactive forms and this is my first form.
    I appreciate your help in advance.
    Thank you,
    Leena

    Hi Leena,
    Are the Data dictionary fields which you are using contains value range. Because i am only getting value help only for the fields for which there is value range defined in the dictionary. The problem is only for the fields for which there is no value range defined. If you have solution to this problem I will definitely award points to you. But in your thread for me its not possible to reward points, so you can answer the following thread:
    [How to get Value help in Adobe forms;
    Will reward points if found your answer helpful.

  • Adobe Interactive Forms and Digital Signature

    Adobe Interactive Forms and Digital Signature
    Hi, I’ve a question if it works to digital sign interactive PDF documents created by an SAP BPM System? So is it possible just to sign the content, and not the interactive components like layout and buttons e.g.?
    Thanks for your help.
    Regards,
    Tobi

    serverside or at the client??

  • Taking the data from interactive forms and load the data into SAP system?

    hi all,
    I want to know how to take the data from interactive forms and load the data into sap system?
    if u have any sample scenario, explain with that.
    thanks in advance
    Raja

    Hello,
    Check the program...
    SAPBC480_DEMO.
    Check the below threads
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/88e7ea34-0501-0010-95b0-ed14cfbeb85a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bfbcd790-0201-0010-679d-e36a3c6b89fa
    Thanks
    Seshu

  • Click event in Webdynpro abap for interactive form

    Hi ,
    I am using a ZCLI form to be developed using Webynpro abap . I am new to  webynpro abap but I have worked in offlined upload of pdf forms . My problem is I created a wedynpro component and integrated the form .The form is only opening up if the layout choosen is standard layout . if it is a zcli form it is not opening up . I am also not able to capture the click event from the form .
    some immediate help required.
    My requiremnt is to save 2 fileds from  a form in an interactive way to a SAP database using webynpro abap .
    Regards
    Abhil

    Hi Abhil,
    If your layout type is 'ZCI Layout' then you have insert the webdynpro script in the layout. After selecting the ZCI Layout click on enter and then go to layout tab, in this go to Utilities menu->select Insert WebDynpro Script.
    If you do this then in the Hierarchy tab of adobe form you can see the (Variable) ContainerFoundation_JS, it means that you have inserted WebDypro Script in the form.
    Finally activate the form and run the application.
    Thanks,
    Jhansi Miryala

  • Interactive form and web dynpro abap

    Hi All,
    I'm working on a web dynpro application that embeds an interactive forms.
    When I sent the property "enabled" of the interactive form to false , the form is displayd.
    When I sent the property "enabled" of the interactive form to true, the application dumps :
    "WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server "
    Do you know where this comes from?
    Thanks,
    Archana

    It looks like the ADS (adobe document services) is not (properly) installed.
    There are some test reports to check this:
    FP_PDF_TEST_00
    (FP_PDF_TEST*)
    Edited by: Micky Oestreich on May 29, 2009 2:58 PM

  • Adobe interactive form and workflow attachment

    I use an ABAP webdynpro to trigger a WF. The WD is an interactive adobe form step for users to enter data. Then before triggering the WF, I would like to save the form as an PDF form so I can send it to the subsequent work item processors. Is this possible? If yes, what do I need to do to make this happen.
    Thanks.

    Hi Raja,
    If i understand well the only way to have Adboe forms in ABAP Wrokflow is to use ISR , that's right ?
    Here's my scenario.
    An User trigger with an abap program a Specific flow , then i send several mails with Adobe forms inside . Thoses forms are send back by mail and process by the abap system .
    My problem is to make sure that all forms have been process and for this i had to develop a specific program in abap in order to check it.
    So Is it possible to define a SAP Abap workflow where on each workitem i will add as attachment my pdf form . Then i can used standard Notification and Standard functionnality of reminding of ABAP Workflow.
    Best regards.
    Bertrand

  • Web dynpro with adobe interactive forms and button submit

    Hi,
    I'am new with webdynpro and adobe interactive forms so i just trying some example with an adobe interactive form with a submit button event handler inside the webdynpro. But i can't catch the event handler submit that i creaate on onSubmit property of the interactive form.
    Can anyone help please.
    Thank you very much.

    I think I understand but just to make it clear. I use texts created using function module "SAVE_TEXT". In my Web Dynpro I  select one or more of them and use the button "insert text" (with appropriate functionality behind it) to insert them to specified location in my PDF form opened in this Web Dynpro. Considering what you said it is not possible to replace this "insert text" button by drag and drop functionality. Am I correct?
    Btw great job with the book "Next Generation ABAP Development" Thomas!

Maybe you are looking for

  • Mencoder H.264 20 times faster than Compressor 2

    I tested mencoder with compressor running with 5 G5s. the H.264 implementation of mencoder was four times faster than the 5 dual core quads clustered with compressor two and queermaster . my single computer alone with just a dual 2 ghz processor enco

  • How do I share cards in my address book with other users on my iMac?

    I setup our iMac so me and my wife login with our own account. The problem, however, is that contacts I add to my address book are not visible when she signs on with her account. How do I go about sharing this info? Come to think of it, how will I le

  • IE8 doesn't play .mov files

    i had downloaded few .mov files which are associated with an HTML page. I usued to open this HTML page in IE8 to view the .mov files in the browser itself when I was running windows vista. I have upgraded my system to windows 7. Now when I click on t

  • Problem when converting to pdf - Oracle Reports 6i

    Hi all, Im using Oracle reports 6i and Oracle Database 10g Release 10.2.0.5.0 - 64bit Production. In My database NLS_LANGUAGE is GREEK & NLS_CHARACTERSET is EL8MSWIN1253. So i have greek language texts in the database.. When run the report, in the pr

  • How to merge an Air application and an Android java app in a single APK?

    Hi, I have a java-based Android application and a Air-based android application. I have the source code of both. I need to merge both applications in a single one, and I need to launch the air-based app from the java-based app. I'm open to any crazy