Constrain the same nodes/surfaces/curves in the direction of the enforced displacement/rotations. It is important that only the nodes that have the enforced displacement are constrained in the direction of the displacement. All other constraints will be treated as actual boundary conditions.
In the next steps we will apply loads.