ABAP dump is coming when retriving data between select-endselect.
Runtime Errors DBIF_RSQL_INVALID_CURSOR
Except. CX_SY_OPEN_SQL_DB
The problem cannot be resolved without correcting the application
program.
The statements MESSAGE, COMMIT WORK, ROLLBACK WORK, CALL SCREEN,
BREAK-POINT, WAIT, CALL FUNCTION ... DESTINATION, CALL FUNCTION ...
STARTING NEW TASK, RECEIVE RESULTS, CALL SELECTION-SCREEN, CALL
DIALOG, CALL TRANSACTION cannot be used within a database
loop.
You can collect the data needed for these statements together in an
internal table and process them
in a loop.
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"DBIF_RSQL_INVALID_CURSOR" "CX_SY_OPEN_SQL_DB"
Can you please give the OSS notes no. if anything is available.