In addition, the 2003 Ranger uses a different engine management system than the 1999 Ranger. This means that the transmission from the 2003 Ranger will not be compatible with the engine control unit in the 1999 Ranger.
For these reasons, it is not possible to install a 2003 Ford Ranger 4.0 4x4 transmission in a 1999 Ranger.