SAP CONVERT_TAXAUTHORITY Function Module for SAP Convert Tax Authority
CONVERT_TAXAUTHORITY is a standard convert taxauthority SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SAP Convert Tax Authority 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 convert taxauthority FM, simply by entering the name CONVERT_TAXAUTHORITY into the relevant SAP transaction such as SE37 or SE38.
Function Group: RPTA
Program Name: SAPLRPTA
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CONVERT_TAXAUTHORITY 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 'CONVERT_TAXAUTHORITY'"SAP Convert Tax Authority.
EXPORTING
BSI_TAX_NAME = "Tax authority in BSI Format
IMPORTING
SAP_AUTH_CODE = "Tax auuthority in SAP Format
EXCEPTIONS
STATE_UNKNOW = 1 T005U_READ_ERROR = 2 T5UTN_READ_ERROR = 3 WRONG_INPUT = 4 WRONG_SEQ_NUMBER = 5
IMPORTING Parameters details for CONVERT_TAXAUTHORITY
BSI_TAX_NAME - Tax authority in BSI Format
Data type: BTXTAXC-TAXCODEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CONVERT_TAXAUTHORITY
SAP_AUTH_CODE - Tax auuthority in SAP Format
Data type: T5UTZ-TAXAUOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
STATE_UNKNOW - State Name can not be found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T005U_READ_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T5UTN_READ_ERROR - Sequence number errror
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_SEQ_NUMBER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CONVERT_TAXAUTHORITY 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_bsi_tax_name | TYPE BTXTAXC-TAXCODE, " | |||
| lv_state_unknow | TYPE BTXTAXC, " | |||
| lv_sap_auth_code | TYPE T5UTZ-TAXAU, " | |||
| lv_t005u_read_error | TYPE T5UTZ, " | |||
| lv_t5utn_read_error | TYPE T5UTZ, " | |||
| lv_wrong_input | TYPE T5UTZ, " | |||
| lv_wrong_seq_number | TYPE T5UTZ. " |
|   CALL FUNCTION 'CONVERT_TAXAUTHORITY' "SAP Convert Tax Authority |
| EXPORTING | ||
| BSI_TAX_NAME | = lv_bsi_tax_name | |
| IMPORTING | ||
| SAP_AUTH_CODE | = lv_sap_auth_code | |
| EXCEPTIONS | ||
| STATE_UNKNOW = 1 | ||
| T005U_READ_ERROR = 2 | ||
| T5UTN_READ_ERROR = 3 | ||
| WRONG_INPUT = 4 | ||
| WRONG_SEQ_NUMBER = 5 | ||
| . " CONVERT_TAXAUTHORITY | ||
ABAP code using 7.40 inline data declarations to call FM CONVERT_TAXAUTHORITY
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 TAXCODE FROM BTXTAXC INTO @DATA(ld_bsi_tax_name). | ||||
| "SELECT single TAXAU FROM T5UTZ INTO @DATA(ld_sap_auth_code). | ||||
Search for further information about these or an SAP related objects