cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tax number error or validation in Business partner

Swaroop_Nayak
Discoverer
0 Kudos
285

Hi Team,

There is one requirement that, while creating a Business partner (Supplier), when the user is entering the value in the TAX number field, it should trigger an error or warning that if the TAX number is wrong based on the State code or address.{Eg-While creating a supplier with region Karnataka, the tax code must be 29ABCDE1234F1Z0 for IN3, but if you choose another tax number 33ABCDE1234F1Z0 (tax number of Tamil Nadu) for IN3, it is picking up. It should throw an error.}

Can this feasibility be achieved, or any standard way to set this up?

Regards,

Swaroop Nayak

SAP S/4HANA Cloud Public Edition SAP S/4HANA Cloud Public Edition Sourcing and Procurement MM (Materials Management) 

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
SAP Champion
SAP Champion
0 Kudos

The current standard behavior is SAP Public Cloud validates GSTIN format (length, alphanumeric pattern) but does not check if the GSTIN state code matches the supplier’s region or address by default. This means a supplier with Karnataka address can enter a GSTIN starting with 33 (Tamil Nadu) without error.

Below approach you can try

In SAP S/4HANA Public Cloud, you can use Business Configuration (SSCUI) or Custom Fields and Logic (CFL) app. Implement a Validation BAdI such as BusinessPartnerTaxNumberCheck or similar logic in Supplier Master.

Logic:

  • Extract first two digits of GSTIN (state code).
  • Compare with Region code in BP address (table J_1ISTATECDM for mapping).
  • If mismatch → Raise error or warning.

Also check SAP notes 2441042 and 2884058

Answers (0)