See Chapter Create company closing period new fact (GESABV) in the GUIDE Company financial statements -> company carry forward.