Displaying data with ABAP WebDynpro table
Below are the steps for displaying data within an ABAP WebDynpro table.
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.
Step 7 Now create a new view Step 8 Goto the context tab of the newly created view, and drag the CARRIERS node from the right hand window (ComponentController) to the view context window. Step 9 The ComponentController node should now be mapped onto view node Step 10 Select the layout tab and add a new Element of type 'Table'. Right click on the new table and select the 'Create Binding' option. Step 11 Press the context button and then select the CARRIERS node (or the node you created earlier). Step 12 You should now see the the list of fields contained in your node. Step 13 Press the green tick to insert the the fields into your table element! Step 14 Goto the window section and embed the view into the window! Step 14 Create a WDpro application and test it!
Website Navigation to related information
|
||||||||||