The main difference between these alloys is the allowable stress values, per ASME Section II, Part D;
Grade P22 has generally, at high temperature, an higher allowable stress compare with P12. In general you cannot simply substitute a pipe in grade P22 with an identical one in grade P12.
It's...