Hello,
It is a common error and you get the error if Work hours/period(DIVGV) in IT0008 is empty.
If somehow users have recorded IT0007 later than IT0008 Work hours/period(DIVGV) is zero and it gives error. Normally it should be 225 for Turkey and is filled automatically when IT0007 is recorded. But IT0007 should be recorded before IT0008.
So I suggest you to make Work hours/period field available in the screen and write 225 in the field and run payroll again.
Or from SE16N first check whether that field is empty or not.