on 03-26-2012 6:17 AM
can u please tell me what is wd_this
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
This link will help you
http://help.sap.com/saphelp_nw04s/helpdata/en/35/447741b0d6157de10000000a155106/content.htm
Karthik.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.