Devendra patil,
Primary Stresses exist even the pipe is in hot conditions, so it shud be compared with SH (SH is the minimum code stress allowable) only...code is just comparing with the extreme maximum temperature conditions for safe design.....
Sri..