Let R be a commutative ring, and let S be a commutative semigroup. We study a semigroup version of Karpilovsky's Problem [K, chapter 7, problem 9] concerning the unit group of a group ring. We give a preciser decomposition theorem for the unit group of a semigroup ring.