Table UI elements are used to display the set of data in the form of report.
Scenario: In this tutorial we will generate a simple report using the table UI element.
Step 1: Go to SE80 and create a Webdynpro application as shown below.
Step 2: In the context tab of the view controller, Create a context node EKKO with cardinality 0..n.
Click on Add attribute from structure to add the attributes to the context node from the dictionary structure EKKO.
Select the attributes required and press enter.
Context node will be created as below.
Step 3 : In the layout tab of the view controller insert a table UI element and Bind the node to the Table.
Right click on the table UI element and select create binding.
Click on the context button and choose the context node ekko as shown below.
Press enter.
Step 4: Go to the method WDDOINT and set the context node with some records. The values in the context node will be displayed in the table.
Using Code wizard set the node EKKO as table Operation.
Following codes will be generated by the code wizard.
Modify the code as below.
Step 5 : Save and activate the component. Create an application and test the application.
Output:
ls_ekko is not an internal table error
ReplyDeleteYes ofcourse.. LS_EKKO Is not an internal table. In my example I have mentioned LT_EKKO which is declared as internal table. Make sure you the code wizard with the table operation checked.
DeleteRegards,
Arun K
Hello, When I tried to test it , only 2 rows displayed. Plz help
ReplyDelete