In this procedure, a long tube called an endoscope is moved down your throat, through your stomach and into the upper part of your intestines where the bile and pancreatic ducts drain. If your doctor recommends ERCP for you, it is your decision whether to have this procedure or not.