WARNING: This page is about a different car, the 2018 BMW 340i, 2017 BMW 340i, and 2016 BMW 340i. However, it is still accessible from the selected car via links, so may be relevant.
Slide the DME control unit (2) into the holder for the DME control unit and lock with the clamps (1).