on 06-20-2009 1:53 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.