Using Cursor in ABAP
Declare the Cursor: · The cursor is declared by the DATA statement with keyword CURSOR. Open Cursor Statement: · Open cursor opens a database cursor for a specific selection, defined after FOR. · It links the cursor variable (cr_spfli) to the database cursor. · If the cursor variable is already opened then it cannot be reopened. · The statement takes the cursor position at the first row of the resulting set. · The select statement declared after FOR doesn’t enter any record into any table or work area. · Select single statement cannot be used here. · ...