Purpose You want to use SAP Query (transaction SQ01) for data retrieval. SAP Query provides us with a convenient way to display data from various sources without programming. Connecting multiple tables, simple testing options, predefined info sets are supported, and much more as well. The origin of the tool goes back to SAP R/2 and is available in the latest S/4HANA systems. The output is mostly displayed in the ALV list viewer. |
Solution Use the function module
/guixt/submitreport and
specify the query name and the user group as defined in SQ01.
1. Example with variant
// copy query data into own table 2. Example with variant, using the GuiXT Open Call interface
// Set parameters
for SAP Query call
// copy query
data into own table 3. Example with selection parameters, using the GuiXT Open Call interface
// Set parameters
for SAP Query call
// fill parameter
table
Set
V[paraminfo.selname]
"FIN_KUNN"
4. Performance aspect: create your own query with a minimum of columns It can be unnecessarily slow to run a query with, say, 60 columns, possibly from different database tables, when you only need a few columns. Copy the query in SQ01 and remove unneeded columns. It probably also makes sense to create your own SQ01 user group, e.g. "GUIXT", and to copy all "data access" queries into this user group.
|
Components |