SAP Reports / Programs | Payroll | Australia | Public Sector(PY-AU-PS) SAP PY

MP050840 SAP ABAP INCLUDE - Prior Service - Subroutines







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


Text pool values


Title: Prior Service - Subroutines


INCLUDES used within this REPORT MP050840

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_ENTRY_DATE CALL FUNCTION 'HR_ENTRY_DATE' EXPORTING PERSNR = P0508-PERNR IMPORTING ENTRYDATE = HIREDATE TABLES ENTRY_DATES = HIRE_DATES EXCEPTIONS ENTRY_DATE_NOT_FOUND PERNR_NOT_ASSIGNED.

HR_GET_ENTRY_FEATURE CALL FUNCTION 'HR_GET_ENTRY_FEATURE' EXPORTING persnr = P0508-PERNR IMPORTING ex_switch = L_SWITCH EXCEPTIONS pernr_not_assigned = 1 OTHERS = 2.

HR_AUPBS_CAL_LOS CALL FUNCTION 'HR_AUPBS_CAL_LOS' EXPORTING BEG_DA = Q0508-PSBEG END_DA = Q0508-PSEND IMPORTING NO_DAYS = TDAYS MONTHS = TMTHS.

HR_AUPBS_CAL_DAY CALL FUNCTION 'HR_AUPBS_CAL_DAY' EXPORTING BEG_DA = NEW_BEG MONTHS = MONTH IMPORTING DAYS = LVE_DAYS.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING FIELDNAME = P_COLUMN_NAME TABNAME = 'T5QPBS2C' IMPORTING SELECT_VALUE = P_FIELD_NAME TABLES FIELDS = IHELP_FIELDS VALUETAB = HELPTAB EXCEPTIONS FIELD_NOT_IN_DDIC = 1 MORE_THEN_ONE_SELECTFIELD = 2 NO_SELECTFIELD = 3 OTHERS = 4.

HR_FEATURE_BACKFIELD CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING FEATURE = FEATURE STRUC_CONTENT = KIND_OF_ERROR = KIND_OF_ERROR IMPORTING BACK = BACK CHANGING STATUS = STATUS EXCEPTIONS OTHERS = 0.

DEQUEUE_EPPRELE * CALL FUNCTION 'DEQUEUE_EPPRELE' "SAML7DK013508 * EXPORTING PERNR = P0508-PERNR.

BAPI_EMPLOYEE_DEQUEUE call function 'BAPI_EMPLOYEE_DEQUEUE' "SAML7DK013508 exporting number = p0508-pernr.

ENQUEUE_EPPRELE * CALL FUNCTION 'ENQUEUE_EPPRELE' "SAML7DK013508 * EXPORTING PERNR = P0508-PERNR.

BAPI_EMPLOYEE_ENQUEUE call function 'BAPI_EMPLOYEE_ENQUEUE' "SAML7DK013508 exporting number = p0508-pernr importing return = lock_return.



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