cancel
Showing results for 
Search instead for 
Did you mean: 

Call URL inside an abap web dynpro view

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

this is not possible

Former Member
0 Kudos

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

Former Member
0 Kudos

Ya, that is not possible.

Inside same view, you had IFrame which could achieve this.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.