cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro Table Manipulations

Former Member
0 Kudos

Hi Experts,

How to do the table manipulations [ Insert New Row, Edit Line item and Save, Delete selected line ] in WebDynpro. Could you please guide me to full fill this requirement.

With Thanks & Regards,

Samba

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1) To insert new row into a table just append the line to your table and bind it to your node.

2)To edit a line item first you read the data from the node by using GET_STATIC_ATTRIBUTES_TABLE

and get the index of the line by using GET_LEAD_SELECTION_INDEX and edit the table line with that

particular index and again bind the modified table to the node.

3) To delete the line first read the table data and lead selection and delete it from table and bind the modified

table to the node.

Answers (1)

Answers (1)

former_member199125
Active Contributor
0 Kudos

Insert New Row, Edit Line item and Save, Delete s

Samba,

hope you know that in webdynpro we will dispaly table using NODE.

node contents will dispalyed in table, so in order to operate the table we have to perform operation on node.

and node is of type if_wd_context_node. Check this interface in se24, you will find many methods.

For removing node->remove_element( ).

for adding(inserting new row ) there are couple of methods like

bind_element,( for single row )

bind_table( multiple records)

and if you display the table with cells as input fields then you will able to edit the contents,

Check this link it will be useful

http://www.saptechnical.com/Tutorials/WebDynproABAP/DeleteRows/Page1.htm

Regards

Srinvias