SAP Reports / Programs

RPAR2W00 SAP ABAP Report - PA: Archiving - Write Program for Travel Expenses (PA_TRAVEL)







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 Archive Accounting Data transaction (PU22) in archive management (transaction SARA) to start program RPAR2W00...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 RPAR2W00 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 RPAR2W00. "Basic submit
SUBMIT RPAR2W00 AND RETURN. "Return to original report after report execution complete
SUBMIT RPAR2W00 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: 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


INCLUDES used within this REPORT RPAR2W00

INCLUDE RPARDI10.


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:

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.



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