Check Whether the SAP GUI Server is Busy
While SAP GUI is waiting for some action to be completed, such as loading a large table or uploading a file, the status of the SAP GUI server is busy. If you know that the previous automation action might cause the SAP GUI server to be busy, it is best practice to check its status before sending the next automation action. If it is not busy, you perform the action. Otherwise, return a 'server is busy' message. To check the current status, you can use the isSAPGuiBusy method, which is available at page and item level.
If your current automation action could make the SAP GUI server busy, wrap the automation action inside an asynchronous block.