In a magnetic resonance apparatus having a scanner that generates a basic magnetic field in an imaging volume, and an operating method to acquire data from an entirety of a recording volume, wherein the scanner has a global shim coil acting on the entire imaging volume, and a local shim coil acting, with the global shim coil, on a sub-volume containing a region of interest, a first adjustment volume is established that contains the recording volume. A smaller, second adjustment volume is established containing the region of interest, and at most, the sub-volume. Using a field map of the basic magnetic field that covers the first adjustment volume, shim currents are respectively identified for the global shim unit, for homogenizing the first adjustment volume, and for the local shim unit, for homogenizing the second adjustment volume, accounting for the effect of the first shim currents on the second adjustment volume.