ERCP is a specialized technique primarily performed to study the ducts of the gallbladder, pancreas, and liver. This procedure combines the use of X-rays and endoscope which allows the physician to view the inside of the stomach, duodenum, and ducts in the biliary tree and pancreas. ERCP is used to check for gallstones, blockage of bile duct, diseases of the liver, and pancreases.