My latest puppy Akita (now 3.5 years old) didn't poop, but he did pee and lay in it in his crate. This is unusual for an Akita because they are typically very clean.
My initial response was to scold, take him out for a pee, which didn't always work, then clean and put him back in.
This had zero effect on the behavior, even when I made his crate the size of a shoe box. He would happily lay in his own pee.
Eventually I interpreted this behavior as a call for attention and an opportunity to get out of the crate.
My response was to give him absolutely no attention at all. No scolding, no emotion, and as little out of the crate time as possible. I would tether him to the crate with 12" of lead, clean the crate, clean him, and dump him right back in. Absolutely no talking, not even to my wife. As minimal event as I could make it. No attention at all. That fixed it.
Can't say that your dog is in the same category, but just throwing this out as a data point.