Causes. 1  The pancreas in the digestive system. The pancreas in the digestive system The pancreas is a long, flat gland that lies horizontally behind your stomach. 2  Pancreatic cancer. Pancreatic cancer Pancreatic cancer is cancer that forms in the cells of the pancreas.