SAP automation error

Dear All,

I am working on SAP automation POC. In which I am opening the SAP application and selecting the connection (only 1st time its working) and posting the data.

SAP automation POC is working fine but I am getting the error while selecting the connection type (screenshot attached). When I am recording the activity Ist time then its working, but if I will close the window and re-open then it’s not working.