In this paper the structures with scale of ion inertial length (di) in flux ropes at the magnetopause are studied based on MMS measurements. The results show that currents (jm) of di scale are found to exist in many flux ropes with different scales, which flow in the -M direction in magnetopause local coordinates (i.e., in the same direction of the Chapman-Ferraro current at the magnetopause) and are carried by electrons' motion in the +M direction (vem). Within the current structures, magnetosheath and magnetospheric plasma populations are mixed; the magnetic field has open topology; ions are non-magnetized, while electrons are frozen-in with the magnetic field lines; the N-component of electric field (En), which is Hall electric field in nature, substantially enhances (up to about 20mV·m-1), accompanying with notable fluctuations. Detailed analysis shows that the current, separation of electrons' motion from ions and the Hall electric field are closely related to each other, and obey the general Ohm's Law. In addition, we have also analyzed the MMS measurements of magnetic reconnection events at the magnetopause. It is found that structures similar to those in flux ropes are also present inside the reconnection region in many cases. Their scales are of di length. The directions (magnitudes) of the Hall electric field EN, current filament jM and electron velocity veM are as same as (close to) those in flux ropes. On the bases of above observations and making use of the classical flux rope models, how the di-scale structures in flux ropes are formed is studied. It is suggested that they are likely to originate from the corresponding structures in the reconnection region at the magnetopause which play an essential role in the formation process of di-scale flux ropes.