SAP Function TAX_NUMBER_CHECK - Check Tax Numbers

Parameter Reference Type Length Default Optional Text
COUNTRY SADR-LAND1 C 3 Country Key
NATURAL_PERSON_FLAG KNA1_BF-STKZN C 1 'X' X Natural Person
REGION SADR-REGIO C 3 SPACE X Region
STKZU KNA1_BF-STKZU C 1 SPACE X Country-Specific Check
TAX_CODE_1 KNA1_BF-STCD1 C 16 SPACE X Tax Number 1
TAX_CODE_2 KNA1_BF-STCD2 C 11 SPACE X Tax Number 2
TAX_CODE_3 STCD3 C 18 SPACE X Tax Number 3
TAX_CODE_4 STCD4 C 18 SPACE X Tax Number 4
TYPE_OF_TAX_CODE_1 KNA1_BF-STCD_TYP C 2 SPACE X Tax Number Type

Exception Text
DIFFERENT_FPRCD Different Provincial Tax Codes in STCD1 and STCD2
NOT_VALID Check Unsuccessful


This function module checks the fields Tax Number 1 and Tax Number 2using the rules defined in table T005.
The following additional checks are made against the motor vehiclecountry key:
Country,,Code,,Tax Number 1,,Tax Number 2
Argentina,,RA,,×
Belgium,,B,,×
Brazil,,BRA,,×,,×
Denmark,,DK,,,,×
France,,F,,×
Italy,,I,,×,,×
Norway,,N,,,,×
Portugal,,P,,×
Spain,,E,,×
Sweden,,S,,,,×
In order to carry out the checks, the function module also readsinformation from other fields, as described in the following.

Argentina
The field TYPE_OF_TAX_CODE_1 is used to check tax number 1. This fieldspecifies what type of tax number is transferred in the field TAX_CODE_1
, and thus which rule the function module checks it with.

Belgium
To check the Belgian tax numbers, the function module uses the fieldSTKZU, which specifies whether an additional country-specific checkshould be made.

Italy
To check the tax number 1, the field NATURAL_PERSON_FLAG is used as animport parameter, with the default value 'X':

  • If the flag is not set (NATURAL_PERSON_FLAG = ' '), the business partner
  • is not a natural person, and tax number 1 is checked using the rulesdefined for tax number 2.
    • If the flag is set, both tax numbers are checked using their own rules.

1572730BP: Tax Number: Switzerland UID Number check.
1542807Mexiko: Prüfung der Steuercodes für Einmalkunden
1235175BP: Validation for foreign natural persons in Spain-II
371273Peru: Tax numbers as of 1. January 2001
1157769BP:TaxNumber: Spanish TaxNumber 1 validation for first digit
1346948BP: TaxNumber: Argentinean C.D.I. Number check
1286317NL: BSN Tax Number Check Shifted to STCD2 Field
711998Croatian specific Tax Number Check
1260454BP: TaxNumber: Croatian Tax Number 1 for Organization - II
1232218Bulgarien: Prüfung der Steuercodes für Einmalkunden
1180074BP: Validation for foreign natural persons in Spain updated
1086901BP:TaxNumber: Belgium Enterprise Number check
1131436BP: Tax Number: Tax Number Check for SERBIA
1103589BP: Netherland: Tax number check for BECON number.
1057843BP: TAXNUMBER: Croatian Tax Number 1 for Organization
930509Italy: Checking the tax codes for one-time customers
647385Croatia: Changes on TAX_NUMBER_CHECK TAX_CODE_1
352630Greece: Tax number/ VAT registration number check
556965Tax numbers of category IT1 and IT2 are not created
558971Venezuela: Tax number is rejected
511357Validation of VAT registration number at the mobile client