SAP Knowledge Base Article - Public

3667180 - Error Messages : "Please enter a bank country/region (R1/256)" or "Enter the bank key (AR/195)"

Symptom

  • When using the API_BUSINESS_PARTNER to create Business Partner bank details, the following error messages may appear:
    • "Please enter a bank country/region (R1/256)" or "Enter the bank key (AR/195)".
  • The expectation is that the conversion should occur in the API from the IBAN input.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Use the API endpoint "/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner('')/to_BusinessPartnerBank" to create a Business Partner Bank entry.
  2. Provide a JSON payload with the IBAN field.
  3. Observe the error messages.

Cause

The issue occurs because the API requires all mandatory data fields to be explicitly provided in the request payload when it is called.

Resolution

  • The API functions as an interface between the calling application and the Bank dataset to update the relevant data. It does not handle data determination or redetermination, as these are dialog/GUI-driven behaviors that require user interaction.
  • Ensure that all required fields are included in the API payload when creating a Business Partner Bank entry (Business Partner, Bank Account, IBAN ,Bank Country Key, Bank Key).
  • Refer to the API documentation for the required fields and their formats: API_BUSINESS_PARTNER.

Keywords

sap s/4hana cloud, api_business_partner, business partner bank, error r1/256, error ar/195, enter bank country/region, enter bank key, iban, bankcountrykey, bankkey, sap netweaver, sap odata api, master data, business partner creation, api error troubleshooting. , KBA , LO-MD-BP-ODT , OData Service for Business Partner , Problem

Product

SAP S/4HANA Cloud Public Edition all versions