There are things you can obtain from your vet to put on their food to help deter them from the practice.
It's fairly common in puppies, but you want to clean up their feces asap, too.
You can read about it here:
ASPCA - Virtual Pet Behaviorist - Coprophagia (Eating Feces)