LIVER
One of the main functions of the liver is the production of bile. Bile is important for the digestion of fats. Fats are first of all is oily and hydrophobic, which means they don't dissolve well in water or water-based solutions.
The liver also can play a role in the digestive system by the way that it filters out toxins. Some things that the digestive system absorbs can build up in the blood and poison the tissues of the digestive tract or other organs.
Another function of the liver is to help digestive system to modulate the amount of sugar in the blood. When the digestive system absorbs excess sugar in the form of glucose, the liver may take some of this energy and convert it into a highly compact carbohydrate called glycogen. This allows the liver to store excess sugar when it has been gone. During periods in which the digestive system is not absorbing sugar, the glycogen can be converted back into glucose and used to keep blood sugar levels high--even during times of hunger.
PANCREAS
It is part of the digestive system and produces important enzymes and hormones that help break down foods. The pancreas has an endocrine function because it releases juices directly into the bloodstream, and it has an exocrine function because it releases juices into ducts. The pancreatic duct runs the length of the pancreas and joins the common bile duct in the head of the pancreas. These ducts join to form the ampulla of water which then empties into the duodenum.
Also produces the hormone insulin and allocate it into the bloodstream in order to regulate the body's glucose or sugar