SAP AUtomation for navigationg to new window

Hi,
I am entering value to a element in table. if the entry is found then it is navigating to other window other wise it is showing status bar as no entry found. How can I do this