Symptom
Error "ISO code AE is not assigned to a currency key in the valid time period" occurs during the import of MT940 bank statement file via Manage Bank Statements App.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Access Manage Bank Statements App.
- Upload a MT940 bank statement file.
- Error message "ISO code AE is not assigned to a currency key in the valid time period" happens.
Cause
The issue occurs due to the existence of line breaks between the keyword /OCMT/ and Currency/Amount in tag :86: of the MT940 file.
According to SWIFT specification, no line breaks within information are allowed for unstructured 86-field file. In other words, lines are only automatically concatenated in a structured 86-field file, not in an unstructured one.
Resolution
Require bank to provide valid SWIFT files, either the ones that do not cut the OCMT-information with a line break or the ones with proper structured 86-fields.
Keywords
ISO code AE, MT940 bank statement, error message, currency key, valid time period, SWIFT file, structured 86-field, unstructured file, /OCMT/, Currency/Amount, bank statement import, Manage Bank Statements application. , KBA , FI-BL-PT-BA-2CL , bank statement (Public Cloud) , Problem
SAP Knowledge Base Article - Public