Hi there,
I am currently trying to find a way how to 'avoid rolling back' changes done to a field in a set of records after an error is encountered at a later stage i.e. say you have 5 records in total and you manage to successfully modify the field in the first 4 but if an error is encountered in record 5 then the first 4 records are saved with the change and not rolled back.
I am trying to avoid the use of COMMIT after every record change and was wondering if there is a way how to do it otherwise.
Just FYI , the change in the record is happening by calling a function in a codeunit. I have also tried to call the codeunit function from a report i.e. in report I have the below;
IF MyCodeunit.MyFunction(Record) THEN BEGIN
//Make field modification
END;
Thanks in advance!
*This post is locked for comments
I have the same question (0)