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

PCMAGMX2 SAP ABAP INCLUDE - documentation and ABAP source code







PCMAGMX2 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 PCMAGMX2 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 PCMAGMX2. "Basic submit
SUBMIT PCMAGMX2 AND RETURN. "Return to original report after report execution complete
SUBMIT PCMAGMX2 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 PCMAGMX2

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_GET_DAILY_SALARIES CALL FUNCTION 'HR_MX_GET_DAILY_SALARIES' EXPORTING pernr = pernr-pernr begda = '18000101' endda = p_fe_fiper wagetyp = g_wt_user IMPORTING sdiario = l_sd sdi_tot = l_sdi * SDI_FIX = * SDI_VAR = * SD_INDE = sd_user = l_sduser TABLES it_p0369_tab = p0369 * IT_P0372_TAB = * IT_RT_TAB = * IT_WPBP_TAB = * IT_P000_TAB = EXCEPTIONS NO_VALID_IT372_FOUND = 1 NO_VALID_RT_FOUND = 2 NO_VALID_SALARIES_FOUND = 3 EE_INACTIVE = 4 OTHERS = 0.

CU_READ_RGDIR CALL FUNCTION 'CU_READ_RGDIR' EXPORTING persnr = p_pernr TABLES in_rgdir = rgdir EXCEPTIONS no_record_found = 1 OTHERS = 2.

CD_SELECT_VOID CALL FUNCTION 'CD_SELECT_VOID' EXPORTING void_indicator = space TABLES in_rgdir = rgdir out_rgdir = rgdir_without_void EXCEPTIONS OTHERS = 1.

CD_SELECT_DATE_RANGE CALL FUNCTION 'CD_SELECT_DATE_RANGE' EXPORTING fpper_begda = p_begda fpper_endda = p_endda TABLES in_rgdir = rgdir_without_void out_rgdir = rgdir_selected_dates EXCEPTIONS OTHERS = 1.

CD_SELECT_SRTZA CALL FUNCTION 'CD_SELECT_SRTZA' EXPORTING record_type = c_srtza TABLES in_rgdir = rgdir_selected_dates out_rgdir = new_rgdir EXCEPTIONS OTHERS = 1.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = lc_infty_0000 TABLES infty_tab = p0000 EXCEPTIONS OTHERS = 0.

HR_COPY_TBUFF_TO_BUFFER CALL FUNCTION 'HR_COPY_TBUFF_TO_BUFFER' EXPORTING * DATABASE_TABLE = 'PCL2' CLUSTERID = ic_relid TABLES BUFFER = TBUFF BUFFER_DIRECTORY = BUFFER_DIR EXCEPTIONS ERROR_BUFFERTAB = 1 OTHERS = 2 .

HR_IMPORT_RGDIR_FROM_PCLX CALL FUNCTION 'HR_IMPORT_RGDIR_FROM_PCLX' EXPORTING EMPLOYEE_NUMBER = ic_pernr CLUSTER_ID = ic_relid TABLES IMPORT_RGDIR = rgdir EXCEPTIONS NO_RESULTS = 1 NO_READ_AUTHORITY = 2 OTHERS = 3.

PYXX_READ_RGDIR_PAYRESULTS * CALL FUNCTION 'PYXX_READ_RGDIR_PAYRESULTS' * EXPORTING * CLUSTERID = ic_relid * EMPLOYEENUMBER = ic_pernr ** READ_ONLY_BUFFER = * READ_ONLY_INTERNATIONAL = 'X' * TABLES * RGDIR = rgdir * IMPORTED_PERIODS = ic_results * EXCEPTIONS * IMPORT_ERROR = 1 * OTHERS = 2.

PYXX_READ_PAYROLL_RESULT CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT' EXPORTING employeenumber = ic_pernr sequencenumber = ic_rgdir-seqnr CHANGING payroll_result = ic_results EXCEPTIONS OTHERS = 0.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING pernr = pernr-pernr infty = lc_infty_0001 TABLES infty_tab = p0001 EXCEPTIONS OTHERS = 0.



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 PCMAGMX2 or its description.