The present invention relates to a method and a system for producing an elongated drug formulation being suitable for being injected through the skin of a patient with-out the use of a needle or a cannula. The drug formulation is produced by compressing a drug granulate in cavity of a system comprising a roller and a surface, wherein the roller roles over the surface thereby comprising the granulate to the formulation.