Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

Commit Work and Wait - delay??

$
0
0

Hi Experts,

I have a program with calls a normal function module (NOT update task). Inside this FM, there are Insert / Update / Delete performed on database tables.

After this function module, we call 'COMMIT WORK AND WAIT'. The issues is all records are not updated in DB, when I click on 'back' button immediately after button 'save'.

 

I cannot check in debugger since, when I give it some time, all records are saved correctly.

 

Flow is:

- Select some items (say 40), do some change.

- Click on button 'SAVE':

...

Call FUNCTION <xyz>.

COMMIT WORK AND WAIT.

...

 

- Immediately, Click on button 'BACK'.

--? sometimes, some records are not updated? (5 items are not updated)

 

How can this be corrected? Wouldn't WAIT, actually wait for COMMIT to finish?

Would it help to add - 'set update task local' or checking sy-subrc to be 0 (while loop) until 'commit work and wait' is finished?


Viewing all articles
Browse latest Browse all 8768

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>