Create a Web Dynpro Application in SE80
Now we have to use a standard ALV component SALV_WD_TABLE , assign a name to the component use like ALV_TABLE
Double click on the Component Controller and goto Properties Tab in change mode select two Components as shown below
Create Nodes as Shown in Component Controller CONTEXT tab
Now in INTERFACECONTROLLER_USAGE click on Controller Usage and drap an drop the Node whose data is to be displayed on ALV list
IN MAIN view Context Drap & Drop Two nodes from component to View as shown
Design the Layout with following UI Elements
2. Button for navigation
also create Inbound & Outbound Plugs in Main View.
In the Methods Tab in WDDOINIT method populate the ALV container with data i.e
Create an action for the Button like GET_FLIGHT_DETAIL and on this action write the code below to pass the selected data to another View
Create another view SBOOK and create the context for it as shown below ...
Design the Layout for the View in Layout Tab with following UI Elements
Do the binding with the NODE and the TABLE
create an inbound & outbound plug for the view
In Method *HANDLEIN *read the node FLIGHT and accordingly display the data into the table
Create an APPLICATION and save & activate the application and Test it..
Following is the ALV list generated for Main View..