You are on page 1of 6

1.

Create one Web dynpro component.

2.

Save as Local Object.

3.

Go to view Context and create node and Insert attributes in the node.

4. Set Cardinality to 0 ..n

5. Go to layout Create one group UI element

6.

Create table UI element inside the group element.

7.

Create binding between Context node with Table fields.

8. Again go to Context Tab, create one attribute CHK1 for check box.

9.

Go to Layout Create one column in table for Check box and bind the
attribute CHK1 to that column.

10. Finally you can see Check boxes on Table display.

11.Write the code in the WDDOINIT method.


METHOD wddoinit .
DATA lo_nd_emp_add TYPE REF TO if_wd_context_node.
DATA lt_emp_add
TYPE wd_this->elements_emp_add.
"Navigate from <CONTEXT> to <EMP_ADD> via lead selection
lo_nd_emp_add = wd_context->get_child_node( name = wd_this-

>wdctx_emp_add ).
"Fetch data
SELECT *
FROM pa2006
INTO CORRESPONDING FIELDS OF TABLE lt_emp_add
UP TO 50 ROWS.
"Find the table values to Context
lo_nd_emp_add->bind_table( new_items = lt_emp_add set_initial_elements
= abap_true ).
ENDMETHOD.

12.Create Web Dynpro application and Save.

13. Execute the above application

You might also like