SAP Reports / Programs

RPUDESTROY_ABSENCE SAP ABAP Report - Destroy Absences







RPUDESTROY_ABSENCE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to destroy the absence data for personnel numbers up to a certain key date...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PC00_M01_ABS_DESTROY - Destroy Absences


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


Text pool values


Selection Text: P_DATAR = Date Type of Destruction Lock
Selection Text: P_DATE = Destroy up to and Including
Selection Text: P_PROTO = Log
Selection Text: P_TEST = Test Run (No Update)
Selection Text: RB_ALL = All Absences
Selection Text: RB_ATZ = Absence Ends During SR
Selection Text: RB_DELET = Perform Destruction
Selection Text: RB_NOATZ = Absence Ends Before SR
Selection Text: RB_REQUE = Request Destruction
Selection Text: RB_REVOK = Cancel Destruction Request
Selection Text: ST_SUBTY = Absence Types (Subtypes)
Title: Destroy Absences
Text Symbol: PC1 = Leave Deduction
Text Symbol: PC0 = Personal Calendar (PC)
Text Symbol: N02 = Successful Personnel Numbers
Text Symbol: N01 = Incorrect Personnel Numbers
Text Symbol: MDN = Generated master data
Text Symbol: MDM = Generated Deducted Quotas (PTQUODED)
Text Symbol: MDL = Generated Time Quota Compensation (0416)
Text Symbol: MDK = New Payroll Status (0003)
Text Symbol: MDJ = Data Records Flagged for Destruction
Text Symbol: MDI = Destroyed Leave Entitlement Compensation (0083)
Text Symbol: MDH = Destroyed Leave Entitlement (0005)
Text Symbol: ATZ = Semiretirement (SR)
Text Symbol: BP1 = Restrictions
Text Symbol: BP2 = Options
Text Symbol: BP3 = Action: Requester
Text Symbol: BP4 = Action: Performer
Text Symbol: BP5 = Action: Display
Text Symbol: BP6 = Activ.
Text Symbol: MD1 = Original Master Data
Text Symbol: MD2 = Organizational Assignment (0001)
Text Symbol: MD3 = Payroll Status (0003)
Text Symbol: MD4 = Archived Objects (0283)
Text Symbol: MD5 = Absences (2001)
Text Symbol: MD6 = Absence Quotas (2006)
Text Symbol: MD7 = Time Quota Compensation (0416)
Text Symbol: MD8 = Deducted Quotas (PTQUODED)





Text Symbol: MD9 = Leave Entitlement (0005)
Text Symbol: MDA = Leave Entitlement Compensation (0083)
Text Symbol: MDB = Destroyed Master Data
Text Symbol: MDC = Destroyed Absences (2001)
Text Symbol: MDD = Destroyed Absence Quotas (2006)
Text Symbol: MDF = Destroyed Time Quota Compensation (0416)
Text Symbol: MDG = Destroyed Deducted Quotas (PTQUODED)


INCLUDES used within this REPORT RPUDESTROY_ABSENCE

INCLUDE RPARDI00.
INCLUDE RPUPMF00.


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_CHECK_AUTHORITY_INFTY * call function 'HR_CHECK_AUTHORITY_INFTY' * exporting * pernr = '00000000' * infty = '*' * subty = '*' * level = 'W' * exceptions * no_authorization = 1 * internal_error = 2 * others = 3.

HR_READ_INFOTYPE * call function 'HR_READ_INFOTYPE' * exporting * pernr = pernr-pernr * infty = '0001' * begda = pn-begda * endda = pn-endda * tables * infty_tab = p0001 * exceptions * infty_not_found = 1 * others = 2.

HR_READ_INFOTYPE call function 'HR_READ_INFOTYPE' exporting pernr = pernr-pernr infty = '0001' begda = pn-begda endda = pn-endda tables infty_tab = it_p0001 exceptions infty_not_found = 1 others = 2.

HR_GET_ABSATTEND_CUSTOMIZING call function 'HR_GET_ABSATTEND_CUSTOMIZING' exporting w0001 = ls_p0001 pernum = i_pernr abs_att_type = ls_p2001-subty date = ls_p2001-endda importing w001p = ls_t001p w554s = ls_t554s exceptions error_occurred = 1 abs_att_type_not_found = 2 parameter_error = 3 wrong_leave_type = 4 internal_error = 5 others = 6.

HR_GET_ABSATTEND_CUSTOMIZING call function 'HR_GET_ABSATTEND_CUSTOMIZING' exporting w0001 = ls_p0001 pernum = i_pernr abs_att_type = ls_p2001-subty date = ls_p2001-endda importing w001p = ls_t001p w554s = ls_t554s exceptions error_occurred = 1 abs_att_type_not_found = 2 parameter_error = 3 wrong_leave_type = 4 internal_error = 5 others = 6.

RP_ARCHIVE_CHECK_CALC_PERNR_DE call function 'RP_ARCHIVE_CHECK_CALC_PERNR_DE' exporting arc_pernr = i_pernr itab_t51b2 = ls_t51b2 exceptions overtime_not_yet_paid = 1 others = 2.

RP_ARCHIVE_CHECK_CALC_PERNR call function 'RP_ARCHIVE_CHECK_CALC_PERNR' exporting i_pernr = i_pernr itab_t51b1 = ls_t51b1 itab_t51b2 = ls_t51b2 prdat = ls_p0003-prdat tables itab_p0003 = lt_p0003_old exceptions rrdat_error = 1 others = 2.

HR_ARCH_B2_CHECK_PERNR call function 'HR_ARCH_B2_CHECK_PERNR' exporting pernr_arc = i_pernr test_prtev = ls_p0003-prtev tables itab_p0003 = lt_p0003_old exceptions recalc_error_from_0003 = 1 recalc_error_from_b1 = 2 error_infotype_0007 = 3 import_b1_error = 4 wrong_b2_version = 5 error_infotype_0000 = 6 others = 7.

HR_EMPLOYEE_ENQUEUE call function 'HR_EMPLOYEE_ENQUEUE' exporting number = i_pernr importing return = ls_return.

PA_ARCH_CREATE_IT0283 call function 'PA_ARCH_CREATE_IT0283' exporting p_pernr = i_pernr p_artyp = par_subtyp_pa_destr p_group = c_it283_group p_endda = l_date p_state = state_initialized exceptions insert_failed = 1 db_error = 2 duplicate_group = 3 previous_wrong_status = 4 begda_greater_endda = 5 others = 6.

PA_ARCH_UPDATE_IT0283 call function 'PA_ARCH_UPDATE_IT0283' exporting p_pernr = i_pernr p_object = par_subtyp_pa_destr p_date = l_date p_status = par_state_enqueued p_prdat = ls_p0003-prdat p_oprda = ls_p0003_old-prdat p_prtev = ls_p0003-prtev p_oprte = ls_p0003_old-prtev exceptions no_record_found = 1 update_failed = 2 others = 3.

PA_ARCH_DELETE_IT0283 call function 'PA_ARCH_DELETE_IT0283' exporting p_pernr = i_pernr p_gruppe = c_it283_group p_artyp = par_subtyp_pa_destr exceptions wrong_subty = 1 wrong_group = 2 wrong_status = 3 delete_failed = 4 others = 5.

RP_SET_PRDAT_PRTEV call function 'RP_SET_PRDAT_PRTEV' exporting p_pernr = i_pernr p_prdat = ls_p0003-prdat p_prtev = ls_p0003-prtev p_enqueue = abap_false p_force = abap_false exceptions no_pernr = 1 pernr_enqueued = 2 old_prdat_higher = 3 old_prtev_higher = 4 others = 5.

PA_ARCH_UPDATE_IT0283 call function 'PA_ARCH_UPDATE_IT0283' exporting p_pernr = i_pernr p_object = par_subtyp_pa_destr p_date = l_date p_status = par_state_destroy p_prdat = ls_p0003-prdat p_oprda = ls_p0003_old-prdat p_prtev = ls_p0003-prtev p_oprte = ls_p0003_old-prtev exceptions no_record_found = 1 update_failed = 2 others = 3.






HR_EMPLOYEE_DEQUEUE call function 'HR_EMPLOYEE_DEQUEUE' exporting number = i_pernr importing return = ls_return.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P0001' i_structure_name = 'P0001' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P0003' i_structure_name = 'P0003' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P0283' i_structure_name = 'P0283' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P2001' i_structure_name = 'P2001' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P2006' i_structure_name = 'P2006' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P0416' i_structure_name = 'P0416' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'PTQUO' i_structure_name = 'PTQUODED' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P0005' i_structure_name = 'P0005' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P0083' i_structure_name = 'P0083' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'IT2001' i_structure_name = 'PA2001' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'IT2006' i_structure_name = 'PA2006' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'IT0416' i_structure_name = 'PA0416' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'IT0005' i_structure_name = 'PA0005' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'IT0083' i_structure_name = 'PA0083' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'T599U' i_structure_name = 'T599U' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P0003' i_structure_name = 'P0003' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'P0416' i_structure_name = 'P0416' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'PTQUO' i_structure_name = 'PTQUODED' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_STATS_MSG_ADD



* call function 'HR_PAL_STATS_MSG_ADD' * exporting * i_stcnt = i_pernr_with_notifs * i_nodid = 'PN' * i_nodpa = 'PR' * i_msgid = l_s_pal_msg-msgid * i_msgno = l_s_pal_msg-msgno * i_msgty = l_s_pal_msg-msgty * i_msgv1 = l_s_pal_msg-msgv1 * exceptions * program_error = 1 * others = 2.

HR_PAL_STATS_MSG_ADD * call function 'HR_PAL_STATS_MSG_ADD' * exporting * i_stcnt = i_total_number_of_notifs * i_nodid = 'NT' * i_nodpa = 'PR' * i_msgid = l_s_pal_msg-msgid * i_msgno = l_s_pal_msg-msgno * i_msgty = l_s_pal_msg-msgty * i_msgv1 = l_s_pal_msg-msgv1 * exceptions * program_error = 1 * others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'PC' i_structure_name = 'PCINT' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_PAL_CREATE_NODE_CATEG call function 'HR_PAL_CREATE_NODE_CATEG' exporting i_categ_id = 'PURL' i_structure_name = 'PURLT' i_save = 'A' is_variant = ls_variant is_layout = ls_layout i_default = 'X' exceptions program_error = 1 others = 2.

HR_CHECK_AUTHORITY_INFTY call function 'HR_CHECK_AUTHORITY_INFTY' exporting pernr = i_pernr infty = i_infty subty = l_subty level = 'W' exceptions no_authorization = 1 internal_error = 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 RPUDESTROY_ABSENCE or its description.