cancel
Showing results for 
Search instead for 
Did you mean: 

Canu00B4t call url from Web Dynpro ABAP

Former Member
0 Kudos

Hi all,

I found some hits here in the forum regarding that, and copied the following into my WD application:

*********************************************************

data: short_url type string.

Move 'http://www.google.de/' to short_url.

DATA: API_COMPONENT TYPE REF TO IF_WD_COMPONENT.

DATA: WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.

DATA: WINDOW TYPE REF TO IF_WD_WINDOW.

API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).

WINDOW_MANAGER = API_COMPONENT->GET_WINDOW_MANAGER( ).

WINDOW = WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW( URL = short_url MODAL = ABAP_FALSE ).

WINDOW->OPEN( ).

*********************************************************

But I get a shortdump, with the following information:

The main program was "SAPMHTTP ".

In the source code you have the termination point in line 31

of the (Include) program "CL_GUI_HTML_VIEWER============CM002".

This is the standard coding for that:

CALL METHOD super->constructor

EXPORTING

clsid = clsid

shellstyle = shellstyle

parent = parent

lifetime = lifetime

name = name

EXCEPTIONS

cntl_system_error = 1

OTHERS = 2.

CASE sy-subrc.

WHEN 0.

WHEN 1.

RAISE cntl_install_error.

WHEN OTHERS.

---> RAISE cntl_error.

Is anything wrong in the system, or is my coding wrong?

Thanks and regards

Jochen

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use the "Pattern" functionality to insert the code. Try the old construct ie.

CALL METHOD ...->CREATE_EXTERNAL_WINDOW

EXPORTING ...

RECEIVING ...

Hope it helps.

Regards

Kir Chern