Tabstrip Control in Webdynpro Abap.

download Tabstrip Control in Webdynpro Abap.

of 4

Transcript of Tabstrip Control in Webdynpro Abap.

  • 7/31/2019 Tabstrip Control in Webdynpro Abap.

    1/4

    Tab strip Control in Webdynpro Abap with thestint of for all entries.

    Step1: Create a Webdynpro component with one

    view and one window.

    Go to view context and create 2 nodes asshown.

    1

  • 7/31/2019 Tabstrip Control in Webdynpro Abap.

    2/4

    Now go to layout and start designing.

    Insert a tab strip UI element and insert 2 tabs

    for tab strip by right clicking on it.

    Bind Mara and Kna1 nodes for the tabsrespectively.

    2

  • 7/31/2019 Tabstrip Control in Webdynpro Abap.

    3/4

    Write the logic as you need.

    method WDDOINIT .

    DATA lo_nd_kna1 TYPEREFTO if_wd_context_node.

    DATA lt_kna1 TYPE wd_this->elements_kna1.lo_nd_kna1 = wd_context->get_child_node( name = wd_this->wdctx_kna1

    ). select * fromkna1 intotable lt_kna1 .

    lo_nd_kna1->bind_table( new_items = lt_kna1 set_initial_elements =abap_true ).

    DATA lo_nd_mara TYPEREFTO if_wd_context_node.

    DATA lt_mara TYPE wd_this->elements_mara.lo_nd_mara = wd_context->get_child_node( name = wd_this->wdctx_mara

    ).

    select * frommara intotable lt_mara FORALL ENTRIES IN lt_kna1 wh

    ere kunnr = lt_kna1-kunnr .lo_nd_mara->bind_table( new_items = lt_mara set_initial_elements =

    abap_true ).

    endmethod.

    Map the view to the window, create anapplication and test it.

    3

  • 7/31/2019 Tabstrip Control in Webdynpro Abap.

    4/4

    4