@burcinc-- I agree with @ysmina, there are many reasons for putting in a pancreatic stent.
I had one put in because of pancreatitis. The doctors found out that my bile duct was very narrow and the inflammation in my pancreas had narrowed it even further. The bile was barely able to pass through the duct.
I was starting to experience jaundice and its symptoms like yellowing of my skin, nausea and dizziness. After the stent was put in place, the symptoms slowly resolved in several weeks. I'm glad I had the surgery before my jaundice got worse.