SAP Reports / Programs

RK4ATEST SAP ABAP Report - Costing-Based CO-PA Archiving: Archiving Program







RK4ATEST 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 RK4ATEST 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 RK4ATEST. "Basic submit
SUBMIT RK4ATEST AND RETURN. "Return to original report after report execution complete
SUBMIT RK4ATEST 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: VRGAR = Record type
Selection Text: VERSI = Version
Selection Text: S_KOKRS = Controlling Area
Selection Text: S_BUKRS = Company Code
Selection Text: SIREORG = Archive line items only
Selection Text: PLIKZ = Plan/actual indicator
Selection Text: PERDE = Period
Selection Text: PAOBJNR = Profitability segment
Selection Text: G_NO_EO = Archive Transaction Data
Selection Text: G_EO = Archive Profitability Segments
Selection Text: GJAHR = Fiscal year
Selection Text: DELE_TES = Delete Program in Test Mode
Selection Text: CRE_ARC = Create archive
Title: Costing-Based CO-PA Archiving: Archiving Program
Text Symbol: 002 = Archive Transaction Data
Text Symbol: 001 = Archive Prof. Segments / Transaction Data


INCLUDES used within this REPORT RK4ATEST

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:

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING RESTRICTION = GT_RESTRICT.

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

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

RKE_COST_CHECK_EP_INDEX3 CALL FUNCTION 'RKE_COST_CHECK_EP_INDEX3' EXPORTING ERKRS = G_ERKRS.

RKE_GET_ERKRS_ATTR CALL FUNCTION 'RKE_GET_ERKRS_ATTR' EXPORTING ERKRS = G_ERKRS IMPORTING BLOCKFACTOR = G_BLOCKFACTOR.

RKE_READ_ERKRS_MESSAGE CALL FUNCTION 'RKE_READ_ERKRS_MESSAGE' EXPORTING I_ERKRS = G_ERKRS IMPORTING E_V_TKEB = GS_TKEB.

RKE_GET_NUMBER_OF_PERIODS CALL FUNCTION 'RKE_GET_NUMBER_OF_PERIODS' EXPORTING PERFLAG = GS_TKEB-PERFLAG PERIV = GS_TKEB-PERIV YEAR = GJAHR-LOW IMPORTING ANZSP = G_ANZSP FIRSTSPEC = G_FIRSTSPEC.

RKE_CONVERT_SEL_TO_PERBL_SEL CALL FUNCTION 'RKE_CONVERT_SEL_TO_PERBL_SEL' EXPORTING ERKRS = G_ERKRS * LEDGER = '01' TABLES PERBL_PHYSNR_SEL = GT_PERBL_PERIO SELECTION_TABLE = GT_SELTAB.

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 = DELE_TES CREATE_ARCHIVE_FILE = CRE_ARC OBJECT = G_ARCH_OBJECT IMPORTING ARCHIVE_HANDLE = G_ARCH_HANDLE.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = G_ARCH_HANDLE.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = G_ARCH_HANDLE.

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 = DELE_TES CREATE_ARCHIVE_FILE = CRE_ARC OBJECT = G_ARCH_OBJECT IMPORTING ARCHIVE_HANDLE = G_ARCH_HANDLE.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = G_ARCH_HANDLE.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = G_ARCH_HANDLE.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING ARCHIVE_HANDLE = G_ARCH_HANDLE OBJECT_ID = G_ARCH_OBJECT.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING ARCHIVE_HANDLE = G_ARCH_HANDLE RECORD_STRUCTURE = I_TABNAME RECORD_FLAGS = ' ' TABLES TABLE = IT_CEX.

ARCHIVE_SAVE_OBJECT





CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = G_ARCH_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 RK4ATEST or its description.