Solution : https://service.sap.com/sap/support/notes/645024 (SAP Service marketplace login required)
Key words : 
terms error message f5 580 tax1, system issues error message f5580, program error, standard system, symptom en, enter documents, batch input, automatic correction, local currency, tax reason
Related Notes : 
       
| 1171092 | F5 060 w/ direct tax in FB60/FB70 Argentina/Peru | 
| 1099913 | F5 580 for balance in 2nd or 3rd local currency | 
| 994329 | F5 580 Incorrect tax amount in second/third local currency | 
| 717944 | Incorrect tax amount in 2nd/3rd local currency - F5 580 | 
| 499030 | Incorrect tax amounts in parallel currency in BI | 
| 426645 | Incorrect tax amounts in parallel currency |