Solution : https://service.sap.com/sap/support/notes/517659 (SAP Service marketplace login required)
Key words : 
internal work table itab_downpay, internal table itab_downpay, source code corrections, attached program corrections, attached advance correction, account assignment information, order item, accounting document, final invoice, payment clearing
Related Notes : 
       
| 504044 | Incorrect values for down payment clearing item | 
| 113347 | Down payment process. as of Release 4.0x (standard) |