Skip to Content
0

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

Dec 06, 2017 at 07:48 AM

75

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Always Learner Dec 06, 2017 at 08:13 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Dont use Background task as it is now obsolete.

0
Raymond Giuseppi
Dec 06, 2017 at 03:35 PM
0

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).

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 06, 2017 at 05:03 PM
0

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)

Share
10 |10000 characters needed characters left characters exceeded