The present invention relates to 4-{2-[phenyl-3,6-dihydropyridin-1-yl]-2-oxoalkyl}-1-piperazin-2-one and 4-{2-[phenyl-2,5-dihydropyrrol-1-yl]-2-oxoalkyl}-1-piperazin-2-one derivatives, of general formula (I)in which A, B, m, R3 and n are as defined in Claim 1, to the preparation thereof and to the therapeutic use thereof.本發明係關於一種通式(I)之4-{2-[苯基-3,6-二氫吡啶-1-基]-2-酮基烷基}-1-哌-2-酮及4-{2-[苯基-2,5-二氫吡咯-1-基]-2-酮基烷基-1-哌-2-酮衍生物其中A、B、m、R3以及n係如在請求項1中之定義,其製備及其治療用途。