I am using SELECT....ENDSELECT to fetch the data in Chunks. Whenever I get a chunk of data I am creating a separate task for that which calls RFC enabled Function Module.
In Simple words....
CALL FUNCTION <XYZ> STARTING NEW TASK STARTNAME.
In the first iteration, I am selecting 1000 records and it is working fine, but when the program runs for the second iteration it is giving a dump DBIF_RSQL_INVALID_CURSOR.
What could be the problem? I searched SDN and found few answers like for the second time it will not give a dump. But, I have a vague idea here. Anybody please provide me with a solution.