Skip to Content
avatar image
Former Member

How to get the portal iview url

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jun 30, 2014 at 06:43 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Jun 30, 2014 at 07:12 AM

    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>.



    Add comment
    10|10000 characters needed characters exceeded