SAP Knowledge Base Article - Public

3788328 - country-based mandatory/optional vat number in business partner not supported via standard configuration; badi alternative and app limitation, s/4hana cloud public edition

Symptom

  • Business requirement to control the VAT number field (mandatory vs. optional) in Business Partner for both customers and suppliers by country.
  • VAT should be mandatory for all countries except the United States; for the United States, it should be optional.
  • Unable to achieve this without creating additional account groups.

Environment

SAP S/4HANA Cloud Public Edition

Cause

Standard configuration does not support making the VAT number field mandatory/optional based on country without creating additional account groups.

Resolution

  1. Note that the requirement is not supported as standard through account groups or field attributes per Business Partner Type for country-based control.
  2. As an alternative, implement the Cloud BAdI MDBPCV_VALIDATE_BP to add custom validation logic that enforces VAT number as mandatory for selected countries and optional for others.
  3. Be aware of an important limitation: this BAdI runs for all channels except the “Maintain Business Partner” app; it will apply in API-based creation, migration tools, and other apps, but not in the Maintain Business Partner app itself.

See Also

Keywords

business partner, vat number, tax id, country-specific field, mandatory optional, bp type, configure field attributes, account group screen layout, mdbpcv_validate_bp, validation badi, maintain business partner app, customer supplier, cbc, field control, s4hana cloud , KBA , LO-MD-BP-2CL , Business Partners for Public Cloud , Problem

Product

SAP S/4HANA Cloud Public Edition all versions