cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the Web AS Port from ABAP program

former_member193328
Active Participant
0 Kudos

Hi

I have an ABAP program which passes an URL for a BSP page to the Alert Framework. While creating the URL I need to find out the Hostname and port number for the Web service for that server. Hostname comes from sy-host but I am not able to find the port number.

Please help...

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Ulli_Hoffmann
Contributor
0 Kudos

Hi,

consider this little code snippet:

data: l_urls type tihttpurls2.

call method cl_http_server=>get_extension_info

EXPORTING

extension_class = 'cl_http_ext_bsp'

IMPORTING

urls = l_urls.

l_urls contains a table of configured ports. maybe that helps.

regards, Ulli