Activate SAP window

Hi guys,
I currently do some SAP automation.
Finally, I found out that when the robot opens excel file - there is SAP enter window.
Sometimes It does click on Log In, and sometimes no, because the window is not active I suppose.
If I am right, how can make this window active?

Please refer this activity!