The reason seems to be that a command is sent via GUI scripting, whereupon a popup window should open. However, SAP does not send this window. As a result, the corresponding command is regarded by SAP as not-yet-processed and the subsequent scripting...
Are you using SAP GUI Scripting-commands for your automation-task?We get a similar behaviour, completely independent of the SAP GUI version. This happens under 7.60, 7.70 and 8.00. Mostly after a longer runtime, but also after just a few records.
There ist no need to call your SAP-Application-object "Application". You can call it ewhatever you want. E.g. "SAPGUI". Or "APP". Than from line 6 on you can change all "Application" to "SAPGUI" or "APP".
And which GUI-Version? If 7.60:SAP GUI Version 7.60 PL5 Hotfix 1 causes a complete failure of the SAP GUI scripting interface when processing SAP table controls. Since SAP table controls are processed in many SAP transactions, this version of the SAP...