cancel
Showing results for 
Search instead for 
Did you mean: 

Reg : URL in webdynpro

Former Member
0 Kudos

Dear all

I need to Get the URL link from my web dynpro report

im used below code. If i click the button it will not show the google site... Kindly help

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a Link To Action UI elemnet and implement an action for that.

In your case, In the Button Handler

In this handler write this 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/'
*    title          =
*    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( ).

Regards,

Lekha.

Edited by: Lekha on Aug 28, 2009 4:59 PM

Former Member
0 Kudos

Thaks Its working Fine.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

I have used this code and it is working fine.

METHOD onactionget_url .

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.

Former Member
0 Kudos

Thaks Mago..

Its working fine