ERCP is a procedure that allows your doctor to see the small tubes inside your body called the pancreatic and bile ducts. These tubes are near your stomach. They carry digestive juices from your liver and pancreas to the intestines.
For ERCP, your doctor uses a flexible lighted tube called an “endoscope.” The endoscope, or scope, is about as thick as your index finger. It goes through your mouth into your stomach and the first part of the small intestine, called the “duodenum.” Then the doctor puts a very small, flexible plastic tube through the scope and injects some dye that shows up on X-rays. This procedure allows your doctor to see the ducts and how well they are working.