SAP Reports / Programs | Payroll | Mexico(PY-MX) SAP PY

PCMTRMX0 SAP ABAP INCLUDE - documentation and ABAP source code







PCMTRMX0 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter PCMTRMX0 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT PCMTRMX0. "Basic submit
SUBMIT PCMTRMX0 AND RETURN. "Return to original report after report execution complete
SUBMIT PCMTRMX0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT PCMTRMX0

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

HR_MX_TRM_GET_REASON call function 'HR_MX_TRM_GET_REASON' exporting i_trsn = ls_p0654-trsn importing e_text = l_rsntxt exceptions not_found = 1 others = 2.

HR_MX_TRM_GET_PAYMENTS call function 'HR_MX_TRM_GET_PAYMENTS' exporting i_trsn = ls_p0654-trsn i_tdate = ls_p0654-begda importing et_pymnt = lt_payment.

HR_MX_DAYS_PER_YEAR call function 'HR_MX_DAYS_PER_YEAR' exporting i_date = p_tdate importing e_days_per_year = l_daysperyear exceptions no_entry_in_t511k = 1 others = 2.

HR_ENTRY_DATE call function 'HR_ENTRY_DATE' exporting persnr = pernr-pernr rclas = 'C654' endda = p_tdate importing entrydate = p_hiredate tables entry_dates = lt_hida exceptions entry_date_not_found = 1 pernr_not_assigned = 2 others = 3.

HR_MX_INTERVAL_BETWEEN_DATES call function 'HR_MX_INTERVAL_BETWEEN_DATES' exporting i_date_start = p_hiredate i_date_end = p_tdate importing e_years = p_sen_years e_days = p_sen_days exceptions sequence_of_dates_not_valid = 1 error_in_calc_of_years = 2 no_entry_in_t511k = 3 others = 4.

CD_SELECT_SRTZA call function 'CD_SELECT_SRTZA' exporting record_type = cd_c-actual tables in_rgdir = lt_rgdir1 out_rgdir = lt_rgdir2.

CD_SELECT_VOID call function 'CD_SELECT_VOID' exporting void_indicator = cd_c-void_false tables in_rgdir = lt_rgdir2 out_rgdir = lt_rgdir1.

CD_SELECT_DATE_RANGE call function 'CD_SELECT_DATE_RANGE' exporting fpper_begda = p_start_period fpper_endda = p_tdate tables in_rgdir = lt_rgdir1 out_rgdir = pt_rgdir.

HR_PCLX_INIT_BUFFER call function 'HR_PCLX_INIT_BUFFER'.

HR_COPY_TBUFF_TO_BUFFER call function 'HR_COPY_TBUFF_TO_BUFFER' exporting clusterid = lc_clusterid tables buffer = tbuff buffer_directory = buffer_dir.

HR_IMPORT_RGDIR_FROM_PCLX call function 'HR_IMPORT_RGDIR_FROM_PCLX' exporting cluster_id = lc_clusterid employee_number = p_pernr tables import_rgdir = pt_rgdir exceptions no_results = 1 no_read_authority = 2 others = 3.

PYXX_READ_RGDIR_PAYRESULTS call function 'PYXX_READ_RGDIR_PAYRESULTS' exporting clusterid = lc_clusterid employeenumber = p_pernr read_only_buffer = true tables rgdir = pt_rgdir imported_periods = pt_payresult exceptions import_error = 1 others = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name PCMTRMX0 or its description.