SAP Reports / Programs

RBPARCWR SAP ABAP Report - Archive Business Processes: Write Program







RBPARCWR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for INCLUDE 'RE_ARCHIVING' OBJECT DOKU ID TX The R/3 System executes the archiving process as follows: All the business processes, including corresponding data, that meets the selection criteria is written in the archive...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 RBPARCWR 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 RBPARCWR. "Basic submit
SUBMIT RBPARCWR AND RETURN. "Return to original report after report execution complete
SUBMIT RBPARCWR 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: TOYEAR = To Fiscal Year
Selection Text: TESTRUN = Test Run
Selection Text: OBJ_LIST = Business Process List
Selection Text: KOKRS = Controlling Area
Selection Text: GROUP = Business Process Group
Selection Text: COMMENTS = Archiving Run Memo
Selection Text: ARCHNODE = Archive
Selection Text: ARCHDEL = Archive and Delete
Title: Archive Business Processes: Write Program
Text Symbol: 400 = Business Process List
Text Symbol: 030 = Archiving Run Memo
Text Symbol: 020 = Restrictions
Text Symbol: 010 = Business Processes
Text Symbol: 007 = Process CCtr Name
Text Symbol: 006 = Test run: Business processes that would have been archived
Text Symbol: 005 = Archived Business Processes
Text Symbol: 004 = Test Run
Text Symbol: 003 = Archive and Delete
Text Symbol: 002 = Archive
Text Symbol: 001 = Processing Options


INCLUDES used within this REPORT RBPARCWR

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_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = L_HANDLE.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = L_HANDLE.

K_TOTAL_INIT CALL FUNCTION 'K_TOTAL_INIT' EXPORTING I_TRANSDATA_ONLY = 'X' TABLES RA_GJAHR = LT_GJAHR_SELECT T_OBJNR_SELECT = LT_OBJNR_SELECT.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING OBJECT = 'CO_PROCESS' CREATE_ARCHIVE_FILE = L_CREATE_FILE CALL_DELETE_JOB_IN_TEST_MODE = L_DONT_DELETE comments = comments IMPORTING ARCHIVE_HANDLE = R_HANDLE.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING ARCHIVE_HANDLE = V_HANDLE OBJECT_ID = L_OBJNR.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING ARCHIVE_HANDLE = V_HANDLE RECORD_FLAGS = 'X' RECORD_STRUCTURE = 'CBPR' TABLES TABLE = LT_CBPR.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING ARCHIVE_HANDLE = V_HANDLE RECORD_FLAGS = 'X' RECORD_STRUCTURE = 'CBPT' TABLES TABLE = LT_CBPT.

CKMLLA_ARCHIVE_OBJECT CALL FUNCTION 'CKMLLA_ARCHIVE_OBJECT' EXPORTING archive_handle = v_handle i_objnr = l_objnr i_year = v_toyear I_YEAR_IS_TOYEAR = 'X'.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = V_HANDLE.

K_KOKRS_READ CALL FUNCTION 'K_KOKRS_READ' EXPORTING KOKRS = V_KOKRS IMPORTING E_TKA01 = L_TKA01 EXCEPTIONS NOT_FOUND = 1.

LAST_DAY_IN_YEAR_GET CALL FUNCTION 'LAST_DAY_IN_YEAR_GET' EXPORTING I_DATE = L_DATE I_PERIV = L_TKA01-LMONA IMPORTING E_DATE = R_LAST_BUDAT EXCEPTIONS T009_NOTFOUND = 1 T009B_NOTFOUND = 1.

K_TOTAL_ARCHIVE_OBJECT CALL FUNCTION 'K_TOTAL_ARCHIVE_OBJECT' EXPORTING I_ARCHIVE_HANDLE = V_HANDLE I_OBJNR = V_OBJNR.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING SETCLASS = GSETC_BUSPROCESS_SETCLASS SHORTNAME = V_GROUP KOKRS = V_KOKRS IMPORTING SETID = L_SETID.

G_SET_GET_ALL_VALUES CALL FUNCTION 'G_SET_GET_ALL_VALUES' EXPORTING SETNR = L_SETID TABLES SET_VALUES = LT_RGSB4 EXCEPTIONS SET_NOT_FOUND = 1.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING ARCHIVE_HANDLE = V_HANDLE ID = 'LTXT' LANGUAGE = '*' NAME = L_TEXTNAME OBJECT = 'CBPR' OBJECT_DELETE_FLAG = V_DELETE.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING DYNAME = L_CPROG DYNUMB = '1000' TRANSLATE_TO_UPPER = 'X' TABLES DYNPFIELDS = LT_DYNPREAD.

K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING CLASS = GSETC_BUSPROCESS_SETCLASS FIELD_NAME = 'PRZNR' SEARCHFLD_INPUT = ' ' SET = '*' KOKRS = L_KOKRS IMPORTING SET_NAME = GROUP * SET_TITLE = EXCEPTIONS NO_SET_PICKED = 0.



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