cancel
Showing results for 
Search instead for 
Did you mean: 

how to get application name or component name

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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]

Answers (3)

Answers (3)

Former Member
0 Kudos

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)

Former Member
0 Kudos

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

Former Member
0 Kudos

you can try methods of the class CL_WDY_MD_APPLICATION

may be you find the methods GET_NAME, GET_DISPLAY_NAME useful....