Here is the senario-> We have a table displayed on Main view* ,* after selecting a value from the table we need to display that value on Next View in a web dynpro application.
The whole process has to be done locally ( i.e without using global context atributes ). Following are the steps to perform such operation......
In SE80-> create a Web dynpro application
Design a view MAIN and in Context Tab declare a node Flight with attributes
design the layout with a Table element , a button to trriger an action for passing the selected value to another view
create a binding between the Table and the context node FLIGHT
for navigating between view u need to create Inbound & Outbound Plugs say IN & OUT resp.
For passing the selected value to the other View u need to export the value as Parameter in Outbound plug
eg. CARRID Type SCARR-CARRID
In CONTEXT tab, in WDDOINIT METHOD give the following code
Create another view NEXT also provide inbound & outbound plugs for navigation purpose like (IN & OUT)
In NEXT view, Context Tab create an attribute say CARRID
Design the layout, here we have one Button 'BACK' and Input Field to display the value passed from MAIN view.
In EVENT HANDLEIN of view NEXT give CARRID as importing parameter of type SCARR-CARRID and give the following code..
Map both the Views to the WINDOW, create web dynpro application save & Activate it & Test it.....
First select a row in the table and press on Button, in NEXT view u shall see the selected value in the input fied.
u can either use this value to create a new table or perform some query operation based on the value.