SAP Reports / Programs | Personnel Time Management(PT) SAP PT

MP2NNN40 SAP ABAP INCLUDE - Module Pool MP200000: Common Routines







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


Text pool values


Title: Module Pool MP200000: Common Routines


INCLUDES used within this REPORT MP2NNN40

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:

RP_CHECK_DATE #R3 CALL FUNCTION 'RP_CHECK_DATE' "WBIK011771 #R3 EXPORTING #R3 DATE = BID_BEGDA3 #R3 EXCEPTIONS #R3 DATE_INVALID = 1 #R3 OTHERS = 2.

RP_CHECK_DATE #R3 CALL FUNCTION 'RP_CHECK_DATE' "WBIK011771 #R3 EXPORTING #R3 DATE = BID_ENDDA3 #R3 EXCEPTIONS #R3 DATE_INVALID = 1 #R3 OTHERS = 2.

RP_FORMATING_DATE #R3 CALL FUNCTION 'RP_FORMATING_DATE' "WBIK011771 #R3 EXPORTING " #R3 DATE_I = BID_BEGDA1 " #R3 BIRTH_DATE = ' ' "YLLAHRK038281 #R3 IMPORTING " #R3 DATE_O = BID_BEGDA3 " #R3 EXCEPTIONS " #R3 DATE_INVALID = 1 " #R3 OTHERS = 2. "WBIK011771

RP_CHECK_DATE #R3 CALL FUNCTION 'RP_CHECK_DATE' "WBIK011771 #R3 EXPORTING #R3 DATE = BID_BEGDA3 #R3 EXCEPTIONS #R3 DATE_INVALID = 1 #R3 OTHERS = 2.

RP_FORMATING_DATE #R3 CALL FUNCTION 'RP_FORMATING_DATE' "WBIK011771 #R3 EXPORTING " #R3 DATE_I = BID_ENDDA1 " #R3 BIRTH_DATE = ' ' "YLLAHRK038281 #R3 IMPORTING " #R3 DATE_O = BID_ENDDA3 " #R3 EXCEPTIONS " #R3 DATE_INVALID = 1 " #R3 OTHERS = 2. "WBIK011771

RP_CHECK_DATE #R3 CALL FUNCTION 'RP_CHECK_DATE' "WBIK011771 #R3 EXPORTING #R3 DATE = BID_ENDDA3 #R3 EXCEPTIONS #R3 DATE_INVALID = 1 #R3 OTHERS = 2.

RP_CHECK_DATE CALL FUNCTION 'RP_CHECK_DATE' "WBIK011771 EXPORTING DATE = FBAE_IDATE EXCEPTIONS DATE_INVALID = 1 OTHERS = 2.

CONVERT_DATE_INPUT CALL FUNCTION 'CONVERT_DATE_INPUT' EXPORTING INPUT = DATUM IMPORTING OUTPUT = BEGDA EXCEPTIONS OTHERS = 1.

CONVERT_DATE_INPUT CALL FUNCTION 'CONVERT_DATE_INPUT' EXPORTING INPUT = DATUM IMPORTING OUTPUT = BEGDA EXCEPTIONS OTHERS = 1.

HR_GET_ERROR_LIST CALL FUNCTION 'HR_GET_ERROR_LIST' TABLES ERROR = ERRORS ERRORTEXTS = ERRORTEXTS EXCEPTIONS NO_ERRORS = 1 OTHERS = 2.

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST'.

HR_GET_ERROR_LIST CALL FUNCTION 'HR_GET_ERROR_LIST' TABLES ERROR = ERRORS ERRORTEXTS = ERRORTEXTS EXCEPTIONS NO_ERRORS = 1 OTHERS = 2.

HR_REFRESH_ERROR_LIST CALL FUNCTION 'HR_REFRESH_ERROR_LIST'.

HR_ABS_ATT_TIMES_AT_ENTRY CALL FUNCTION 'HR_ABS_ATT_TIMES_AT_ENTRY' EXPORTING PERNR = P_PERNR AWART = P_SUBTY BEGDA = P_BEGDA ENDDA = P_ENDDA IMPORTING ABWTG = P_ABWTG ABRTG = P_ABRTG ABRST = P_ABRST KALTG = P_KALTG HRSIF = P_HRSIF ALLDF = P_ALLDF error_wo_exception = error_wo_exception TABLES M0000 = P_M0000 M0001 = P_M0001 M0002 = P_M0002 M0007 = P_M0007 M2001 = P_M2001 M2002 = P_M2002 M2003 = P_M2003 TIMES_PER_DAY = P_TIMES_PER_DAY CHANGING BEGUZ = P_BEGUZ ENDUZ = P_ENDUZ VTKEN = P_VTKEN STDAZ = P_STDAZ BREAKS = P_BREAKS "YMMPH0K000026 EXCEPTIONS IT0001_MISSING = 1 CUSTOMIZING_ERROR = 2 ERROR_OCCURRED = 3 "YAYP40K054237 END_BEFORE_BEGIN = 4. "YAYP40K054237

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING OWN_LOGICAL_SYSTEM = LOGICAL_SYSTEM EXCEPTIONS OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1 OTHERS = 2.

HRTIM_AC_DOCUMENT_RECORD CALL FUNCTION 'HRTIM_AC_DOCUMENT_RECORD' EXPORTING * I_PSKEY = L_PSKEY. "XHB-UNI

HR_PERSONAL_WORK_SCHEDULE CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE' EXPORTING PERNR = P_PERNR BEGDA = WKS_BEGDA ENDDA = WKS_ENDDA * KUG = * REFRESH = 'X' * WORKING_HOURS = 'X' SWITCH_ACTIV = 1 * MODIFY_ENTRIES = 'X' * I0001_I0007_ERROR = '0' * IMPORTING * WARNING_OCCURED = TABLES I0000 = M0000 I0001 = M0001 I0002 = M0002 I0007 = M0007 I0049 = M0049 I2001 = M2001 I2002 = M2002 I2003 = M2003 PERWS = WKS EXCEPTIONS ERROR_OCCURED = 1 ABORT_OCCURED = 2 OTHERS = 3.

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING NO_POPUP = ' ' EXCEPTIONS INVALID_LINESIZE = 1 OTHERS = 2.

HR_QUOTAS_DEFAULT_AT_ENTRY





CALL FUNCTION 'HR_QUOTAS_DEFAULT_AT_ENTRY' EXPORTING DEF_PERNR = P_PERNR * def_ktart = qtype "note526335 IMPORTING DEF_ANZHL = DEFNUM DEF_DESTA = DESTA DEF_DEEND = DEEND TABLES DEF_P0000 = M0000 DEF_P0001 = M0001 DEF_P0002 = M0002 DEF_P0004 = M0004 DEF_P0007 = M0007 DEF_P0008 = M0008 DEF_P0016 = M0016 "XDGL9CK000472 DEF_P0019 = M0019 DEF_P0041 = M0041 DEF_P2001 = M2001 DEF_P2006 = M2006 DEF_PSP = WKS DEF_VALUE_TAB = GENQTA DEF_ABWKTART_SEL = qtype_sel "note526335 CHANGING DEF_BEGDA = DBEGDA DEF_ENDDA = DENDDA EXCEPTIONS QUOMO_NOT_DEFINED = 1 CUSTOMIZING_ERROR = 2 ENDDA_LT_BEGDA = 3 no_rule_applied = 4 "YAYAHRK064464 OTHERS = 5. "YAYAHRK064464

HR_DISPLAY_ERROR_LIST CALL FUNCTION 'HR_DISPLAY_ERROR_LIST' EXPORTING NO_POPUP = ' '.

CURRENCY_AMOUNT_SAP_TO_IDOC CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_IDOC' EXPORTING CURRENCY = CURR1 SAP_AMOUNT = BETRG IMPORTING IDOC_AMOUNT = IDOC_AMOUNT.

CURRENCY_AMOUNT_IDOC_TO_SAP CALL FUNCTION 'CURRENCY_AMOUNT_IDOC_TO_SAP' EXPORTING CURRENCY = CURR2 IDOC_AMOUNT = IDOC_AMOUNT IMPORTING SAP_AMOUNT = BETRG.

HR_REFRESH_QUODED_BUFFER call function 'HR_REFRESH_QUODED_BUFFER'. "note 447211

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING feature = 'P2001' struc_content = pme04 IMPORTING back = l_varky.

HR_F4HELP_IN_INTERVAL CALL FUNCTION 'HR_F4HELP_IN_INTERVAL' EXPORTING im_shlpname = 'H_T554S' im_shlpfield = 'SUBTY' TABLES tab_intf = intf.

HR_CHECK_BPO_ACTIVE CALL FUNCTION 'HR_CHECK_BPO_ACTIVE' EXPORTING grpid_key = 'BPO' semid_key = 'MAINS' ret_default_if_no_entry = 'X' IMPORTING return_value = bpo_switch_active EXCEPTIONS entry_not_found = 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 MP2NNN40 or its description.