Hi,
Step 1. Find out which context element this button is linked to.
(There should be a binding that turns the button on and off.)
- Open the WebDynpro in SE80, go to the relevant View, click on the button.
- On the right-hand-side of the screen, look for the 'enabled' property.
- Click on the green tick next to it.
- This should show you a context element (for example 'ACTIVATE_FLAG')
Step 2. Search the webdynpro code for this context element name (ACTIVATE_FLAG)
(To do this you need to find the class name that holds the code.)
- Click on the top-level Web-Dynpro Component
- Choose menu WebDynpro Components > Check > Extended Check
- This will show you 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.
Enjoy!
Paul