SAP Reports / Programs | Personnel Management | Personnel Administration | Singapore(PA-PA-SG) SAP PA

MP20014R SAP ABAP INCLUDE - Include MP20014R







MP20014R 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 MP20014R 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 MP20014R. "Basic submit
SUBMIT MP20014R AND RETURN. "Return to original report after report execution complete
SUBMIT MP20014R VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Include MP20014R


INCLUDES used within this REPORT MP20014R

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_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = pspar-tclas pernr = p2001-pernr infty = '0412' begda = '19000101' endda = p2001-endda IMPORTING subrc = ret_code TABLES infty_tab = lt_i0412.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = pspar-tclas pernr = p2001-pernr infty = '0021' begda = '19000101' endda = p2001-endda IMPORTING subrc = ret_code TABLES infty_tab = lt_i0021.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = pspar-tclas pernr = p2001-pernr infty = '0412' begda = '19000101' endda = p2001-endda IMPORTING subrc = ret_code TABLES infty_tab = lt_i0412.

HRCM_TERM_ENDDATE_GET CALL FUNCTION 'HRCM_TERM_ENDDATE_GET' EXPORTING begda = p_l_begda term = p_l_term unit = p_l_unit IMPORTING endda = p_endda.

HRCM_TERM_ENDDATE_GET CALL FUNCTION 'HRCM_TERM_ENDDATE_GET' EXPORTING begda = l_begda term = l_term unit = l_unit IMPORTING endda = l_endda.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = pspar-tclas pernr = p2001-pernr infty = '0002' begda = p2001-begda endda = p2001-endda IMPORTING subrc = ret_code TABLES infty_tab = lt_i0002.

HR_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING persnr = p2001-pernr IMPORTING entrydate = joining_date TABLES entry_dates = entry_dates.

HR_99S_MONTHS_BETWEEN_DATES CALL FUNCTION 'HR_99S_MONTHS_BETWEEN_DATES' EXPORTING p_begda = joining_date p_endda = l_date p_compl = ' ' IMPORTING p_months = seniority.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = pspar-tclas pernr = p2001-pernr infty = '2001' begda = '19000101' endda = p_l_prev_date IMPORTING subrc = p_ret_code TABLES infty_tab = p_lt_i2001.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = pspar-tclas pernr = p2001-pernr infty = '0007' begda = '19000101' endda = p2001-begda IMPORTING subrc = p_ret_code TABLES infty_tab = p_lt_i0007.

HRCM_TERM_ENDDATE_GET CALL FUNCTION 'HRCM_TERM_ENDDATE_GET' EXPORTING begda = b_date term = l_term unit = l_unit IMPORTING endda = l_endda.

HRCM_TERM_ENDDATE_GET CALL FUNCTION 'HRCM_TERM_ENDDATE_GET' EXPORTING begda = b_date term = l_term unit = l_unit IMPORTING endda = l_endda.

HRCM_TERM_ENDDATE_GET CALL FUNCTION 'HRCM_TERM_ENDDATE_GET' EXPORTING begda = b_date term = l_term unit = l_wunit IMPORTING endda = l_endda.

HRCM_TERM_ENDDATE_GET CALL FUNCTION 'HRCM_TERM_ENDDATE_GET' EXPORTING begda = l_endda term = l_term unit = l_wunit IMPORTING endda = l_endda.

HR_READ_INFOTYPE CALL FUNCTION 'HR_READ_INFOTYPE' EXPORTING tclas = pspar-tclas pernr = p2001-pernr infty = '2001' begda = '19000101' endda = sy-datum IMPORTING subrc = ret_code TABLES infty_tab = lt_i2001.

HR_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING PERNR = p2001-pernr BEGDA = beg_dat ENDDA = end_dat TABLES PERWS = PWS EXCEPTIONS * ERROR_OCCURED = 1 * ABORT_OCCURED = 2 OTHERS = 3 .



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