Novel heterocyclic compounds of the formula I in which R1, R2, R3, R4 and D have the meanings indicated in Claim 1, are activators of glucokinase and can be used for the prevention and/or treatment of Diabetes Typ 1 and 2, obesity, neuropathy and/or nephropathy.