cancel
Showing results for 
Search instead for 
Did you mean: 

Get Application Name

former_member189058
Active Contributor
0 Kudos

Hi,

I have one component and two diffenerent applications using the same component and same window.

At runtime, in the main view, I want to get the name of the application which was called. How can this be done?

Regards,

Reema.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can get it via the Application API object. For instance in your Component Controller WDDOINIT:

    
    DATA lo_api_componentcontroller TYPE REF TO if_wd_component.
    lo_api_componentcontroller = wd_this->wd_get_api( ).

    data lo_api_application type ref to IF_WD_APPLICATION.
    lo_api_application = lo_api_componentcontroller->get_application( ).

    data lo_application_info type ref to IF_WD_RR_APPLICATION.
    lo_application_info = lo_api_application->get_application_info( ).

    if lo_application_info->name is not INITIAL.
    endif.

Answers (0)