A method and system for suppressing metal artifacts in magnetic resonance (MR) images of slices of a patient containing a metallic implant. The method and system can use a Slice Encoding for Metal Artifact Correction (SEMAC) sequence. In the method and system, MR data of each slice is fully sampled in k-space in a reference region located in a center of k-space in a phase-encoding direction and a central section in a slice-selection direction. The MR-data of each slice outside the reference region can be undersampled in k-space. The fully sampled MR data from the reference regions of each slice can be combined to generate a reference data set for reconstructing an MR image of each slice.