Topic: general ledger and Bank balance entry

How to put the opening balance of all GL accounts in new accounting year or at beginning?