cancel
Showing results for 
Search instead for 
Did you mean: 

Read absoulte URL of Wd Application

former_member94854
Participant
0 Kudos

Hi there,

I would like to read the absoulte URL of an wd application, e.g:

<protocol>://<host>:<port>/<path to wd application>

Is there a way how I can achieve that without using the class "cl_wdr_task"?

Kind regards,

Albert

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Yes. You can use the class CL_WD_UTILITIES method CONSTRUCT_WD_URL.

former_member94854
Participant
0 Kudos

Hi Thomas,

the problem here is that I have to know information like the namespace, aso to construct the url. In my case I have no information except an object of interface if_wd_application. So I just want to get the URL for my running Web Dynpro Application.

Kind regards,

Albert

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You should be able to read the application name at runtime using the Application API: IF_WD_APPLICATION

http://help.sap.com/saphelp_nw70/helpdata/EN/43/036b1fdc7e22f2e10000000a1553f7/frameset.htm

The application name is the only required parameter. Do you have a mixture of name spaces in your landscape? I believe that that the GET_NAME of IF_WD_RR_APPLICATION will return the namespace prefix as part of the name f it is not /sap/.

Answers (0)