By determining erythrocyte porphobilinogen deaminase activity and plasma/urine/fecal porphyrin levels, a specific differential diagnosis of AIP, hereditary coproporphyria (HCP), and variegate porphyria (VP) can be performed later. Here, HMBS is linked to autoimmune pancreatitis.