Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Handling Open cursor logic while STARTING NEW TASK

Dear Experts,

Since I have to process huge number of records by selecting the stock information from MARD I am using the OPEN cursor logic to fetch the data from MARD table in packets of 10 K records.

I have encapsulated by processing logic in a RFC enabled FM and do the parallel processing by means of STARTING NEW TASK addition to run the parallel threads so as to improve the performance of the program.

However the 'STARTING NEW TASK' issues a IMPLICIT COMMIT due to which the CURSOR opened earlier by OPEN CURSOR WITH HOLD is getting closed and when the program encounters the FETCH NEXT CURSOR in subsequent iteration the program dumps saying the CURSOR is already closed.

Kindly provide your valuable inputs on how can I keep the CURSOR open at the same time run the parallel threads as well.




Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question