P&L structure as master data, with drill-down
Accounts and their links to expense categories and cost centers live in tables the users maintain themselves. New accounts are added through the screen, without touching the query. Any line opens the documents behind it, and the detail adds up to the total clicked.