cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the current WDA's URL?

former_member202077
Participant
0 Kudos

Hello,

I have developed a custom WDA, well, for some reason i need to get the current WDA's complete, pls. let me know do we have any class / method or FM? 

I am awarre of that building URL based on the current environment /port by using classes, but, just checking do we hv any easy / ready-made class for reading the current WDA's URL

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Use method CONSTRUCT_WD_URL of class CL_WD_UTILITIES and pass the Web Dynpro Component to get the complete URL.

As far i knew there is no other class which reads the url in the address bar, however you can get the url parameters using class cl_http_request  method get_uri_parameters.

Regards,

Kiran

Former Member
0 Kudos

Adding to 's response, you don't have to hard code the WDA application name when using CL_WD_UTILITIES=>CONSTRUCT_WD_URL. You can find out the name of the WDA application dynamically by using IF_WD_RR_APPLICATION=>GET_NAME. See the attached link for details.

http://help.sap.com/saphelp_nw73/helpdata/en/46/9c786b77922c0ee10000000a114a6b/frameset.htm

former_member202077
Participant
0 Kudos

Thank you for your help. Just now i saw your site, multi skilled, g8, impressive. I am just ABAP, recently started WDA.

When you get a chance, pls. check my other thread/question,

http://scn.sap.com/thread/3412042

Thank you

Answers (0)