SAP Reports / Programs | Personnel Management | Personnel Administration(PA-PA) SAP PA

RPAR4W00 SAP ABAP Report - PA: Archiving; Write Program Payroll Documents (PA_PDOC)







RPAR4W00 is a standard Executable ABAP Report 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 RPAR4W00 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 RPAR4W00. "Basic submit
SUBMIT RPAR4W00 AND RETURN. "Return to original report after report execution complete
SUBMIT RPAR4W00 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: SL_RUNID = D .
Selection Text: P_DEST = D .
Selection Text: P_AR_ILM = D .
Selection Text: PAY_TYPE = D .
Selection Text: TESTRUN = Test Run
Selection Text: PROTOCOL = Detailed Log
Selection Text: ACOMMENT = Comment/note
Title: PA: Archiving; Write Program Payroll Documents (PA_PDOC)
Text Symbol: SE3 = Add'l data
Text Symbol: SE2 = Test options
Text Symbol: SE1 = Selection
Text Symbol: NOA = This was a test run. Data was not deleted
Text Symbol: ER3 = Program terminated
Text Symbol: 021 = Already Destroyed
Text Symbol: 020 = Simulation run
Text Symbol: 017 = Already Destroyed
Text Symbol: 016 = Archived Posting Runs
Text Symbol: 015 = Skipped posting runs
Text Symbol: 013 = End of retention period reached
Text Symbol: 012 = No Run ID Selected
Text Symbol: 011 = Start the report from transaction SARA
Text Symbol: 010 = Incorrect Status of Document Number
Text Symbol: 009 = Successfully Archived
Text Symbol: 008 = Session Interrupted For
Text Symbol: 007 = Already Archived
Text Symbol: 006 = Documents
Text Symbol: 005 = Posting Run
Text Symbol: 004 = Company Code
Text Symbol: 003 = No skipped posting runs exist
Text Symbol: 002 = No archived posting runs exist
Text Symbol: 001 = Test run for archiving


INCLUDES used within this REPORT RPAR4W00

INCLUDE HCMDP_ILM_WRITE_PRG_STD_ILM..


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:

DYNP_VALUES_READ * CALL FUNCTION 'DYNP_VALUES_READ' * EXPORTING * dyname = 'RPAR4W00' * dynumb = '1000' * translate_to_upper = 'X' * TABLES * dynpfields = t_dynpfields * EXCEPTIONS * OTHERS = 0.

HR_EVAL_HELPVIEW CALL FUNCTION 'HR_EVAL_HELPVIEW' EXPORTING type = pay_type all_status = ' ' IMPORTING runid = sl_runid-low TABLES statustab = g_status EXCEPTIONS no_entries = 1 type_not_valid = 2 OTHERS = 3.

DYNP_VALUES_READ * CALL FUNCTION 'DYNP_VALUES_READ' * EXPORTING * dyname = 'RPAR4W00' * dynumb = '1000' * translate_to_upper = 'X' * TABLES * dynpfields = t_dynpfields * EXCEPTIONS * OTHERS = 0.

HR_EVAL_HELPVIEW CALL FUNCTION 'HR_EVAL_HELPVIEW' EXPORTING type = pay_type all_status = ' ' IMPORTING runid = sl_runid-high TABLES statustab = g_status EXCEPTIONS no_entries = 1 type_not_valid = 2 OTHERS = 3.

ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = protocol.

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_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = 3 i_text = text-012.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

PA_PDOC_TESTMODE CALL FUNCTION 'PA_PDOC_TESTMODE' EXPORTING testmode_on_off = protocol.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = testrun create_archive_file = l_create_files object = this_object comments = acomment do_not_delete_data = l_not_delete destroy = l_destroy IMPORTING archive_handle = my_archive_handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 archiving_standard_violation = 5.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = my_archive_handle IMPORTING archive_document = current_archive.

HR_EVAL_STATUS_GET CALL FUNCTION 'HR_EVAL_STATUS_GET' EXPORTING type = p_pay_type runid = wa_object-runid IMPORTING status = fetched_status simu = l_simu EXCEPTIONS OTHERS = 0.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_text = 'Simulationslauf'(020) i_msgtype = 3.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_text = lv_text i_msgtype = 3.

HR_EVAL_ATTR_GET CALL FUNCTION 'HR_EVAL_ATTR_GET' EXPORTING type = p_pay_type runid = wa_object-runid attr = 'ARCDOCNR' EXCEPTIONS run_not_found = 1 attr_not_found = 2 OTHERS = 3.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_text = lv_text i_msgtype = 3.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_text = lv_text i_msgtype = 3.

HR_EVAL_ATTR_GET





CALL FUNCTION 'HR_EVAL_ATTR_GET' EXPORTING type = p_pay_type runid = wa_object-runid attr = 'ARCDOCNR' EXCEPTIONS run_not_found = 1 attr_not_found = 2 OTHERS = 3.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_text = lv_text i_msgtype = 3.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_text = lv_text i_msgtype = 3.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = my_archive_handle object_id = wa_object-docnum.

PA_PDOC_ARCHIVE_OBJECT CALL FUNCTION 'PA_PDOC_ARCHIVE_OBJECT' EXPORTING archive_handle = my_archive_handle object_key = wa_object.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = my_archive_handle 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 i_msgtype = 3 i_text = lv_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_msgtype = 1 i_text = lv_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_msgtype = 1 i_text = lv_text.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object 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_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = my_archive_handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = my_archive_handle.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object i_msgtype = 3 i_msgid = 'PH' i_msgno = '241' i_msgv1 = 'P_PYEVDOC'.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' EXPORTING name = 'ILM_PROCESSING_OPTIONS_TEXT' langu = sy-langu IMPORTING dd04v_wa = li_dd04v.



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