SAP RE_GET_TAXCODE_INFORMATION Function Module for
RE_GET_TAXCODE_INFORMATION is a standard re get taxcode information SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 re get taxcode information FM, simply by entering the name RE_GET_TAXCODE_INFORMATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVF1
Program Name: SAPLFVF1
Main Program: SAPLFVF1
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RE_GET_TAXCODE_INFORMATION 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 'RE_GET_TAXCODE_INFORMATION'".
EXPORTING
* I_MWSKZ = "
* I_BUKRS = "
* I_TXJCD = "
IMPORTING
E_KSCHL = "
E_KTOSL = "
E_EXTIC = "
E_MWART = "
EXCEPTIONS
UNKNOWN_ERROR = 1 ERR_IN_COND_TYPES = 2 ERR_IN_PRICING_DATA = 3 T638S_T007B_INCONSISTENCY = 4 OUT_IN_TAX_COMPONENTS = 5 INPUT_INCOMPLETE = 6 INPUT_INCONSISTENT = 7
IMPORTING Parameters details for RE_GET_TAXCODE_INFORMATION
I_MWSKZ -
Data type: ACCIT-MWSKZOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: ACCIT-BUKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TXJCD -
Data type: ACCIT-TXJCDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RE_GET_TAXCODE_INFORMATION
E_KSCHL -
Data type: T683S-KSCHLOptional: No
Call by Reference: No ( called with pass by value option)
E_KTOSL -
Data type: T683S-KVSL1Optional: No
Call by Reference: No ( called with pass by value option)
E_EXTIC -
Data type: TIPZB-JOPTIERTOptional: No
Call by Reference: No ( called with pass by value option)
E_MWART -
Data type: VITAXD-MWARTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
UNKNOWN_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERR_IN_COND_TYPES -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERR_IN_PRICING_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T638S_T007B_INCONSISTENCY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OUT_IN_TAX_COMPONENTS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_INCOMPLETE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_INCONSISTENT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RE_GET_TAXCODE_INFORMATION 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_e_kschl | TYPE T683S-KSCHL, " | |||
| lv_i_mwskz | TYPE ACCIT-MWSKZ, " | |||
| lv_unknown_error | TYPE ACCIT, " | |||
| lv_e_ktosl | TYPE T683S-KVSL1, " | |||
| lv_i_bukrs | TYPE ACCIT-BUKRS, " | |||
| lv_err_in_cond_types | TYPE ACCIT, " | |||
| lv_e_extic | TYPE TIPZB-JOPTIERT, " | |||
| lv_i_txjcd | TYPE ACCIT-TXJCD, " | |||
| lv_err_in_pricing_data | TYPE ACCIT, " | |||
| lv_e_mwart | TYPE VITAXD-MWART, " | |||
| lv_t638s_t007b_inconsistency | TYPE VITAXD, " | |||
| lv_out_in_tax_components | TYPE VITAXD, " | |||
| lv_input_incomplete | TYPE VITAXD, " | |||
| lv_input_inconsistent | TYPE VITAXD. " |
|   CALL FUNCTION 'RE_GET_TAXCODE_INFORMATION' " |
| EXPORTING | ||
| I_MWSKZ | = lv_i_mwskz | |
| I_BUKRS | = lv_i_bukrs | |
| I_TXJCD | = lv_i_txjcd | |
| IMPORTING | ||
| E_KSCHL | = lv_e_kschl | |
| E_KTOSL | = lv_e_ktosl | |
| E_EXTIC | = lv_e_extic | |
| E_MWART | = lv_e_mwart | |
| EXCEPTIONS | ||
| UNKNOWN_ERROR = 1 | ||
| ERR_IN_COND_TYPES = 2 | ||
| ERR_IN_PRICING_DATA = 3 | ||
| T638S_T007B_INCONSISTENCY = 4 | ||
| OUT_IN_TAX_COMPONENTS = 5 | ||
| INPUT_INCOMPLETE = 6 | ||
| INPUT_INCONSISTENT = 7 | ||
| . " RE_GET_TAXCODE_INFORMATION | ||
ABAP code using 7.40 inline data declarations to call FM RE_GET_TAXCODE_INFORMATION
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 KSCHL FROM T683S INTO @DATA(ld_e_kschl). | ||||
| "SELECT single MWSKZ FROM ACCIT INTO @DATA(ld_i_mwskz). | ||||
| "SELECT single KVSL1 FROM T683S INTO @DATA(ld_e_ktosl). | ||||
| "SELECT single BUKRS FROM ACCIT INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single JOPTIERT FROM TIPZB INTO @DATA(ld_e_extic). | ||||
| "SELECT single TXJCD FROM ACCIT INTO @DATA(ld_i_txjcd). | ||||
| "SELECT single MWART FROM VITAXD INTO @DATA(ld_e_mwart). | ||||
Search for further information about these or an SAP related objects