follow these manual steps in SAP:
Select the "Customize Local Layout" button on the toolbar.
Select "Script Development Tools".
Select "Do a hit test on the window".
Move your mouse to the object you want the ID of.
Click "Copy Id" in the Scripting Wizard.
Paste this ID into the function in your script.
Remove all text upto and including "wnd[n]/".
HI in the above steps
after selecting "Customize Local Layout" button on the toolbar.
Script Development Tools option is not present(I am using SAP730)