GL tables

Good morning,

I need to extract YTD balances based on an optional field linked to the account number. I can not find the tables that keep the optional field data as well as a file that keeps balances per account.

Any suggestions? Thanks.