Using SAP Query for data retrieval: We want to use an existing SAP query (transaction SQ01) in order to read some data. How can we read the grid cells in the resulting grid control?

We suggest you use one of the following workarounds

(a)
Use a copy of the SQ01 query where you set a different output format: either use "SAP table" output and then read the table control in your InputScript, or use "Output to file" so that you immediately read the file after executing the query.

(b)
Call SAP GUI Scripting from your InputScript in order to press the "Export" button; command "ApplyGUIScript", or use our "Controls" component with a call to VB.NET or VBScript.

Please note that (b) requires the activation of SAP GUI scripting on your SAP server (SAP profile).