Skip to Content
0
Former Member
Dec 03, 2008 at 11:01 AM

Binding the new row to the top of the table

26 Views

Hi Friends,

i habe a table and a button called Insert Row. If I click on this button, one row will be added to the table after the last row. I didn't find a way to jump to the added row after clicking on the Insert Row button.

I habe read in one thread here in WD Forum that as a work around I can add the new row to the top of the table using BIND_ELEMENT method.

So I tried to use BIND_ELEMENT instead of BIND_TABLE like this:

*  lo_nd_table->bind_table(  new_items = lt_table
*   index = 0 ).

* to add the new line on the top
  lo_nd_table->bind_element(
  new_item = lt_table
  set_initial_elements = abap_false
  index = 0 ).

but now i get this error message:

Dynamic type conflict when assigning references

Does anyone has an Idea?

Thank you

Regards

Haleh