ERCP is a procedure that enables your physician to examine the pancreatic and bile ducts. A bendable, lighted tube (endoscope) about the thickness of your index finger is placed through your mouth and into your stomach and first part of the small intestine (duodenum).