Angular momentum is always calculated relative to a point, called the origin. The angular momentum is different depending on what point you choose to consider the origin. So let's take the example of the Earth. The Earth spins on its own axis. That produces an angular momentum relative to the center of the Earth of
\vec{L}_{spin} = I \vec{\omega}
But the Earth also is orbiting around the sun. So if we are computing the origin to be the sun, there is an additional term, the orbital angular momentum, given by:
\vec{L}_{orbital} = \vec{r} \times \vec{p}
The total angular momentum about the sun is the sum of these two terms:
\vec{L}_{total} = \vec{L}_{spin} + \vec{L}_{orbital}
By picking the center to be the center of mass of the object, you can make the orbital angular momentum zero.