hi guys, ive got a 1.7dti (y17dt) and the engines gone bang!

now im going to get another engine, a recon 1.7dti is about £500
but the 2.0dtl engine out of a mk4 sxi and co i can get for £300

has anyone done this before and if so what do i need to change from the old 1.7dti engine?