Skip to Content
avatar image
Former Member

Can we use RFC function module between open cursor and close cursor in SAP ABAP ?

Dear Experts,

I have requirement to update Ztable entries(Large Data) from one system to another system. By getting data in packet size, i have used open, fetch and close cursor statements.

for example i got 1,00,000 records in 1st loop, so I need to pass that 1,00,000 records to another system using one RFC function module.

but unfortunately after one loop it is closing the cursor.

Kindly Let me know is there anyway to update same .



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 20, 2018 at 07:48 AM

    Yes with 2 addition and restriction that commit should not be done and no other FM should be called within Fetch(again to prevent commit).

    1- cursor with Hold --> Open Cursor with Hold @define_cursor for select statement

    2. RFC FM with addition KEEPING LOGICAL UNIT OF WORK --> Call function function_name destination dname keeping local unit of work

    Add comment
    10|10000 characters needed characters exceeded