Skip to Content
avatar image
Former Member

COMMIT WORK in a separate LUW from my program so that it does not effect the main program?

How can I do COMMIT WORK in a separate LUW from my program so that it does not effect the main program? Actually I am updating the BI system with my sales data using the Function /DMF/BI_SALES_DATA. In the main program we are fetching the sales data using the FETCH CURSOR. Now my requirement is to set the the commit after each fetch.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 06, 2017 at 08:13 AM

    Hi,

    Call the FM /DMF/BI_SALES_DATA (if it is RFC) in background task.

    ABAP Documentation - Call Function in background task

    Hope it helps.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 06, 2017 at 03:35 PM

    Consider call of the FM (or a RFC enabled wrapper) STARTING NEW TASK. Also in the OPEN CURSOR statement use the WITH HOLD option (to protect it against implicit database commit).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 06, 2017 at 05:03 PM

    I am not sure but why you need a Commit after fetching?

    Second you can call your FM in a new task and there perform the Commit(new task will not affect your main program)

    Add comment
    10|10000 characters needed characters exceeded