a old programm uses CPI-C to send data of a SELECTION loop to a external server:
SELECT abc into buf FROM table.
COMMUNICATION SEND ID CONNID BUFFER buf.
* Works fine!
The selected data is very BIG - so we can NOT use internal tables or multiple open the Selection and skip rows.
Now - we want to replace all CPI-C communication by RFC calls.
But the SELECT loop ends with the first call of a external RFC function (implicit COMMIT WORK).
SELECT abc INTO buf FROM table.
CALL FUNCTION 'ZSEND' DESTINATION 'EXTERNAL'.
* here COMMIT WORK is called implicit and the loop ends!
What is the recomended way to to this?
Thanks on advance,