cancel
Showing results for 
Search instead for 
Did you mean: 

how to make a table editable?

Former Member
0 Kudos

hi all,

do u know how to make a (ABAP Webdynpro ESS screen) table editable?

is it through ALV or Table ?

thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

uday_gubbala2
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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 ).

Former Member
0 Kudos

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.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814...

To make table editable you can find many threads in the forum.