Skip to Content

Get Application Name

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 04, 2008 at 10:18 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.