SAP DETERMINE_TXJCD_EXTERNALLY Function Module for Ermittlung des Tax Jurisdiction Code für einen Standort durch ext. System









DETERMINE_TXJCD_EXTERNALLY is a standard determine txjcd externally SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Ermittlung des Tax Jurisdiction Code für einen Standort durch ext. System processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for determine txjcd externally FM, simply by entering the name DETERMINE_TXJCD_EXTERNALLY into the relevant SAP transaction such as SE37 or SE38.

Function Group: FYTX
Program Name: SAPLFYTX
Main Program: SAPLFYTX
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function DETERMINE_TXJCD_EXTERNALLY pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'DETERMINE_TXJCD_EXTERNALLY'"Ermittlung des Tax Jurisdiction Code für einen Standort durch ext. System
EXPORTING
COUNTRY = "Land
REGION = "Region
* CITY = "Stadt
* COUNTY = "Ortsteil
ZIPCODE = "Postleitzahl
* PROCEDURE = "Kalkulationsschema
* ID_TAX_EXT = "ID des externen Steuersystems
* NO_DIALOG = "kein Dialog

IMPORTING
TXJCD = "Tax Jurisdiction Code
CITY = "Stadt
COUNTY = "Ortsteil

EXCEPTIONS
TXJCD_NOT_FOUND = 1 TXJCD_NOT_UNIQUE_IN_NO_DIALOG = 2 EXTERNAL_TXJCD_NOT_REQUIRED = 3 TXJCD_PROCESSING_NOT_REQUIRED = 4 RFCDEST_NOT_FOUND = 5
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFYTX_USER_001 User exit for changing tax fields (with max tax functionality)

IMPORTING Parameters details for DETERMINE_TXJCD_EXTERNALLY

COUNTRY - Land

Data type: TTX_TXJCD-COUNTRY
Optional: No
Call by Reference: No ( called with pass by value option)

REGION - Region

Data type: TTX_TXJCD-REGION
Optional: No
Call by Reference: No ( called with pass by value option)

CITY - Stadt

Data type: TTX_TXJCD-CITY
Optional: Yes
Call by Reference: No ( called with pass by value option)

COUNTY - Ortsteil

Data type: TTX_TXJCD-COUNTY
Optional: Yes
Call by Reference: No ( called with pass by value option)

ZIPCODE - Postleitzahl

Data type: TTX_TXJCD-ZIPCODE
Optional: No
Call by Reference: No ( called with pass by value option)

PROCEDURE - Kalkulationsschema

Data type: TTX_TXJCD-PROCEDURE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ID_TAX_EXT - ID des externen Steuersystems

Data type: TTX_TXJCD-ID_TAX_EXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_DIALOG - kein Dialog

Data type: TTX_TXJCD-ID_TAX_EXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for DETERMINE_TXJCD_EXTERNALLY

TXJCD - Tax Jurisdiction Code

Data type: TTX_TXJCD-TXJCD
Optional: No
Call by Reference: No ( called with pass by value option)

CITY - Stadt

Data type: TTX_TXJCD-CITY
Optional: No
Call by Reference: No ( called with pass by value option)

COUNTY - Ortsteil

Data type: TTX_TXJCD-COUNTY
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

TXJCD_NOT_FOUND - Tax Jurisdiction Code nicht ermittelbar

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TXJCD_NOT_UNIQUE_IN_NO_DIALOG - TXJCD nicht eindeutig ermittelbar bei NO DIALOG

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EXTERNAL_TXJCD_NOT_REQUIRED - TXJCD braucht nicht EXTERN ermittelt zu werden

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TXJCD_PROCESSING_NOT_REQUIRED - TXJCD braucht nicht ermittelt zu werden

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

RFCDEST_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for DETERMINE_TXJCD_EXTERNALLY Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_txjcd  TYPE TTX_TXJCD-TXJCD, "   
lv_country  TYPE TTX_TXJCD-COUNTRY, "   
lv_txjcd_not_found  TYPE TTX_TXJCD, "   
lv_city  TYPE TTX_TXJCD-CITY, "   
lv_region  TYPE TTX_TXJCD-REGION, "   
lv_txjcd_not_unique_in_no_dialog  TYPE TTX_TXJCD, "   
lv_city  TYPE TTX_TXJCD-CITY, "   
lv_county  TYPE TTX_TXJCD-COUNTY, "   
lv_external_txjcd_not_required  TYPE TTX_TXJCD, "   
lv_county  TYPE TTX_TXJCD-COUNTY, "   
lv_txjcd_processing_not_required  TYPE TTX_TXJCD, "   
lv_zipcode  TYPE TTX_TXJCD-ZIPCODE, "   
lv_rfcdest_not_found  TYPE TTX_TXJCD, "   
lv_procedure  TYPE TTX_TXJCD-PROCEDURE, "   
lv_id_tax_ext  TYPE TTX_TXJCD-ID_TAX_EXT, "   
lv_no_dialog  TYPE TTX_TXJCD-ID_TAX_EXT. "   

  CALL FUNCTION 'DETERMINE_TXJCD_EXTERNALLY'  "Ermittlung des Tax Jurisdiction Code für einen Standort durch ext. System
    EXPORTING
         COUNTRY = lv_country
         REGION = lv_region
         CITY = lv_city
         COUNTY = lv_county
         ZIPCODE = lv_zipcode
         PROCEDURE = lv_procedure
         ID_TAX_EXT = lv_id_tax_ext
         NO_DIALOG = lv_no_dialog
    IMPORTING
         TXJCD = lv_txjcd
         CITY = lv_city
         COUNTY = lv_county
    EXCEPTIONS
        TXJCD_NOT_FOUND = 1
        TXJCD_NOT_UNIQUE_IN_NO_DIALOG = 2
        EXTERNAL_TXJCD_NOT_REQUIRED = 3
        TXJCD_PROCESSING_NOT_REQUIRED = 4
        RFCDEST_NOT_FOUND = 5
. " DETERMINE_TXJCD_EXTERNALLY




ABAP code using 7.40 inline data declarations to call FM DETERMINE_TXJCD_EXTERNALLY

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single TXJCD FROM TTX_TXJCD INTO @DATA(ld_txjcd).
 
"SELECT single COUNTRY FROM TTX_TXJCD INTO @DATA(ld_country).
 
 
"SELECT single CITY FROM TTX_TXJCD INTO @DATA(ld_city).
 
"SELECT single REGION FROM TTX_TXJCD INTO @DATA(ld_region).
 
 
"SELECT single CITY FROM TTX_TXJCD INTO @DATA(ld_city).
 
"SELECT single COUNTY FROM TTX_TXJCD INTO @DATA(ld_county).
 
 
"SELECT single COUNTY FROM TTX_TXJCD INTO @DATA(ld_county).
 
 
"SELECT single ZIPCODE FROM TTX_TXJCD INTO @DATA(ld_zipcode).
 
 
"SELECT single PROCEDURE FROM TTX_TXJCD INTO @DATA(ld_procedure).
 
"SELECT single ID_TAX_EXT FROM TTX_TXJCD INTO @DATA(ld_id_tax_ext).
 
"SELECT single ID_TAX_EXT FROM TTX_TXJCD INTO @DATA(ld_no_dialog).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!