cancel
Showing results for 
Search instead for 
Did you mean: 

who is setting the Handler_Name in WebDynpro

former_member204255
Participant
0 Kudos

Hi

who is setting  the Handler_Name in WebDynpro general?

Handler_Name is "ONACTIONON_DFLT_TEXT", but I am expecting   "ONACTIONON_CLOSE".

There is something wrong, How can I investigate this problem?

Best regards

Hakan

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member204255
Participant
0 Kudos

Hi Harsha,

thank you I will check out.


Regards

Hakan

former_member204255
Participant
0 Kudos


Hi Harsha,

do you mean the popup above in my posting (see screenshot above with arrows)?

Or do you mean the popup after clicking the "windows close cross" ?

Regards

Hakan

harsha_jalakam
Active Contributor
0 Kudos

Hi Hakan,

I am referring to above screenshot.

Regards,

Harsha

former_member204255
Participant
0 Kudos

Dear All,

I have searched for terms as subscribe, subscribe_to_button, IF_WD_WINDOW=>CO_BUTTONS etc.

I dind't have success with my search, related to the affected views and windows.

Search Approach:


Click on the top-level Web-Dynpro Component

Choose menu WebDynpro Components > Check > Extended Check

This will show a class name, eg /1BCWDY/P7WNAJXIQX3FPXKCT51F==CP

Go to SE24 and copy this name in (without the '==CP').

Do a search in this class for 'ACTIVATE_FLAG'

Set an (external) breakpoint on the interesting lines of code.

The Handler_Name is still "ONACTIONON_DFLT_TEXT" instead of ONACTIONON_CLOSE or

ONACTIONON_CANCEL.

Regards

Hakan

harsha_jalakam
Active Contributor
0 Kudos

Hi Hakan,

The right place to check the code is point where the pop up is being generated.

Regards,

Harsha

harsha_jalakam
Active Contributor
0 Kudos

Hi Hakan,

Please check the event handler that you have assigned to the corresponding even you are looking for.Seems like you have assigned different event handler  for the action/event you are checking with.

Regards,

Harsha

former_member204255
Participant
0 Kudos

Hi Harsha,

thank you for this hint.


Please check the event handler that you have assigned to the corresponding even you are looking for.Seems like you have assigned different event handler  for the action/event you are checking with

I didn't assign any event handler.  If you mean a view with assignment so please note it is a pop up window.

On clicking the " windows close cross" another window is opening.

Normally this "another window" pops up  when you click the "Button" shown by the arrow below. They both have the same

behaviour (windows close cross and button).

I would like to know who is setting  the Handler_Name, how can I analsyse this issue.

Handler_Name is "ONACTIONON_DFLT_TEXT", but I am expecting   "ONACTIONON_CLOSE".

Regards

Hakan

harsha_jalakam
Active Contributor
0 Kudos

Hi Hakan,

Please check the code at the instance where the pop up is triggered.An event might have been assigned there through subscribe to button event.By screenshot it seems like it is pop up window with button set IF_WD_WINDOW=>CO_BUTTONS_YESNOCANCEL and I suspect cancel has same functionality as of closing the window , hence the event while closing the window and clicking on cancel button are responding to same event.

Please check the following link, in section 3, for understanding more about triggering events and handling them . 

Regards,

Harsha

Former Member
0 Kudos

Hi,

You can also set your custom actions for popup window using below code

lo_window_reference->subscribe_to_button_event(

        button = if_wd_window=>co_button_yes "If YES button

        action_name = 'YES' "Action name

        action_view = l_api ).

Thanks

KH