SAP Technology: Automatically Derive Tax Jurisdiction on Business Partner

/SAP Technology: Automatically Derive Tax Jurisdiction on Business Partner

SAP Technology: Automatically Derive Tax Jurisdiction on Business Partner

By |2018-12-28T21:37:39-04:00November 15th, 2013|SAP|0 Comments
  • SAP Technology

Insurance companies using business partner master data in SAP often need to default tax jurisdiction code on the business partner master record in order to be able to create a contract account.  Many choose to default this data in an interface or simply manually key in the data.  However, there is a simple and elegant way to automatically derive for the correct tax jurisdiction code based on configuration.  Follow these steps:

  • In SPRO, navigate to Cross-Application Components > SAP Business Partner > Business Partner > Basic Settings > Tax Jurisdictions > Using SAP Software > Assign Tax Jurisdictions to Regions and Postal Codes > Assign Tax Jurisdictions to Regions.  Here you can assign a default tax jurisdiction for each state:

Untitled.png
You could also assign jurisdictions by postal code, which is more specific (and accurate), but you would need to keep the configuration table up to date with values from a 3rd party vendor.  If you’re not calculating sales tax, then you can stick with the state defaults above.

  • In SE18, create an implementation of the BAdI called ADDR_TXJCD_CHECK.  In the method IF_EX_ADDR_TXJCD_CHECK~SWITCH_ADDRESS_FIELDS, paste the following code:
*  GRAB THE TAX JURISDICTION CODE BASED ON STATE AND COUNTRY
IF ( NOT IM_ADRC_STRUC-COUNTRY IS INITIAL ) AND ( NOT IM_ADRC_STRUC-REGION IS INITIAL ).
SELECT SINGLE TAXJURCODE FROM COMC_TAXJUR_REG INTO CH_TAXJURCODE
WHERE COUNTRY = IM_ADRC_STRUC-COUNTRY
AND REGION = IM_ADRC_STRUC-REGION.
ENDIF.

Activate everything and you are done.  The system will now default during address creation based on the state and country values in the configuration table from step 1.

About the Author:

Avatar
I have always been passionate about fixing broken business processes and cleaning up the mess left by enterprise software. It honestly bothers me to see companies spending hundreds of millions of dollars on IT projects, which motivated me to start Clear Software. Prior to founding Clear, I was a Senior Manager at Deloitte, where my teams implemented SAP at some of the largest organizations in the world.

Leave A Comment

This website uses cookies and third party services. Please review our privacy policy for additional information. Do you consent? Yes