Below are the steps for displaying data within an ABAP WebDynpro table.
Step 1
Create new Web dnpro component (WDP_SEL_TABLE), double click on the ComponentController and select the 'Context' tab. Now add a new node
to the contect node (right click the context and select Create->Node).
Step 2
Give the new node a name and enter which table structure you want to base it on (i.e. table you want to display). Also rememeber to set the
cardinality to 0:n (or 1:n) to denote a table.
Step 3
Now click on the 'add attributes from structure' button, and select your desired table fields.
Step 4
Press the green tick on both the new popup screens to return to your context section, your new context node should now have been added.
Step 5
Now click on the 'Methods' tab
Step 6
Double click on the 'WDDOINIT' method so that you can modify the ABAP code. Add the following code:
Data: it_scarr type standard table of scarr, context_node type ref to if_wd_context_node. select * from scarr into table it_scarr. if sy-subrc eq 0. context_node = wd_context->get_child_node( name = 'CARRIERS'). * Note: CARRIERS' is the name you gave you new node context_node->bind_table( it_scarr ). endif.