Skip to Content
avatar image
Former Member

Call URL inside an abap web dynpro view

Hi Guys,

I want to call an URL inside a view of my web dynpro application.

In the past it was possible with UI Element IFrame, but this one is deprecated now.

Is there another solution?

Thanks a lot

Karim

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Oct 15, 2009 at 09:21 AM

    hi,

    You can use Create_external_window to do so.

    Refer this sample code :

    data lo_window_manager type ref to if_wd_window_manager.

    data lo_api_component type ref to if_wd_component.

    data lo_window type ref to if_wd_window.

    lo_api_component = wd_comp_controller->wd_get_api( ).

    lo_window_manager = lo_api_component->get_window_manager( ).

    CALL METHOD lo_window_manager->CREATE_EXTERNAL_WINDOW

    EXPORTING

    URL = 'http://www.google.co.in/'

    MODAL = ABAP_FALSE

    HAS_MENUBAR = ABAP_TRUE

    IS_RESIZABLE = ABAP_TRUE

    HAS_SCROLLBARS = ABAP_TRUE

    HAS_STATUSBAR = ABAP_TRUE

    HAS_TOOLBAR = ABAP_TRUE

    HAS_LOCATION = ABAP_TRUE

    RECEIVING

    WINDOW = lo_window.lo_window->open( ).

    ENDMETHOD.

    You can pass the URL into the exporting parameter.

    I hope it would help.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2009 at 09:22 AM

    in case u want to to get URL of another Webdynpro Application , and use it here in ur view :

    CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
    application_name = 'Z102044_BAPI'
    IMPORTING
    out_absolute_url = str.
    
    str - type string.
    'Z102044_BAPI' is the name of your webdynpro application
    

    u can use the Link to URL UI element and can give URL there as well

    regards,

    amit

    Edited by: amit saini on Oct 15, 2009 11:24 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2009 at 09:38 AM

    Clarification provided by Thomas regarding IFrame being Deprecated :

    If you want to display external content in place within Web Dynpro ABAP via a URL, then the iFrame is about your only way to go. At one point we were going to depreciate the iFrame because of its limiations around state management and authentication. That deprecation was announced with 7.0 Enhp1 but the UI element was not actually removed or disabled. With 7.0 Enhp2 will un-depreciated the UI element.

    iframe

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2009 at 09:45 AM

    Hi ,

    it wud be easy and simple appraoch , proceed like this :

    1 use a link to URL UI element in the view

    2 In tht u call the URL

    regards,

    amit

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2009 at 09:50 AM

    Thanks Guys for your quick answers,

    But, I want to display an URL IN A VIEW of my application and not in a new browser.

    I think we can't achieve this with method CREATE_EXTERNAL_WINDOW

    Am I right?

    Kr

    Karim

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      One thing you can do-

      create a view container element in a view and try to embed the application inside this.

      Or

      you can have Portal IFRAME in latest versions.

      Regards,

      Lekha.

      Edited by: Lekha on Oct 15, 2009 3:30 PM

  • avatar image
    Former Member
    Oct 15, 2009 at 09:59 AM

    this is not possible

    Add comment
    10|10000 characters needed characters exceeded