Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module for Finding Country code from Tax code

Former Member
0 Kudos

Hi,

There is a function module JURISDICTION_DETERMINE which returns the Tax Code for a particular Country and state. I want the reverse of this. I need to get the information about country depending on the Tax Code.

Is there a Standard Function Module for it or will I have to make a Z Function module.

I did a F4 search but did find a FM which will serve my purpose. Just wanted to confirm on this.

4 REPLIES 4

Former Member
0 Kudos

Hi,

I hope the following link will help you to solve your problem,

Regards,

Harish

Former Member
0 Kudos

Hi

Check this fm JURISDICTION_DETERMINE_CHECK..

Regards

Divya

0 Kudos

This FM is fetching me Tax Jurisdiction Code.

but my requirement is to get Country, state, region etc from Tax Code

Former Member
0 Kudos

Hi,

The function module JURISDICTION_DETERMINE_CHECK is called to check or determine the Tax Jurisdiction Code. This function module encapsulates these functions with regard to address management.

This function module is implemented differently in the SAP R/3 Enterprise and in SAP CRM/BBP. In both cases, external software can be connected using the CA-TAX interface. In R/3, the table TTXJ can be used as a check table.

The Customizing settings are defined in R/3 in the Customizing tables TTXD and TTXC, whereas they are defined in CRM/BBP in the tables CRM_TAX_JP; CRM_TAX_P and CRM_TAX_F.

If the Tax Jurisdiction Code is stored in the SAP regional structure for the city, street, or street section, it is determined and returned in the address record. The value for the smaller subdivision takes precedence over a value for a larger division (Street section - Street - City). An existing value is not overwritten.

The regional structure check occurs before the function module JURISDICTION_DETERMINE_CHECK is called. The following address fields are copied to the function module JURISDICTION_DETERMINE_CHECK: Tax Jurisdiction Code, Country, Region, Postal Code, City, and County (the value for "County" is stored in the address in the "District"(CITY2) field). The function module JURISDICTION_DETERMINE_CHECK can complete missing field values when external software is connected.

When external software is connected to the CA-TAX interface in R/3, Customizing settings can be made (table TTXD) so that the function module JURISDICTION_DETERMINE_CHECK checks an existing Tax Jurisdiction Code against the external software first. If the value of the external software is recognized as being invalid, the valid Tax Jurisdiction Code stored in the address data is determined using the external software.

If the Tax Jurisdiction Code cannot be determined uniquely from the address data, the user can choose the value in a dialog window in dialog. When processing the determination without dialog, an error message is returned if the Tax Jurisdiction Code is not unique.

Thanks,

Rahul