cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the portal iview url

Former Member
0 Kudos

Hi

I have a web dynpro abap app that is tied to

an iview. Now I want to navigate to another

iview.

My question : is there  a method to return the

url of the current portal server my app. is running on?

It should return something like: "http:\\mydev.com:50000"

regards

yuval

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member184515
Participant
0 Kudos

Hi,

Check if the below helps you:


CALL METHOD cl_http_server=>get_location
     EXPORTING
       server       = cl_wdr_task=>server
     IMPORTING
       host         = <host>
       port         = <port>
       out_protocol = <protocol>.



Former Member
0 Kudos

Hi

Thank you.

No it does not bring back the iview url.....

Tks

Yuval

former_member184578
Active Contributor
0 Kudos

Hi,

You can get the host and port details using class CL_URL method HOST.

DATA lr_url TYPE REF TO cl_url.

DATA lv_url TYPE string.

CREATE OBJECT lr_url.

lr_url->host( CHANGING url = lv_url ).

hope this helps u,

Regards,

Kiran

Former Member
0 Kudos

Hi Kiran

This method get the url of the abap stack, not

the iview url which runs on the java stack.... I think...

Thanks

Yuval