on 02-14-2011 11:06 AM
Hello,
I need to get the server name from my webdynpro in order to construct an url to call.
how can we do it with WDA?
Thanks.
System field HOST can give you the current applciation server name.
data host type string.
host = syst-host.
but why you need the host name for this.
you can construct the url using the method CONSTRUCT_WD_URL of class CL_WD_UTILITIES
.
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> but why you need the host name for this.
> you can construct the url using the method CONSTRUCT_WD_URL of class CL_WD_UTILITIES
> thanks
> sarbjeet singh
I agree that you should use one of the utilities to build the URL. If you need to build a URL for something other than Web Dynpro, also consider the class CL_URL. It has method sfor ITS, WDA, BSP, ICONS. The constructor of this class also has the property logic to lookup the host and default ports dynamically.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.