If you’ve had pain in your upper abdomen or lost weight without trying, your health care provider might want to do a test called E-R-C-P. E-R-C-P stands for endoscopic retrograde cholangiopancreatography.