the purpose:
Extract table data, divide and output multiple excel
Example: There are 10000 tables,
Divide by 1000 and output 10 Excel files.
sauce:
OPEN CURSOR
DO
FETCH NEXT CURSOR
CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
ENDDO
CLOSE CURSOR
An error has occurred.
The cursor used in a FETCH or CLOSE CURSOR command is not open.
either not been opened yet or has already been closed.
be closed explicitly with the CLOSE CURSOR command or implicitly with
the COMMIT WORK command, or with a screen change.
I want a solution! ! ! thank you.