on 02-28-2008 12:29 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.