SAP FKK_BR_WITHH_TAX_FORMULA Function Module for Brazil: Withholding Tax Formula
FKK_BR_WITHH_TAX_FORMULA is a standard fkk br withh tax formula SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Brazil: Withholding Tax Formula 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 fkk br withh tax formula FM, simply by entering the name FKK_BR_WITHH_TAX_FORMULA into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKK_ID_BR_WHT
Program Name: SAPLFKK_ID_BR_WHT
Main Program: SAPLFKK_ID_BR_WHT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_BR_WITHH_TAX_FORMULA 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 'FKK_BR_WITHH_TAX_FORMULA'"Brazil: Withholding Tax Formula.
EXPORTING
I_BUKRS = "Company Code
I_QSFOR = "Threshold Limits for Withholding Tax Code & Suppl. Tax Code
I_LAND1 = "Country Key
I_QSSHB = "Withholding Tax Base Amount
I_QSSHH = "Withholding Tax Base Amount (Local Currency)
I_QSSKZ = "Withholding Tax Code
I_QSSEW = "Withholding Tax Supplement
I_WAERS = "Currency Key
I_BUDAT = "Posting Date in the Document
* REDUCED_TAX_RATE = ' ' "Indicator: Reduced tax rate?
IMPORTING
E_QSBAS = "Withholding Tax Amount (in Document Currency)
E_QSOLZ = "Withholding Tax Amount (in Document Currency)
CHANGING
C_QBSHB = "Withholding Tax Amount (in Document Currency)
IMPORTING Parameters details for FKK_BR_WITHH_TAX_FORMULA
I_BUKRS - Company Code
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_QSFOR - Threshold Limits for Withholding Tax Code & Suppl. Tax Code
Data type: QSFOR_KKOptional: No
Call by Reference: Yes
I_LAND1 - Country Key
Data type: T001-LAND1Optional: No
Call by Reference: No ( called with pass by value option)
I_QSSHB - Withholding Tax Base Amount
Data type: BSEG-QSSHBOptional: No
Call by Reference: No ( called with pass by value option)
I_QSSHH - Withholding Tax Base Amount (Local Currency)
Data type: RFOPS-QSSHHOptional: No
Call by Reference: No ( called with pass by value option)
I_QSSKZ - Withholding Tax Code
Data type: T059F-QSSKZOptional: No
Call by Reference: No ( called with pass by value option)
I_QSSEW - Withholding Tax Supplement
Data type: TFK059E-QSSEWOptional: No
Call by Reference: No ( called with pass by value option)
I_WAERS - Currency Key
Data type: T059F-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_BUDAT - Posting Date in the Document
Data type: BUDATOptional: No
Call by Reference: No ( called with pass by value option)
REDUCED_TAX_RATE - Indicator: Reduced tax rate?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_BR_WITHH_TAX_FORMULA
E_QSBAS - Withholding Tax Amount (in Document Currency)
Data type: BSEG-QBSHBOptional: No
Call by Reference: No ( called with pass by value option)
E_QSOLZ - Withholding Tax Amount (in Document Currency)
Data type: BSEG-QBSHBOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for FKK_BR_WITHH_TAX_FORMULA
C_QBSHB - Withholding Tax Amount (in Document Currency)
Data type: BSEG-QBSHBOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_BR_WITHH_TAX_FORMULA 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_c_qbshb | TYPE BSEG-QBSHB, " | |||
| lv_e_qsbas | TYPE BSEG-QBSHB, " | |||
| lv_i_bukrs | TYPE T001-BUKRS, " | |||
| lv_i_qsfor | TYPE QSFOR_KK, " | |||
| lv_e_qsolz | TYPE BSEG-QBSHB, " | |||
| lv_i_land1 | TYPE T001-LAND1, " | |||
| lv_i_qsshb | TYPE BSEG-QSSHB, " | |||
| lv_i_qsshh | TYPE RFOPS-QSSHH, " | |||
| lv_i_qsskz | TYPE T059F-QSSKZ, " | |||
| lv_i_qssew | TYPE TFK059E-QSSEW, " | |||
| lv_i_waers | TYPE T059F-WAERS, " | |||
| lv_i_budat | TYPE BUDAT, " | |||
| lv_reduced_tax_rate | TYPE BUDAT. " SPACE |
|   CALL FUNCTION 'FKK_BR_WITHH_TAX_FORMULA' "Brazil: Withholding Tax Formula |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_QSFOR | = lv_i_qsfor | |
| I_LAND1 | = lv_i_land1 | |
| I_QSSHB | = lv_i_qsshb | |
| I_QSSHH | = lv_i_qsshh | |
| I_QSSKZ | = lv_i_qsskz | |
| I_QSSEW | = lv_i_qssew | |
| I_WAERS | = lv_i_waers | |
| I_BUDAT | = lv_i_budat | |
| REDUCED_TAX_RATE | = lv_reduced_tax_rate | |
| IMPORTING | ||
| E_QSBAS | = lv_e_qsbas | |
| E_QSOLZ | = lv_e_qsolz | |
| CHANGING | ||
| C_QBSHB | = lv_c_qbshb | |
| . " FKK_BR_WITHH_TAX_FORMULA | ||
ABAP code using 7.40 inline data declarations to call FM FKK_BR_WITHH_TAX_FORMULA
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 QBSHB FROM BSEG INTO @DATA(ld_c_qbshb). | ||||
| "SELECT single QBSHB FROM BSEG INTO @DATA(ld_e_qsbas). | ||||
| "SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single QBSHB FROM BSEG INTO @DATA(ld_e_qsolz). | ||||
| "SELECT single LAND1 FROM T001 INTO @DATA(ld_i_land1). | ||||
| "SELECT single QSSHB FROM BSEG INTO @DATA(ld_i_qsshb). | ||||
| "SELECT single QSSHH FROM RFOPS INTO @DATA(ld_i_qsshh). | ||||
| "SELECT single QSSKZ FROM T059F INTO @DATA(ld_i_qsskz). | ||||
| "SELECT single QSSEW FROM TFK059E INTO @DATA(ld_i_qssew). | ||||
| "SELECT single WAERS FROM T059F INTO @DATA(ld_i_waers). | ||||
| DATA(ld_reduced_tax_rate) | = ' '. | |||
Search for further information about these or an SAP related objects