cancel
Showing results for 
Search instead for 
Did you mean: 

get ITS-Server name as string to a variable

Former Member
0 Kudos

Hi Experts,

I need for a Web Dynpro Application the name of the current ITS-Server. It is not enough to know it. (I know the Transactions SM59 or SM51 where I can see it) I need to read it out as a string to a variable. That means, if the server changes, my string in my variable should change too. If the application runs on different systems, I don't want to change the coding manually.

Is it possible? I think there must be a table with the information. But i can't find it...

Thanks in advance!

Best regards,

Ingmar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ingmar,

there are several context variables in the ITS. You might watch it using ~record=1 as

a URL parameter when logging on.

~hostunsecure[1] <hostname>

~hostsecure[1] <hostname>

or

~agate_hostname[1] <hostname>

~http_host[1] <fqdn:potr>.

The contents of those variables can be retrieved using ABAP calls or by Business HTML.

regards

Tobias

Former Member
0 Kudos

Hi Tobias,

thanks for your reply. Can you please give an example how to get these variables using ABAP? I don't know exactly how to work with your information.

Best regards,

Ingmar

Former Member
0 Kudos

Hi Ingmar,

please use the function module 'ALEWEB_GET_CONTEXT'. But this will work in

a ITS session only.

regards

Tobias

Former Member
0 Kudos

Thanks Tobias!! I did it with the function module FOPC_AIS_GET_URL. There I get the URL of the ITS-Server.