cancel
Showing results for 
Search instead for 
Did you mean: 

Error in displaying external window

former_member740473
Participant
0 Kudos

hi friends,

i am developing an application for sending an email

with the guidence of saptechnical

i am creating a button TO with an action

in that button i am using the following code

data lo_componentcontroller type ref to ig_componentcontroller.

lo_componentcontroller = wd_this->get_componentcontroller_ctr( ).

lo_componentcontroller->showaddressbookpopup( ).

and in show addressbookpopup method in component controller i write the following 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_this->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

wd_this->gr_window =

lo_window_manager->create_window(

window_name = 'Addressbookwindow'

title = 'Model Dialoug Box'

message_display_mode = if_wd_window=>co_msg_display_mode_selected

message_type = if_wd_window=>co_msg_type_none

).

wd_this->gr_window->open( ).

but whene ever i click on the to button i got the error as

Addressbookwindow does not exist within component

can any on help me....!

thanks in advance,

karunakar

Accepted Solutions (0)

Answers (1)

Answers (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Karunakar,

the window name has to be in uppercase... change Addressbookwindow to ADDRESSBOOKWINDOW. And also make sure you have a window by name ADDRESSBOOKWINDOW.

BR, Saravanan

former_member740473
Participant
0 Kudos

hi saravanan

thanks for you quickreply

my problem is solved....!

Thanks,

karunakar