A problemaproporcionar GPR40 Active agent which has, as an active ingredient, a novel compound that has a GPR40 agonist Action, a Salt of the compound, Salt or a solvate of the compound or the like, particularly, an insulin Secretagogue and and a Therapeutic Agent and / or pro Fil u00e1ctico against diabetes, obesity, and other diseases.Means to solve the problemaun Compound of the formula (i) wherein n is 0 to 2; p is 0 to 4; J is 0 to 3; K is 0 to 2; a ring a is an optionally substituted aryl Group is a group with l or heterocycle is optionally replaced with a Ring b l; it's a D Ring A ring and benzene, pyridine or pyrimidine Ring; X is o, S,ID - rhasta la'rson; and specific groups, a Salt of the compound or a Salt or solvate of the compound.ProblemaProporcionar un agente que activa GPR40 que tiene, como un ingrediente activo, un compuesto novedoso que tiene una acción agonista GPR40, una sal del compuesto, un solvato de la sal o el compuesto, o similares, particularmente, un secretagogo de insulina y, y un agente terapéutico y/o profiláctico contra diabetes, obesidad, u otras enfermedades.Medios para solucionar el problemaUn compuesto de la Fórmula (I)donde n es 0 hasta 2; p es 0 hasta 4; j es 0 hasta 3; k es 0 hasta 2; un anillo A es un grupo arilo que está opcionalmente sustituido con L o un grupo heterociclico que está opcionalmente sustituido con L; un anillo B es un anillo de benceno, un anillo de piridina, o un anillo de pirimidina;X es O, S, -NR-; y Rhasta Rson grupos específicos, una sal del compuesto, o un solvato de la sal o el compuesto.