check box on table display

Upload: soumabha-chatterjee

Post on 05-Nov-2015

215 views

Category:

Documents


0 download

DESCRIPTION

Table display

TRANSCRIPT

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. METHODwddoinit.DATAlo_nd_emp_addTYPEREFTOif_wd_context_node.DATAlt_emp_addTYPEwd_this->elements_emp_add.

"Navigatefromtovialeadselectionlo_nd_emp_add=wd_context->get_child_node(name=wd_this->wdctx_emp_add)."FetchdataSELECT*FROMpa2006INTOCORRESPONDINGFIELDSOFTABLElt_emp_addUPTO50ROWS."FindthetablevaluestoContextlo_nd_emp_add->bind_table(new_items=lt_emp_addset_initial_elements=abap_true).

ENDMETHOD.

12. Create Web Dynpro application and Save.

13. Execute the above application