Schematic representation of the pancreas. It lies across the upper abdomen retroperitoneally behind the stomach and is a gland.* 1. function: exocrine gland - Production of digestive secretions for the absorption of proteins, fats and carbohydrates. * 2. function: endocrine gland - production of the antagonistic hormones insulin and glucagon to regulate blood sugar.