on 11-17-2015 6:34 AM
Dear All,
I want to create a table control which i can give values, when i creating its in grayed out(non-editable), when i search in scn people suggested to append some initial lines to the internal table, Is that is the correct procedure, the method to make "input field" when binding the node to table is not giving editable option to the table .. but in code wizard its displaying with editable option , without code wizard how to get it. like the below editable table i want in web dynpro abap.
Thanks.
Hi Nanda,
- Gowtham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gowtham thanks for reply, so i need to append initial lines to internal table and bind it to the node?, is any other other method to achieve it, in that case when i using coding wizard to generate a table control its not generating any code for initial lines then how its coming as editable table. i can get editable table in webdynpro by doing append initial lines, is any other other method to get it..
Hi Nanda Kumar ,
For init level table values append you can use following code :
DATA lo_nd_data_tab TYPE REF TO if_wd_context_node.
DATA lo_el_data_tab TYPE REF TO if_wd_context_element.
DATA ls_data_tab TYPE wd_this->element_data_tab.
DATA lt_data_tab TYPE wd_this->elements_data_tab.
DATA lv_temp TYPE i.
lo_nd_data_tab = wd_context->get_child_node( name = wd_this->wdctx_data_tab ).
lo_el_data_tab = lo_nd_data_tab->get_element( ).
DO 100 TIMES.
ADD 1 TO lv_temp.
MOVE lv_temp TO ls_data_tab-s_no.
APPEND ls_data_tab TO lt_data_tab.
ENDDO.
lo_nd_data_tab->bind_table( lt_data_tab ).
- Gowtham
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.