cancel
Showing results for 
Search instead for 
Did you mean: 

Save editable table entries

Former Member
0 Kudos

I have a table with a column that is editable. I have a save button. I want to be able to fill in all the rows and then click the save button.

After clicking the save button, I should be able to find out values entered in all the cells of the table.

So far I have the following code, but as you can see it will only handle a single line.

data lo_nd_qamr type ref to if_wd_context_node.
  data lo_el_qamr type ref to if_wd_context_element.
  data ls_qamr type wd_this->element_inspresult_r.

  lo_nd_qamr = wd_context->get_child_node( name = wd_this->wdctx_inspresult_r ).
  lo_el_qamr = lo_nd_qamr->get_element( ).

  call method lo_el_qamr->get_static_attributes
    importing
      static_attributes = ls_qamr.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You should read static attributes of the table . Change your code like below.

data lo_nd_qamr type ref to if_wd_context_node.

data lo_el_qamr type ref to if_wd_context_element.

data ls_qamr type wd_this->element_inspresult_r.

data lt_qamr type wd_this->elements_inspresult_r.

lo_nd_qamr = wd_context->get_child_node( name = wd_this->wdctx_inspresult_r ).

lo_el_qamr = lo_nd_qamr->get_element( ).

lo_nd_qamr->get_static_attributes_table( IMPORTING table = lt_qamr )

Now the field lt_qamr will have all the values of the table.