on 08-26-2008 8:17 AM
I have a requirement to make a Z table similar to the context change log table . I need to add application name to that.Is there a way one can retrieve application name of the current application from a function module or any other way?The table WDY_APPLICATION does not seem to have all the custom applications built it only shows the SAP provided applicatoin details.
here is coding to get the wd app name:
DATA:
lr_ctrl_api TYPE REF TO if_wd_controller,
lr_comp_api TYPE REF TO if_wd_component,
lr_appl_api TYPE REF TO if_wd_application,
lr_appl_info TYPE REF TO if_wd_rr_application,
l_appl_name TYPE string.
* get app name
lr_ctrl_api = wd_this->wd_get_api( ).
lr_comp_api = lr_ctrl_api->get_component( ).
lr_appl_api = lr_comp_api->get_application( ).
lr_appl_info = lr_appl_api->get_application_info( ).
l_appl_name = lr_appl_info->get_name( ).
For further Information check also the Runtime Repository APIs: [http://help.sap.com/saphelp_nw04s/helpdata/en/46/a07a6e79822c10e10000000a114a6b/frameset.htm]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
to get the component name instead of the wd application name,
you have to use the interface if_wd_rr_component (instead of IF_WD_RR_APPLICATION)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi nipun,
i think you didnt observe correctly the table WDY_APPLICATION it has all the custome application or z application along with component name startup lug and other details .So please check it again.
regards
PG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can try methods of the class CL_WDY_MD_APPLICATION
may be you find the methods GET_NAME, GET_DISPLAY_NAME useful....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.