Skip to Content

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

wda table edit

Hi all,

I am working on wda normal tables. I want to give the table in input. when i click the submit it should take those values.

i made table fields as inputfield.but when i test my program i am not able to edit my table. and i made cardinality is 1:n and selection 1:n that time i am able to edit 1 row.unable to select other rows.

how to make all rows of the table fields editable .

Can any body give any suggesion

Thanks&Regards

revati

Former Member
Former Member replied

Hi

when you make the cardinality 1:n one record automatically inserted by the framework, so you have one element in your context node.

you have to write code to insert new records into the context node, then you are able to see the records in edit mode.

if you want ten records put code in WDDOINIT

data: lr_node type ref to if_wd_context_node.

data: ls_tab type <node type>.

data: lt_tab type table of <node type>.

lr_node = wd_context->get_child_node( '<node name binded to table>' ).

do 10 times.

append ls_tab to lt_tab.

enddo.

lr_node->bind_table( lt_tab ).

Abhi

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