If you define additional key figures that are relevant for accounting, they are populated using the derivation tool. You can influence the derivationusing the following BAdIs: BADI_TPM_ACCKEYFIG_TRAC, BADI_TPM_ENHANCE_ACCFIG_TRAC, and BADI_TPM_MAPKEYFIG_TRAC, of the enhancement spot ES_TPM_ACCKEYFIG_TRAC
In there is data type TRACS_ACCNT_KEYFIG_TARGETS (tr. SE11) where you're not abel to find all fields that you need.
But you can modify the relevance of a flow for posting, as well as the fields
of an accounting document, in the posting interface for parallel valuation areas via the BAdI TPM_ACCIF_TRAC
In Method ACCIT_EXIT there are structures CH_ACCIT_D and CH_ACCIT_C of type ACCIT.
In type ACCIT (tr. SE11) there all fields that you described in your first post.