Hi..
You check whether date of creation for finished-good material is after material ledger closing using t-code MM04.
If so, and mm document related to the material was generated for closing period, you should cancel material ledger closing and re-execute it again.