{"audience":"Master data teams, receivables and payables accounting, internal control and business partner/CVI consultants.","authorization_objects":[{"note":"Business partner maintenance by authorization group","object":"B_BUPA_GRP"},{"note":"Business partner maintenance by role","object":"B_BUPA_RLT"},{"note":"Supplier company code data maintenance","object":"F_LFA1_BUK"},{"note":"Displaying the check log","object":"S_APPL_LOG"}],"components":[],"countries":[],"effort_days_max":10,"effort_days_min":6,"effort_size":"M","faq":[{"a":"The BDT check event runs in the BP screen. Load programs and interfaces call the same rule class before saving, so the same rules apply whichever path the data comes from and incorrect rows are listed in the load log.","q":"Are business partners from mass loads and interfaces checked too?"},{"a":"The rules apply only to new records and changes. The audit report scans existing business partners with the same rules; the master data team uses the list to correct old records in a planned way.","q":"What about existing incorrect records?"},{"a":"Format and check digit rules are kept in a separate class per country and tax number type. They are checked against current rules during installation; when something changes, only the rule of that country is updated.","q":"What happens if the tax number format changes by regulation?"}],"features":[{"code":"log","label":"Line-by-line result and error log","note":"Every blocked save is logged with rule and user."},{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"background","label":"Runs as a background job","note":"The audit report can run in the background for all business partners."},{"code":"transport","label":"Delivered as a transport request","note":""}],"functions":[{"name":"BAPI_BANK_GETDETAIL","role":"Reads the bank key master data"},{"name":"BAPI_BUPA_CENTRAL_GETDETAIL","role":"Reads central business partner data in the audit report"}],"gap":"The standard BP transaction checks the general structure of the IBAN and the length of the tax number for some countries; it does not check the check digit of the local tax ID, whether the IBAN matches the bank key and account number, or whether the same IBAN or tax number is already used by another business partner. Field status settings can make a field mandatory, but rules that depend on role and country, such as 'tax office mandatory for domestic suppliers', cannot be set up.","id":"ca-business-partner-validation-checks","industries":[],"input_columns":[],"kind":"program","language":"en","lastmod":"2026-11-18","logic":"1. Rules are kept in a setup table: business partner grouping, role (customer, supplier), country, check (IBAN, bank consistency, tax number format, duplicate check, mandatory field) and level (error or warning).\n2. The checks run in a function module registered with BUS7 for the BDT check event (DCHCK), which runs on save in the BP transaction; messages are returned to the BP screen with BUS_MESSAGE_STORE and the record cannot be saved while there is an error. Mass load programs and interfaces call the same rule class before saving.\n3. Bank: for every bank line in BUT0BK the IBAN is validated with CHECK_IBAN for check digits and country length; the bank key and account number resolved with CONVERT_IBAN_2_BANK_ACCOUNT are compared with those on the line, and the bank key must exist in BNKA. If the same IBAN exists for another business partner in TIBAN/BUT0BK, a warning is issued.\n4. Tax number: the format is checked by tax number type in DFKKBPTAXNUM (local check digit calculation in addition to the standard TAX_NUMBER_CHECK); separate types are used for organisations and persons. If the same tax number exists for another business partner, an error or warning is issued according to the rule.\n5. Mandatory fields: address fields (ADRC), email (ADR6), tax office and company code data (KNB1/LFB1 reconciliation account, payment terms) are checked by role and country.\n6. Every blocked save is written to the application log. The audit report scans existing business partners with the same rules and lists incorrect records created before the rules were introduced. In S/4HANA customers and suppliers are maintained only with BP; in ECC the CHECK_ALL_DATA method of the CUSTOMER_ADD_DATA and VENDOR_ADD_DATA BAdIs is used for XD01/XK01.","module":"CA","object_type":"enhancement","output_columns":[{"calculated":false,"formula":"","label":"Business partner","source_field":"PARTNER","source_table":"BUT000"},{"calculated":false,"formula":"","label":"Name","source_field":"NAME_ORG1","source_table":"BUT000"},{"calculated":false,"formula":"","label":"Grouping","source_field":"BU_GROUP","source_table":"BUT000"},{"calculated":true,"formula":"IBAN, bank consistency, tax number, duplicate or mandatory field","label":"Check","source_field":null,"source_table":null},{"calculated":true,"formula":"Value checked (IBAN or tax number masked)","label":"Field value","source_field":null,"source_table":null},{"calculated":true,"formula":"Error or warning","label":"Level","source_field":null,"source_table":null},{"calculated":true,"formula":"Description of the rule","label":"Message","source_field":null,"source_table":null}],"parameters":[{"example":"","kind":"select_option","label":"Business partner","name":"S_PARTNER","ref_field":"BUT000-PARTNER","required":false},{"example":"","kind":"select_option","label":"Business partner grouping","name":"S_BUGRP","ref_field":"BUT000-BU_GROUP","required":false},{"example":"TR","kind":"select_option","label":"Country","name":"S_LAND","ref_field":"ADRC-COUNTRY","required":false},{"example":"FLVN01","kind":"parameter","label":"Role (customer, supplier or both)","name":"P_ROLE","ref_field":"","required":false},{"example":"X","kind":"checkbox","label":"Only records violating a rule","name":"P_ERR","ref_field":"","required":false}],"part_of":[],"performance":"Run the duplicate IBAN and tax number search only when the field has changed and use indexed fields (TIBAN-IBAN, DFKKBPTAXNUM-TAXNUM). In the audit report, read business partners in packages and run it in the background for large volumes.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=ca-business-partner-validation-checks","related":["ca-business-partner-address-completeness","ca-business-partner-bank-details-change-control","ca-duplicate-business-partner-detection"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Business partner maintenance; checks the general IBAN structure but not the local tax number check digit, bank consistency or mandatory fields by role and country.","tcode":"BP"},{"note":"Field status settings can make fields mandatory by grouping; country-dependent rules and duplicate checks cannot be set up.","tcode":"SPRO"}],"summary":"A development that checks, when a customer or supplier business partner is saved, the consistency of IBAN and bank details, the country-specific format of the tax number and the company's mandatory fields. Incorrect or incomplete master data is stopped before it is saved; rules are kept in a setup table by role, grouping and country.","tables":[{"access":"read","join_on":"","role":"Business partner general data, grouping and category","table":"BUT000","variant":"both"},{"access":"read","join_on":"BUT0BK-PARTNER = BUT000-PARTNER","role":"Bank details and IBAN","table":"BUT0BK","variant":"both"},{"access":"read","join_on":"TIBAN-BANKL = BUT0BK-BANKL AND TIBAN-BANKN = BUT0BK-BANKN","role":"IBAN to bank account link, duplicate IBAN check","table":"TIBAN","variant":"both"},{"access":"read","join_on":"BNKA-BANKS = BUT0BK-BANKS AND BNKA-BANKL = BUT0BK-BANKL","role":"Existence of the bank key","table":"BNKA","variant":"both"},{"access":"read","join_on":"DFKKBPTAXNUM-PARTNER = BUT000-PARTNER","role":"Tax number type and tax number","table":"DFKKBPTAXNUM","variant":"both"},{"access":"read","join_on":"","role":"Address fields","table":"ADRC","variant":"both"},{"access":"read","join_on":"ADR6-ADDRNUMBER = ADRC-ADDRNUMBER","role":"Email address","table":"ADR6","variant":"both"},{"access":"read","join_on":"","role":"Customer company code data: reconciliation account, payment terms","table":"KNB1","variant":"both"},{"access":"read","join_on":"","role":"Supplier company code data: reconciliation account, payment terms","table":"LFB1","variant":"both"},{"access":"write","join_on":"","role":"Application log of blocked saves","table":"BALHDR","variant":"both"}],"title":"Business Partner Save Checks for IBAN, Tax Number and Mandatory Fields","url":"https://nekuhub.com/en/programs/business-partner-save-checks-iban-tax-number-mandatory-fields/","vendor_id":"nekudos"}