RPAR2W00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You must use the
If you would like to execute this report or see the full code listing simply enter RPAR2W00 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: TESTRUN = Test run (no deletions)
Selection Text: PROTOCOL = Detail log
Selection Text: ARCH_GRP = Archiving group
Selection Text: ACOMMENT = Comment/note
Title: PA: Archiving - Write Program for Travel Expenses (PA_TRAVEL)
Text Symbol: XYZ = Program not released
Text Symbol: TIT = Selection
Text Symbol: TI2 = Test options
Text Symbol: SCO = Selected personnel numbers with trips
Text Symbol: NUM = No. of personnel numbers in archiving group
Text Symbol: NRX = Not released
Text Symbol: NOM = No personnel numbers in archiving group
Text Symbol: ER9 = Trip data error - cancellation for per.no.
Text Symbol: ER8 = Travel Management module does not exist - import add-on CD
Text Symbol: E41 = No org.unit for trip end date: Date/pers.no.
Text Symbol: E40 = Invalid payroll area: Payr.area/pers.no
Text Symbol: E31 = Could not determine ctry grpg for PA/pers.no.
Text Symbol: ABO = Program terminated
Text Symbol: 001 = Archiving groups
INCLUDE RPARDI10.
No SAP DATABASE tables are accessed within this REPORT code!
TRAVEL_EXISTS CALL FUNCTION 'TRAVEL_EXISTS' "WKUK019493 EXCEPTIONS "WKUK019493 travel_not_existing = 1 "WKUK019493 OTHERS = 2. "WKUK019493
RP_ARCHIVE_TRAVEL_ARC_KEY CALL FUNCTION 'RP_ARCHIVE_TRAVEL_ARC_KEY' "#EC EXISTS EXPORTING pernr_arc = p_pernr arc_group = arch_grp TABLES tripkeys_arc = l_key_tab EXCEPTIONS OTHERS = 0.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = my_archive_handle object_id = p_pernr.
PA_TRAVEL_ARCHIVE_OBJECT CALL FUNCTION 'PA_TRAVEL_ARCHIVE_OBJECT' EXPORTING archive_handle = my_archive_handle object_key = l_key_tab.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = my_archive_handle.
PA_TRAVEL_TESTMODE CALL FUNCTION 'PA_TRAVEL_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 = create object = object_pa_travel comments = acomment IMPORTING archive_handle = my_archive_handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 OTHERS = 5.
ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = my_archive_handle IMPORTING archive_document = curr_document.
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.
PA_TRAVEL_SET_PRDAT CALL FUNCTION 'PA_TRAVEL_SET_PRDAT' EXPORTING old_prdat = p_old_prdat new_prdat = p_new_prdat arched_to = p_arched_to archive_handle = my_archive_handle.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RPAR2W00 - PA: Archiving - Write Program for Travel Expenses (PA_TRAVEL) RPAR2W00 - PA: Archiving - Write Program for Travel Expenses (PA_TRAVEL) RPAR2R00 - PA: Archiving - Reload Program for Travel Expenses (PA TRAVEL) RPAR2R00 - PA: Archiving - Reload Program for Travel Expenses (PA TRAVEL) RPAR2D00 - PA: Archiving - Delete Program for Travel Expenses (PA_TRAVEL) RPAR2D00 - PA: Archiving - Delete Program for Travel Expenses (PA_TRAVEL)