Symptom
- An error occurs when creating a Sales Order (SO) via EDI/integration.
- Error message: "Region XX is not defined for YY." (Message no. AM215)
- Regions cannot be maintained in CBC.
- The system diagnosis states the address has a region not permissible for the specified country, and advises to check Customizing: Region.
Where XX represents the region code and YY represents the country code.
Environment
- SAP S/4HANA Cloud Public Edition
- Sales EDI Messages (Public Cloud)
Reproducing the Issue
- Create a sales order automatically from a purchase order using scope item 3ZB (intercompany scenario).
- Process the inbound OrderRequest XML where the country is YY and no region value is provided.
- During sales order creation, the application raises: "Region XX is not defined for YY." (AM215).
Cause
- Inbound partner conversion (EDPAR) is misconfigured, mapping external partner IDs to an internal customer belonging to a different country that carries region “41”.
- During SO creation, the country (from the payload) and the mismatched region (from the mapped customer) are combined, producing an invalid region country combination and error AM215.
Resolution
- Review inbound partner conversion entries (EDPAR) used by the integration for relevant partner roles (for example, AG, RE, RG, WE).
- Correct the mappings so that external partner IDs for the country code point to the correct internal customer numbers for all partner roles, and not to a customer from another country.
- Reprocess the failed message or retry the sales order creation after the EDPAR corrections.
- Verify the standard address of the mapped NL customer contains a valid NL region code (maintain a valid NL region if missing).
- If a truly new region is required for NL, configure regions in CBC per guidance (refer to: Configuration of New Regions in SAP S/4HANA Cloud).
- For the mapping setup please refer to the setup instructions for scope item 2EL available in the best practices explorer.
Keywords
am215, region not defined for country, region 41 not defined for nl, edi, sales order creation, scope item 3zb, partner conversion, edpar, country region validation, address validation, t005s, intercompany, mapping error, cbc configuration , KBA , SD-SLS-EDI-2CL , S/4HANA: Sales EDI Messages (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public