Ansicht
Dokumentation
ABAPOPEN_CURSOR_MAINQUERY - OPEN CURSOR MAINQUERY
CL_GUI_FRONTEND_SERVICES - Frontend Services BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
OPEN CURSOR, mainquery_clauses
... ${ FROM source
FIELDS select_clause $}
$| ${ select_clause
FROM source $}
$[$[FOR ALL ENTRIES IN itab$]
WHERE sql_cond$]
$[GROUP BY group$] $[HAVING group_cond$]
$[ORDER BY sort_key$]
$[db_hints$] ...
Effect
Possible clauses and additions of the main query after OPEN CURSOR. All the same clauses are possible as for a standalone SELECT statement except for SINGLE. The clauses define the result set, which can be accessed using the FETCH statement. The result set is regarded as having multiple rows.
The addition FOR ALL ENTRIES cannot be used if common table expressions are defined using WITH.
Example
OPEN CURSOR statement with all possible clauses.
RFUMSV00 - Advance Return for Tax on Sales/Purchases RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 2420 Date: 20240329 Time: 160147 sap01-206 ( 31 ms )