Hi..
I know that production orders with material aren't settled to cost center.
So, I recommend the following procedure.
1. You get the balance for some old production orders which need to close now.
2. You manually generate FI document using t-code FB50 or F-02 as below.
=> The balance amount is positive.
DR) Expense account Cost Center balance amount /
CR) Expense account Production order number balance amount
=> The balance amount is negative
DR) Expense account Production order number balance amount /
CR) Expense account Cost Center balance amount
3. After you create FI document, you can confirm whether some old production orders have the
zero amount. You close them.