ralphm
Active Member
When entering a voucher in P0411 we need to update a field not included in the begin/edit/end document functions. The way we are going about it is saving the key of the voucher to variables and once the OK button has been pressed on W0411K the app returns to W0411A. In the Clear screen before add, W0411A, event rules we have a table I/O updating using the saved key and field we want updating (if the saved key is populated). The problem is, it is not working 100% af the time e.g. yesterday it failed once out of 75 vouchers. We are assuning that the record has not finished being written when we try to update it. So we have changed the last end doc to run synch but that might be a red herring as the two forms are running with transaction processing on so that the F0411 and F0911 get updated when the OK button is pressed on W0411K.
Is the commit at that point Asynch?
Can we change that?
Is the only solution, to put a loop in before updating the F0411 and guaranteeing that the record is there to update?
Is the commit at that point Asynch?
Can we change that?
Is the only solution, to put a loop in before updating the F0411 and guaranteeing that the record is there to update?