Skip to Content
1
Former Member
Apr 04, 2012 at 02:28 PM

How to send data of SELECT loop to external RFC?

363 Views

Hi threre,

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!

ENDSELECT.

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!

ENDSELECT.

What is the recomended way to to this?

Thanks on advance,

Andi