SAP Reports / Programs

RK4DACA1 SAP ABAP Report - CO-PA Archiving Program: Account-Based CO-PA







RK4DACA1 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 RK4DACA1 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 RK4DACA1. "Basic submit
SUBMIT RK4DACA1 AND RETURN. "Return to original report after report execution complete
SUBMIT RK4DACA1 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: GJAHR = Fiscal Year
Selection Text: PERDE = Period
Selection Text: PLIKZ = Plan/actual indicator
Selection Text: SIREORG = Archive line items only
Selection Text: VERSI = Version
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Selection Text: P_AR_ILM = D .
Selection Text: P_DEST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_SNAP = D .
Title: CO-PA Archiving Program: Account-Based CO-PA
Text Symbol: 001 = Application-Specific Control
Text Symbol: 002 = Restrictions


INCLUDES used within this REPORT RK4DACA1

INCLUDE ARCH_WRITE_PRG_STANDARD2.


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:

RKE_VALUE_REQUEST_VERSI CALL FUNCTION 'RKE_VALUE_REQUEST_VERSI' EXPORTING ERKRS = ERKRS IMPORTING VERSI = VERSI-LOW.

RKE_VALUE_REQUEST_VERSI CALL FUNCTION 'RKE_VALUE_REQUEST_VERSI' EXPORTING ERKRS = ERKRS IMPORTING VERSI = VERSI-HIGH.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.

K_COSTS_INIT CALL FUNCTION 'K_COSTS_INIT' EXPORTING * I_OBJ_DELETE_FLAG = 'X' I_ITEMS_ONLY = SIREORG * I_ALL_LEDGERS = 'X' TABLES * T_LEDNR = RA_GJAHR = GJAHR RA_WRTTP = WRTTP RA_VERSN = VERSI RA_PERIO = PERDE.

ADK_ABILITY_OF_CHECKS CALL FUNCTION 'ADK_ABILITY_OF_CHECKS' EXPORTING XDISABLE_CHECKS ='X'.

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 = ARC_OBJECT COMMENTS = p_coment IMPORTING ARCHIVE_HANDLE = HANDLE.

OBJECT_NUMBER_GET_EO CALL FUNCTION 'OBJECT_NUMBER_GET_EO' EXPORTING PAOBJNR = I_CE4-PAOBJNR ERKRS = ERKRS IMPORTING OBJNR = OBJNR.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE.

K_COSTS_ARCHIVE_OBJECT CALL FUNCTION 'K_COSTS_ARCHIVE_OBJECT' EXPORTING I_ARCHIVE_HANDLE = HANDLE I_OBJNR = OBJNR.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = HANDLE.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_msgid = 'KR' i_msgno = '347' i_processed = v_processed i_output_immediately = v_immediate.

DB_COMMIT * CALL FUNCTION 'DB_COMMIT'.



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