Creating Ui elements like table dynamically in abap web dynpro application .
Step1. Create an abap web dynpro application in SE80 like YH_DYNAMIC_UI_ELEMENTS with view Main and Window Main_window.
Step 2. Create a node SFLIGHT with Attributes as shown
Step 3. Create an event 'GET_FLIGHT' in methods tab and save your Application .
Step 4. Creating UI Elements dynamically is done in Modifyview Method. Following is the code to create a Input Field and Button Element on the screen
code to create table dynamically
Step 5. While creating button we assign ACTION to thebutton ..but the pre-requisite is that the action should already be there in created mode.
Step 6. To Poplate Data into the Table
Step 7. Create an application and save & activate it .