Update no series without template


I want to update the same no series in table in multiple rows without templateI have a boolean variable when that variable is checked then no series update

For example I have 8 rows in a table first 4 rows of table is updated with same no series like 001 and next 4 then increment by 002