Skip to Content

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

Input table in webdynpro application


I have roads tadble in my webdynpro application.

In order to insert values to the table the user has button called 'ADD ROAD' and a new line is "open" for input.

The new row is always entered under the previous, is there that when the user select row 3 (when i have 5 row with data that the user already enterd ) and press 'add road' the new row will entered between the existing rows 3 and 4 ( i want it to behave like microsoft EXCEL when u can add new rows for an existing table) ?



Former Member
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

Helpful Answer

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