cancel
Showing results for 
Search instead for 
Did you mean: 

wd_this

ravi_kumar221
Participant
0 Kudos

can u please tell me what is wd_this

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Wd_this is an attribute which stores the Self Reference to local controller interface.

Suppose if you call a method wd_this->wd_get_api() in your component controller

the result of this is of type if_wd_component

whereas inside a view if you call same method then you get the reference type for

if_wd_view_controller

similarly you have an attribute wd_comp_controller in your view if you call same method

with this object i.e wd_comp_controller->wd_get_api() then the result would be a reference

for type if_wd_component.

So these attributes are objects which store the reference for local interface and can be used

to get the controller reference.

former_member185241
Active Participant
0 Kudos

WD_THIS refers to the current controller.
If you have created a node in the view context, Wed Dynpro automatically create its Works area and also Internal table (Elements_<node name>  is Internal table and Element_<node name> is work area)
So if u want to access this work area or Internal table in your program you can refer wd_this.
data : lt_itab type table of wd_this->Element_<node name>
Above statement will create a Internal table of type Element_<node name>

Former Member
0 Kudos
former_member199125
Active Contributor
0 Kudos

Ravi

WD_THIS is a controller attribute is a reference to this local interface

For example in a view controller, if you want to refrer ( or call ) attribute or method...we can use wd_this attrbute..

for example in view controller you have a method say getdata, you can call that method in wddoint method of view using wd_this->getdata( ).

Regards

Srinivas

ravi_kumar221
Participant
0 Kudos

please tell how i can see view controller       attribute