Hi.. Can i swap my z22yh engine by z18xer

I am guessing you have the Vectra C?
If so you will need all the body control ECU's as they are a full set along with the immobiliser chip and reader ring. Dave Gillbert did a similar conversion to allow a 2.2 turbo Vectra C to be built. He got a complete donar car in the end and swapped all the wiring looms and controllers over and after getting the Z20NET ECU remapped He had a Z22SET Vectra C.
As the Vectra C is full Canbus it's not as simple as just swapping the ECU over and it will work like in older cars.