on 03-04-2007 10:43 AM
Hi,
In my application i have a Main view which has 'enter confirmation' button on it. On this button click, I am opening a web dynpro application in new browser window. Once user does the confirmation from this new window success message is given by pop up.
This scenario was working fine until yesterday.
But now when i click the enter Confirmation button it opens my new window with the following error message.
--->
The following error text was processed in the system DV1 : No Button 6 Is Defined for Popup POPUP
The error occurred on the application server NAP60_DV1_42 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WD_WINDOW~SUBSCRIBE_TO_BUTTON_EVENT of program CL_WDR_INTERNAL_WINDOW========CP
Method: CALL_POPUP of program /1BCWDY/3EP6MN6SQ7PQ54C8657W==CP
Method: IF_COMPONENTCONTROLLER~CALL_POPUP of program /1BCWDY/3EP6MN6SQ7PQ54C8657W==CP
Method: HNDL_EVENT_RAISED of program /1BCWDY/3EP6MN6SQ7PQ54C8657W==CP
Method: IF_WDR_COMPONENT_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/3EP6MN6SQ7PQ54C8657W==CP
Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_COMPONENT===CP
Method: FIRE_EVENT of program CL_WDR_COMPONENT==============CP
Method: IFWDR_INTERNAL_API~RAISE_EVENT of program SAPLWDR_RG_PROXY_FACTORY
Method: IF_COMPONENTCONTROLLER~FIRE_EVENT_RAISED_EVT of program /1BCWDY/3FKCGR73M7K5FXCPBTEF==CP
Method: FIRE_EVENTS of program /1BCWDY/3FKCGR73M7K5FXCPBTEF==CP
Please Help!!!!
~Veena.
Hi Veena.
How do you call the subscribe_to_button_event method?
It seems that you pass a wrong value of a button (6) to subscribe your event to.
Do you use a static value of if_wd_window?
Please post the method call.
Cheers,
Sascha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for the quick response .. I have the following code in my WDDOINIT method to display a popup for the confirmation.
l_api_main = wd_this->wd_get_api( ).
l_cmp_api = wd_comp_controller->wd_get_api( ).
lr_node = wd_context->get_child_node( name = 'ORDER_DATA' ).
Elem_Op = lr_node->get_element( ).
Elem_Op->get_attribute( exporting name = 'ORDER_NUMBER' importing value = AUFNR ).
l_api_main = wd_this->wd_get_api( ).
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
data: l_i_question type STRING_TABLE,
l_wa_question type string.
concatenate 'Confirmation of order' AUFNR 'saved' into l_wa_question
separated by space .
append l_wa_question to l_i_question.
CALL METHOD l_window_manager->create_popup_to_confirm
EXPORTING
text = l_i_question
button_kind = if_wd_window=>CO_BUTTONS_OK
RECEIVING
result = mr_popup_window .
CALL METHOD mr_popup_window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'CLOSE_WINDOW'
action_view = l_api_main .
mr_popup_window->open( ).
CATCH CX_WDR_RT_EXCEPTION.
RAISE EXCEPTION TYPE cx_wdr_rt_exception.
ENDTRY.
...
waiting for ur reply..
Hi Veena.
I just tested you code in my system:
data: l_i_question type STRING_TABLE.
data: l_api_main type ref to IF_WD_VIEW_CONTROLLER.
data: l_cmp_api type ref to IF_WD_COMPONENT.
data: l_window_manager type ref to IF_WD_WINDOW_MANAGER.
data: mr_popup_window type ref to IF_WD_WINDOW.
l_api_main = wd_this->wd_get_api( ).
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
CALL METHOD l_window_manager->create_popup_to_confirm
EXPORTING
text = l_i_question
button_kind = if_wd_window=>CO_BUTTONS_OK
RECEIVING
result = mr_popup_window .
CALL METHOD mr_popup_window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'TEST'
action_view = l_api_main .
mr_popup_window->open( ).
... and it worked without problem. The main difference is that i call the pop up inside an action handler method not in wddoinit.
So you should find out whether any changes where made to the system / application.
Cheers,
Sascha
Veena,
was your system upgraded / patched since the above code worked?
I just wonder because you said it worked a few days ago without problems?
Please check the static attributes of if_wd_window (e.g. co_button_ok) for their
values. Maybe the system was patched and the one you use is obsolete.
Cheers,
Sascha
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.