Move all midi parts to one track

Hello, is there such a function ?

No, but what are you trying to accomplish actually?
see below

With the command MIDI > Merge MIDI in Loop… you can merge selected MIDI parts from several tracks into one MIDI part on a new MIDI track.