SAP EXIT_HMXCISR0_005 Function Module for User exit Mexico: User tax methods









EXIT_HMXCISR0_005 is a standard exit hmxcisr0 005 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User exit Mexico: User tax methods 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 exit hmxcisr0 005 FM, simply by entering the name EXIT_HMXCISR0_005 into the relevant SAP transaction such as SE37 or SE38.

Function Group: XPMX
Program Name: SAPLXPMX
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EXIT_HMXCISR0_005 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 'EXIT_HMXCISR0_005'"User exit Mexico: User tax methods
EXPORTING
PNR = "Personnel number
BASE_FIJAC = "Cumulated fixed tax basis
BASE_VAR = "Variable taxed basis from period
BASE_VARAC = "Cumulated variable taxed basis
SAL_MENS = "Monthly wage
ABKRS = "Payroll area
ENDDA = "Payroll period end date
TIPO_NOM = "Payroll type
TIPO_CAL = "Indicator for tax calculation type
MET_CAL = "Indicator for tax calculation method
CLASE_TBL = "Tax table category
BASE_GRAV = "Taxed basis
BASE_FIJ = "Fixed tax basis from period

CHANGING
IMP_MARG = "Marginal tax
CRE_EFVO = "Credit paid in cash
SUB_MARG = "Marginal subsidy
IMP_BRUTO = "Gross tax
SUB_BRUTO = "Gross subsidy
SUB_ACRED = "Accredited subsidy
SUB_NOACR = "Non-accredited subsidy
IMP_D_SUB = "Tax after subsidy
IMP_CALC = "Calculated tax
CRE_FISC = "Tax credit
.



IMPORTING Parameters details for EXIT_HMXCISR0_005

PNR - Personnel number

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

BASE_FIJAC - Cumulated fixed tax basis

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

BASE_VAR - Variable taxed basis from period

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

BASE_VARAC - Cumulated variable taxed basis

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

SAL_MENS - Monthly wage

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

ABKRS - Payroll area

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

ENDDA - Payroll period end date

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

TIPO_NOM - Payroll type

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

TIPO_CAL - Indicator for tax calculation type

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

MET_CAL - Indicator for tax calculation method

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

CLASE_TBL - Tax table category

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

BASE_GRAV - Taxed basis

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

BASE_FIJ - Fixed tax basis from period

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

CHANGING Parameters details for EXIT_HMXCISR0_005

IMP_MARG - Marginal tax

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

CRE_EFVO - Credit paid in cash

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

SUB_MARG - Marginal subsidy

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

IMP_BRUTO - Gross tax

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

SUB_BRUTO - Gross subsidy

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

SUB_ACRED - Accredited subsidy

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

SUB_NOACR - Non-accredited subsidy

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

IMP_D_SUB - Tax after subsidy

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

IMP_CALC - Calculated tax

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

CRE_FISC - Tax credit

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

Copy and paste ABAP code example for EXIT_HMXCISR0_005 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_pnr  TYPE PERNR-PERNR, "   
lv_imp_marg  TYPE PC207-BETRG, "   
lv_cre_efvo  TYPE PC207-BETRG, "   
lv_base_fijac  TYPE PC207-BETRG, "   
lv_base_var  TYPE PC207-BETRG, "   
lv_base_varac  TYPE PC207-BETRG, "   
lv_sal_mens  TYPE PC207-BETRG, "   
lv_abkrs  TYPE P0001-ABKRS, "   
lv_sub_marg  TYPE PC207-BETRG, "   
lv_endda  TYPE D, "   
lv_imp_bruto  TYPE PC207-BETRG, "   
lv_tipo_nom  TYPE C, "   
lv_sub_bruto  TYPE PC207-BETRG, "   
lv_tipo_cal  TYPE PC2QC-TICAL, "   
lv_sub_acred  TYPE PC207-BETRG, "   
lv_met_cal  TYPE PC2QC-MCALC, "   
lv_sub_noacr  TYPE PC207-BETRG, "   
lv_clase_tbl  TYPE PC2QC-CLTAB, "   
lv_imp_d_sub  TYPE PC207-BETRG, "   
lv_imp_calc  TYPE PC207-BETRG, "   
lv_base_grav  TYPE PC207-BETRG, "   
lv_base_fij  TYPE PC207-BETRG, "   
lv_cre_fisc  TYPE PC207-BETRG. "   

  CALL FUNCTION 'EXIT_HMXCISR0_005'  "User exit Mexico: User tax methods
    EXPORTING
         PNR = lv_pnr
         BASE_FIJAC = lv_base_fijac
         BASE_VAR = lv_base_var
         BASE_VARAC = lv_base_varac
         SAL_MENS = lv_sal_mens
         ABKRS = lv_abkrs
         ENDDA = lv_endda
         TIPO_NOM = lv_tipo_nom
         TIPO_CAL = lv_tipo_cal
         MET_CAL = lv_met_cal
         CLASE_TBL = lv_clase_tbl
         BASE_GRAV = lv_base_grav
         BASE_FIJ = lv_base_fij
    CHANGING
         IMP_MARG = lv_imp_marg
         CRE_EFVO = lv_cre_efvo
         SUB_MARG = lv_sub_marg
         IMP_BRUTO = lv_imp_bruto
         SUB_BRUTO = lv_sub_bruto
         SUB_ACRED = lv_sub_acred
         SUB_NOACR = lv_sub_noacr
         IMP_D_SUB = lv_imp_d_sub
         IMP_CALC = lv_imp_calc
         CRE_FISC = lv_cre_fisc
. " EXIT_HMXCISR0_005




ABAP code using 7.40 inline data declarations to call FM EXIT_HMXCISR0_005

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 PERNR FROM PERNR INTO @DATA(ld_pnr).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_imp_marg).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_cre_efvo).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_base_fijac).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_base_var).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_base_varac).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_sal_mens).
 
"SELECT single ABKRS FROM P0001 INTO @DATA(ld_abkrs).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_sub_marg).
 
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_imp_bruto).
 
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_sub_bruto).
 
"SELECT single TICAL FROM PC2QC INTO @DATA(ld_tipo_cal).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_sub_acred).
 
"SELECT single MCALC FROM PC2QC INTO @DATA(ld_met_cal).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_sub_noacr).
 
"SELECT single CLTAB FROM PC2QC INTO @DATA(ld_clase_tbl).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_imp_d_sub).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_imp_calc).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_base_grav).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_base_fij).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_cre_fisc).
 


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!