SAP Reports / Programs | Personnel Management | Employee Interaction Center(PA-EIC) SAP PA

RP_HR_EIC_WRITE SAP ABAP Report - Destruction: Write Program for Activities (HR-EIC)







RP_HR_EIC_WRITE 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 write Employee Interaction Center (EIC) activities (closed or complete requests) 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 RP_HR_EIC_WRITE 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 RP_HR_EIC_WRITE. "Basic submit
SUBMIT RP_HR_EIC_WRITE AND RETURN. "Return to original report after report execution complete
SUBMIT RP_HR_EIC_WRITE 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: P_CATDES = Category
Selection Text: P_CLOSE = Closed Activities
Selection Text: P_COMPLT = Completed Activities
Selection Text: P_DATE = Destroy Until
Selection Text: P_MOLGA = Country Grouping
Selection Text: P_PERNR = Personnel Number
Selection Text: P_SUBCAT = Subcategory
Selection Text: P_COMENT = D .
Selection Text: TESTRUN = D .
Title: Destruction: Write Program for Activities (HR-EIC)
Text Symbol: 000 = Personnel Number
Text Symbol: 001 = Note
Text Symbol: 002 = Data Destruction
Text Symbol: 003 = Select Criteria
Text Symbol: 004 = Country
Text Symbol: 005 = Category
Text Symbol: 010 = Category


INCLUDES used within this REPORT RP_HR_EIC_WRITE

INCLUDE RPD_HR_EIC_WRITE_DATA.
INCLUDE RPS_HR_EIC_WRITE_SELSCREEN.


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_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgid = sy-msgid i_msgno = sy-msgno.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = c_arc_object comments = p_coment do_not_delete_data = l_not_delete destroy = l_destroy IMPORTING archive_handle = lv_handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 OTHERS = 5.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = 'ADK_EXCEPTION' i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = lv_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = 'ADK_EXCEPTION' i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno.

POBJ_ARCHIVE_OBJECT CALL FUNCTION 'POBJ_ARCHIVE_OBJECT' EXPORTING iv_archive_handle = lv_handle iv_guid = lv_guid iv_consumerid = 'EIC' object_delete_flag = l_not_delete EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = 'ARCHIVING_CLASS_ACCESS' i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = 'POBJ'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = 'ARCHIVING_CLASS_ACCESS' i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = 'POBJ'.

WORKITEM_ARCHIVE_OBJECT CALL FUNCTION 'WORKITEM_ARCHIVE_OBJECT' EXPORTING archive_handle = lv_handle workitem_id = -wiid object_delete_flag = l_not_delete EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = 'ARCHIVING_CLASS_ACCESS' i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = 'WORKITEM'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = 'ARCHIVING_CLASS_ACCESS' i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = 'WORKITEM'.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = lv_handle * IMPORTING * OBJECT_OFFSET = * ARCHIVE_NAME = EXCEPTIONS file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 data_object_not_saved = 6 OTHERS = 7.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object_id 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 EXCEPTIONS protocol_not_yet_initialized = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object_id i_msgtype = 1 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = ls_activity-eic_pernr EXCEPTIONS protocol_not_yet_initialized = 1 OTHERS = 2.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_msgid = sy-msgid i_msgno = sy-msgno i_processed = lv_processed_doc i_total = lv_total_of_objects IMPORTING e_progress_sent = lv_progress_send.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "otherwise message will not appear in the job-log

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_msgid = sy-msgid i_msgno = sy-msgno i_processed = lv_processed_doc i_total = lv_total_of_objects i_output_immediately = 'X'. "force the progress output

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object_id i_msgtype = 1 i_msgid = sy-msgid i_msgno = sy-msgno.

ARCHIVE_WRITE_STATISTICS





CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = lv_handle.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = lv_handle.

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

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.



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