Found it. I debugged the code unit for changing the prod order status. It revealed that it was a particular operation in the production routing which was a Subcontract op.
It was the subcontract work center that did not have the Gen. Prod. Posting Group set.
Problem solved