Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV: Problem with toolbar event

Former Member
0 Kudos

Hi ALV-experts,

I have a dynpro with a header area where I display an ALV table. Below this I have a subscreen with a tabstrip control and two tabs.

In the ALV toolbar I defined an own button. This button gets deactivated after pressing this button. I achieved this by the option "disabled" in the structure stb_button within the event handler for the toolbar event.

This works all fine so far. If I start the dynpro and click on the button in the ALV-toolbar the buttons gets deactivated afterwards. But I have I jump between the tabs before I press the ALV-toolbar button, the button does not get deactivated.

The debugger does not go into the event handler of the toolbar event. I also did system debugging of the method SET_TOOLBAR of the CL_GUI_ALV_GRID-class. Here I pass in both cases the command

 raise event toolbar e_object = m_cl_toolbar e_interactive = i_interactive. 

but in the second case (when I change the tabs before I press the button) the event handler is not executed and I don't know why. I also tried to register the event handler for all instances of the ALV still with the same result.

The ALV method set_toolbar_interactive( ) did also not solve the problem.

I couldn't find any SAP note about an issue for this event.

Does anybody have an idea or a solution for this problem?

EDIT:

Problem solved, it was typo!

Thanks in advance and regards,

Martin

Edited by: Martin Fischer on Jul 7, 2010 4:53 PM

1 REPLY 1

Former Member
0 Kudos

The problem was a typo!