The present invention relates to compounds of general formula I, wherein R1, LP, (Het)Ar1, (Het)Ar2 and n are as defined in the application, which have valuable pharmacological properties, and in particular bind to the GPR119 receptor and modulate its activity.