As for this invention, formula (i): < Conversion 1 >We disclose the consecutive N heteroarirubipirorijiniruhueniruamido derivative which is substituted, and claim. In formula, R and R1, R2, R3, R4, X and m, n and p are, as stated in this bill. From as for details, as for the chemical compound of this invention, it is mojiyureta of the H3 receptor, therefore, by the H3 receptor which includes the disease which it is related to especially central nervous system remedy of the various diseases which adjust and/or it is useful as the medicine in preventing. Furthermore, in addition, this invention discloses the production method of the N heteroarirubipirorijiniruhueniruamido derivative where formula (i) is substituted and the intermediate field for that.本発明は、式(I): 【化1】の一連の置換されたN-ヘテロアリールビピロリジニルフェニルアミド誘導体を開示しており、そして請求する。式中、R、R1、R2、R3、R4、X、m、n及びpは、本明細書に記載された通りである。より詳しくは、本発明の化合物は、H3受容体のモジュレーターであり、従って、特に中枢神経系に関連する疾患を含むH3受容体によって調節されるさまざまな疾患の治療及び/又は予防における薬剤として有用である。さらに、また、本発明は、式(I)の置換されたN-ヘテロアリールビピロリジニルフェニルアミド誘導体の製造方法及びそのための中間体を開示する。