on 10-31-2008 2:40 AM
hi all,
do u know how to make a (ABAP Webdynpro ESS screen) table editable?
is it through ALV or Table ?
thanks
Hi,
If you want to make your table UI element editable then take all the cell editors of your table as input fields & then bind an initial internal table to your TABLE ui element. Am giving you a sample code fragment as to how you can bind an initial internal table to your node:
Regards,
Uday
METHOD wddoinit .
DATA: lt_sflight TYPE if_main=>elements_sflight,
wa_sflight TYPE if_main=>element_sflight,
lv TYPE REF TO if_wd_context_node.
DO 10 TIMES.
APPEND wa_sflight TO lt_sflight.
ENDDO.
lv = wd_context->get_child_node( name = 'SFLIGHT' ).
lv->bind_table( new_items = lt_sflight ).
ENDMETHOD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
actually to make the table activated u have to append initial lines to ur table.so first make an internal table like of ur node then append initial lines to this and then bind it to the node.code is given below.in case of further query u can ask me.
DATA lo_nd_cn_dartdetails TYPE REF TO if_wd_context_node.
DATA lo_el_cn_dartdetails TYPE REF TO if_wd_context_element.
DATA ls_cn_dartdetails TYPE wd_this->element_cn_dartdetails.
DATA lt_table TYPE wd_this->elements_cn_dartdetails.
DATA ls_table TYPE wd_this->element_cn_dartdetails.
navigate from <CONTEXT> to <CN_DARTDETAILS> via lead selection
lo_nd_cn_dartdetails = wd_context->get_child_node( name = wd_this->wdctx_cn_dartdetails ).
do 5 times."(as many lines u want)
append ls_table to lt_table.
enddo.
lo_nd_cn_dartdetails->bind_table( lt_table ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Which screen you are talking about.If you want to know go to that Web Dynpro application view and check which one used either table or alv.
If it is ALV table editable go through this blog.
To make table editable you can find many threads in the forum.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.