cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out Application from Component

Former Member
0 Kudos

Hi Experts,

I have a component called FITV_VT_TRIP_DOCUMENT which is called from two applicatons FITV_POWL_TRIP and another one say ABC.

Now i need to know which application is calling the component.

Is there any Class->Method to find out the application name from component.

Or Is there any method to get the browsers URL from that component.

Thannks,

chandra

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

When you pass the Application name you can get the URL (But this can be mapped to external alias also).

* Generate the url for the component
  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'ZWDC_SALES_REPORT'  "Application name
    IMPORTING
      out_absolute_url = lv_url.    "String

"This can be an internal alias

Refer these links -

To get Component name from Application -

Get the Calling WD component name -

Regards,

Lekha.

Former Member
0 Kudos

Hi,

Can you pls tell me how to get the application name.

thanks,

chandra.

Former Member
0 Kudos

Hi Chandra,

See the dictionary table WDY_APPLICATION. In this table you get the WD Application name by giving WD component.

Thanks

Sanket

Answers (1)

Answers (1)

0 Kudos

Hi,

One approach is to have a parameter to your WD Application. Double click on the WDApplication and go to the parameters tab. Here you can add a parameter to the application.

Call the 2 applications with differing values for the parameter(You can have the same parameter name in both applications, while calling the application just pass different parameter values).

Application parameter values can be read in the HANDLEDEFAULT method of the embedding window. Check the parameter value and you will be able to differentiate which application has called the component.

I hope that helps.

Best Regards,

Viqar Ali.

Edited by: Viqar Ali on Jun 24, 2009 7:01 PM