(4) Pancreas has both endocrine and exocrine functions. Its endocrine function is to produce the hormones insulin and glucagon. The exocrine function of the pancreas helps the digestive system in the processing of proteins, fats and carbohydrates in food.