SAP Reports / Programs | Personnel Management | HR Administrative Services(PA-AS) SAP PA

RPASR_EREC_DELETE SAP ABAP Report - Archiving/Destruction: Delete Program for Recruitment Processes







RPASR_EREC_DELETE 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 program to delete recruitment processes that were written to an 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 RPASR_EREC_DELETE 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 RPASR_EREC_DELETE. "Basic submit
SUBMIT RPASR_EREC_DELETE AND RETURN. "Return to original report after report execution complete
SUBMIT RPASR_EREC_DELETE 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: PROTOCOL = D .
Selection Text: TESTRUN = D .
Title: Archiving/Destruction: Delete Program for Recruitment Processes
Text Symbol: 001 = &1% of processes (&2 of &3) have been processed


INCLUDES used within this REPORT RPASR_EREC_DELETE

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:

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot i_protocol_output = p_prot_o.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING * ARCHIVE_NAME = ' ' object = 'HRASR_EREC' test_mode = testrun * AINDFLAG = 'X' * NO_STATISTICS = ' ' * OUTPUT_SEL_SCREEN_WHEN_DIALOG = ' ' * OUTPUT_SEL_SCREEN_WHEN_BATCH = ' ' IMPORTING archive_handle = gv_handle * TABLES * SELECTED_FILES = EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 archiving_standard_violation = 8 OTHERS = 9.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = 3 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = gv_handle IMPORTING object_number_in_file = gv_objects_to_delete.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = 'HRASR_EREC' IMPORTING commit_count_for_delete_prg = gv_commit_cnt maintain_index = gv_index.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = gv_handle IMPORTING object_id = gv_object_id object_offset = gv_object_offset archive_name = gv_archive_name session = gv_session EXCEPTIONS end_of_file = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 OTHERS = 6.

ARCHIVE_READ_OBJECT_BY_HANDLE CALL FUNCTION 'ARCHIVE_READ_OBJECT_BY_HANDLE' EXPORTING iv_handle = gv_handle * IV_READ_CLASS_DATA = 'CONTEXT' CHANGING ct_obj_data = gt_data_object EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = 3 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_DELETE_TABLE CALL FUNCTION 'ARCHIVE_DELETE_TABLE' EXPORTING iv_tabname = gw_object_data-tabname it_records = iv_deltst = testrun "Flag for test mode => to know if its a test or production mode * iv_on_commit = 'X' iv_handle = gv_handle EXCEPTIONS deletion_not_allowed = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gw_object_data-tabname i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = gv_handle.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = gv_handle TABLES table = gt_statistic.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = 001 i_processed = gv_objects_deleted i_total = gv_objects_to_delete.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = 001 i_processed = gv_objects_deleted i_total = gv_objects_to_delete i_output_immediately = 'X'. "the '100% done'-message shall be called no matter when the last progress has been send

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = gv_handle statistics_only_per_file = 'X'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = gv_handle.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = ls_arch_index-case_guid i_msgtype = 3 i_msgid = 'HRASR00_ARCHIVE' i_msgno = '007'. " Entry created in archiving index table

ARCHIVE_PROTOCOL_COLLECT





CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = object_text i_msgtype = 3 i_msgid = 'HRASR00_ARCHIVE' i_msgno = '008'. " Process status set to 'ARCHIVED'.



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