Skip to Content
0
Nov 13, 2007 at 11:37 AM

ALV grid toolbar event - button added multiple times

177 Views

I have an ALV grid whose TOOLBAR event I handle to add a custom button.

If I lock windows on my PC and then unlock it, my handle_toolbar method immediately gets called again (without any other user interaction), which means my custom button gets added twice! I am <b>not</b> using the set_toolbar_interactive anywhere in my code.

Even worse, this appears to be a stack, so if I lock and unlock Windows 5 times, I get 5 instances of my custom button on the toolbar. I have tried the same thing with an SAP standard program (BCALV_GRID_05), but the event doesn't get triggered when windows is unlocked.

Any ideas? I can get round it by checking whether my button has already on the toolbar before adding it again, but I'd like to get to the bottom of it!

Cheers,

Andrew