Hi,
do you really need the payment details ?
It would probably be much easier if account determination for 0001 would be sufficient to determine the account. Or maybe if you do it without oayment details and change the offsetting account with Badi FVD_ACCOUNT_DETERMIN for these flows.
Kind regards,
Michael