cancel
Showing results for 
Search instead for 
Did you mean: 

purpose of wd_<controller>_ctr()

Former Member
0 Kudos

hi experts,

what is the purpose of wd_<controller>_ctr()

Accepted Solutions (1)

Accepted Solutions (1)

amy_king
Active Contributor
0 Kudos

Hi Noufal,

Do you mean method get_componentcontroller_ctr( )? When you are in a VIEW method, this method gives you a reference to the COMPONENTCONTROLLER so that you can call its methods. For example, within a VIEW method, you can call methods of the COMPONENTCONTROLLER by doing the following.

DATA lo_componentcontroller TYPE REF TO ig_componentcontroller.

lo_componentcontroller = wd_this->get_componentcontroller_ctr( ). lo_componentcontroller->some_method( ).

Cheers.

Former Member
0 Kudos

thanks amy....u made it clear with simple example

amy_king
Active Contributor
0 Kudos

Hi Noufal,

If your question is answered please reward with points by marking as "correct answer".

Cheers.

Answers (0)