You specify for each assignment key which branch should be used if automatic postings are to be generated in a certain company code.
You can enter an assignment keys in the parameters of the payment program, for example.