cancel
Showing results for 
Search instead for 
Did you mean: 

"UNCAUGHT_EXCEPTION" "CX_WDR_RT_EXCEPTION"

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Veena.

At the moment I have no idea. I do not have access to my system now.

The button 6 is the cancel button. But you only register for button ok.

Did you change anything or upgraded the system?

Sorry mate, but if no one other has an idea I will check in again tommorow.

Cheers,

Sascha

Former Member
0 Kudos

okie .. Thnx !

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanx Sascha...

though its still giving the same error

Former Member
0 Kudos

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