• ABAP Online Training @ $50

    Now you can learn ABAP by watching and listening video classes by experienced consultant.

  • ABAP Tutorials N Materials

    Read, Surf and Download useful ABAP tips, tutorials, code and download many eBooks and documents free

  • Latest ABAP Job in India

    Get all latest opening for SAP ABAP and related jobs, vaccancies across India and apply for the same.

    Thursday, January 3, 2013

    Multipane UI element can be used in case of creating a dynamic ui elements in webdynpro abap. Suppose you have to create a set of UI elements based on certain entries dynamically, then you can simply create that set under a multipane and then bind that multipane with that data holding table node.

    Then in run time this pane will create similar set as per the table entries.

    Here we will try to create a application where on clicking the button the same UI text node will add in the screen.

    From the rootuielementcontainer create a multipane UI element.

    Then under that you can create your text UI elements like you do for any webdynpro application.


    After binding you can see that in view section, the text will come 3 times automatically. Which means it is indicating that multipane is set properly for dynamic entries.


    Next in the button on click, write the below code.

      DATA lo_nd_node_counter TYPE REF TO if_wd_context_node.

      DATA ls_node_counter TYPE wd_this->Element_node_counter.
      DATA lt_node_counter TYPE wd_this->Elements_node_counter.

      lo_nd_node_counter = wd_context->get_child_node( name = wd_this->wdctx_node_counter ).
      ls_node_counter-increase_counter = ls_node_counter-increase_counter + 1.
      append ls_node_counter to lt_node_counter.

      lo_nd_node_counter->bind_table( new_items = lt_node_counter set_initial_elements = abap_false ).

    Activate and execute the application. After execution first screen will be like this.


    Now click on the button and you can see that same is getting added one by one.


    Now you can create whatever in your mind and play with this UI element. This is a very useful UI element to handle complex dynamic web applications in ABAP.

    0 comments:

    Post a Comment

    Easy2learnabap.co.in @ 2012 All product names on this web site are trademarks of the companies that own them .

    Easy2learnabap.co.in is not affiliated with SAP AG in any way. SAP AG is the registered trademark holder of SAP, SAP R/3, mySAP, ABAP, xApps, NetWeaver, and other proprietary terms.

    The technical information on this site is verified to the greatest extent possible, however, any information found on this site is used at the site visitor's own risk. All the tutorials are collected from various sources, if anyone is having problem with the content, report this to us. We will take action accordingly.

    Easy2learnabap.co.in reserves the right to correct any errors or omissions in any portion of this site at any time without obligation.

    This website is created to teach people about ABAP technology. The Video contents provided in Premium service are completely owned by us and copyrighted.