Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.