Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how can i get the selected row in abab webdynpro table?

hi

i have a table in my webdynpro screen. The employee can add rows to this table.

the new line is always added at the buttom of the table - i mean it is always added as the last row.

i want to let the user the option to add rows bwtween 2 existing rows - the user will mark the row and press the vutton "insert row" and a new row will be entered between the existing rows (like in EXCEL ). Is there a way to do that ?

Thanks

Ami .

Tags:
Former Member replied

steps to do:

1. get lead selection of node by using  if_wd_context_node method get_lead_seelection_index.

2. get table using if_wd_context_node method get_static_attribute_table.

3  you can put all rows of table greater than lead_selation into another ( temporary ) internal table then append a new row in main internal table.

4. put all data from temporary internal table into main table and bind main table with node using method bind_table.

if helpful reward point

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question