on 02-04-2010 2:48 PM
Hello,
I have a Web Dynpro ABAP component that is being used in two different applications. I'm just wondering if there's a way to programmatically tell which application it was that called the component when a certain method is executed? Thanks!
Yes there are APIs for that:
From a method of the component controller:
data lr_api type ref to if_wd_component.
data lr_appl type ref to if_Wd_application.
data lr_appli type ref to if_wd_rr_application.
lr_api = wd_this->wd_get_api( ).
lr_appl = lr_api->get_application( ).
lr_appli = lr_appl->get_application_info( ).
lr_appli->get_name( ).
If you were inside a view, then just replace the WD_THIS with WD_COMP_CONTROLLER.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That was perfect - thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You mean the component usages in the other applications.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.