cancel
Showing results for 
Search instead for 
Did you mean: 

context in windows

Former Member
0 Kudos

what is the use of context tab in windows .. in which scenario do we use it??

how can we make method or attribute available to other controllers.? wd abap

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The context in window saves the nodes and attributes for controling the logic among its views. You can also save some information you need.

For other controllers, you can add the window controller into their used controller, then you can use the methods of the window.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

1.Generally we write most of our code in Views and Compoent Controller, if some code needs to be written in window like in HANDLEDEFAULT, WDDOINIT or WDONOPEN where we want to set any context data which is declared in component controller we can map it to window controller and change it

If you closely observe, there is no context for Window in Web Dynpro Java.

2. go to properties tab of the view and add your window controller, then you can access your window methods in View using the code wizard or using the following code

DATA: l_ref_ZTEST TYPE REF TO IG_<Window_name>.

l_ref_ZTEST = wd_This->Get_Ztest_Ctr( ).

l_ref_ZTEST->Help(

).