As you can also see every invoice has an entry in the payment reference from SD-side. Do you need this number? The automatic prepayment process can only work, if the invoice also shows the order code in payment reference. I guess, there are needed some changes of the customizing.
I guess, we should arrange the precondition for the process at first. After that we will go through the programs once again.