1. COMPONENTCONTROLLER
method get_api_name .
data: lo_api_componentcontroller type ref to if_wd_component,
lo_ap type ref to if_wd_application,
lo_rp type ref to if_wd_rr_application.
lo_api_componentcontroller = wd_this->wd_get_api( ).
lo_ap = lo_api_componentcontroller->get_application( ).
lo_rp = lo_ap->get_application_info( ).
wd_this->zwd_api_name = lo_rp->get_name( ).
endmethod.
2. View
method get_api_name .
data: lo_componentcontroller type ref to ig_componentcontroller,
lo_api_componentcontroller type ref to if_wd_component,
lo_ap type ref to if_wd_application,
lo_rp type ref to if_wd_rr_application.
lo_componentcontroller = wd_this->get_componentcontroller_ctr( ).
lo_api_componentcontroller = lo_componentcontroller->wd_get_api( ).
lo_ap = lo_api_componentcontroller->get_application( ).
lo_rp = lo_ap->get_application_info( ).
wd_this->zwd_api_name = lo_rp->get_name( ).
endmethod.