Since the internal flange is likely to be subject to zero gauge pressure if the interior of the pipe is vented to the interior of the vessel, the flange design is outside the scope of ASME Section VIII. If the pipe/flange sees differential pressure, I have used a separate design run to calculate the requirements.