Solution : https://service.sap.com/sap/support/notes/717944 (SAP Service marketplace login required)
Key words : 
error message f5 580, small amount posted, group currency reason, attached program corrections, 3rd local currency, local currency, enter documents, batch input, system issues, automatic correction
Related Notes : 
       
| 1171092 | F5 060 w/ direct tax in FB60/FB70 Argentina/Peru | 
| 994329 | F5 580 Incorrect tax amount in second/third local currency | 
| 645024 | Incorrect tax amount in second local currency |