SAP EXIT_HMXCISR0_004 Function Module for User exits Mexico: tax table and method to be applied









EXIT_HMXCISR0_004 is a standard exit hmxcisr0 004 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 exits Mexico: tax table and method to be applied 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 004 FM, simply by entering the name EXIT_HMXCISR0_004 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_HMXCISR0_004 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_004'"User exits Mexico: tax table and method to be applied
EXPORTING
PNR = "Personnel number
* NUM_PERIO = "
* TOT_PERIO = "
ABKRS = "Payroll area
ENDDA = "Payroll period end date
TIPO_NOM = "Payroll type
TIPO_CAL = "Tax calculation class
SAL_DIA = "Employee daily wage
BASE_GRAV = "Taxed basis for tax
* ULTPER = "Ind: last period of the month
OCRSN = "Reason for off-cycle payroll run

CHANGING
MET_CAL = "Tax calculation method
CLASE_TBL = "Tax table type
.



IMPORTING Parameters details for EXIT_HMXCISR0_004

PNR - Personnel number

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

NUM_PERIO -

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

TOT_PERIO -

Data type: T54C1-PABRP
Optional: Yes
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 - Tax calculation class

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

SAL_DIA - Employee daily wage

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

BASE_GRAV - Taxed basis for tax

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

ULTPER - Ind: last period of the month

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

OCRSN - Reason for off-cycle payroll run

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

CHANGING Parameters details for EXIT_HMXCISR0_004

MET_CAL - Tax calculation method

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

CLASE_TBL - Tax table type

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

Copy and paste ABAP code example for EXIT_HMXCISR0_004 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_met_cal  TYPE PC2QC-MCALC, "   
lv_num_perio  TYPE T54C1-PABRP, "   
lv_tot_perio  TYPE T54C1-PABRP, "   
lv_abkrs  TYPE P0001-ABKRS, "   
lv_clase_tbl  TYPE PC2QC-CLTAB, "   
lv_endda  TYPE D, "   
lv_tipo_nom  TYPE C, "   
lv_tipo_cal  TYPE PC2QC-TICAL, "   
lv_sal_dia  TYPE PC207-BETRG, "   
lv_base_grav  TYPE PC207-BETRG, "   
lv_ultper  TYPE C, "   
lv_ocrsn  TYPE T52OCR-OCRSN. "   

  CALL FUNCTION 'EXIT_HMXCISR0_004'  "User exits Mexico: tax table and method to be applied
    EXPORTING
         PNR = lv_pnr
         NUM_PERIO = lv_num_perio
         TOT_PERIO = lv_tot_perio
         ABKRS = lv_abkrs
         ENDDA = lv_endda
         TIPO_NOM = lv_tipo_nom
         TIPO_CAL = lv_tipo_cal
         SAL_DIA = lv_sal_dia
         BASE_GRAV = lv_base_grav
         ULTPER = lv_ultper
         OCRSN = lv_ocrsn
    CHANGING
         MET_CAL = lv_met_cal
         CLASE_TBL = lv_clase_tbl
. " EXIT_HMXCISR0_004




ABAP code using 7.40 inline data declarations to call FM EXIT_HMXCISR0_004

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 MCALC FROM PC2QC INTO @DATA(ld_met_cal).
 
"SELECT single PABRP FROM T54C1 INTO @DATA(ld_num_perio).
 
"SELECT single PABRP FROM T54C1 INTO @DATA(ld_tot_perio).
 
"SELECT single ABKRS FROM P0001 INTO @DATA(ld_abkrs).
 
"SELECT single CLTAB FROM PC2QC INTO @DATA(ld_clase_tbl).
 
 
 
"SELECT single TICAL FROM PC2QC INTO @DATA(ld_tipo_cal).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_sal_dia).
 
"SELECT single BETRG FROM PC207 INTO @DATA(ld_base_grav).
 
 
"SELECT single OCRSN FROM T52OCR INTO @DATA(ld_ocrsn).
 


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!