SAP Reports / Programs

RV130002 SAP ABAP Report - Conditions: Archiving Condition Records (DB Deletion Program)







RV130002 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The archiving of condition records is performed with 'ARCHIVE DEVELOPMENT KIT' (ADK)...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 RV130002 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 RV130002. "Basic submit
SUBMIT RV130002 AND RETURN. "Return to original report after report execution complete
SUBMIT RV130002 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 (without deletion)
Selection Text: P_PROT = Detailed log
Selection Text: ARCHIVE = Archive file
Title: Conditions: Archiving Condition Records (DB Deletion Program)
Text Symbol: 028 = Cond.type
Text Symbol: 029 = Data from the condition tables to be deleted
Text Symbol: 030 = Client
Text Symbol: 031 = CoItmNo.
Text Symbol: 032 = Del.ID
Text Symbol: 033 = Seq.no.
Text Symbol: 034 = End of archiving (deletion program)
Text Symbol: M01 = Correctly Deleted Scale Assignments
Text Symbol: M02 = Correctly Deleted Condition Amounts (1 Dim.)
Text Symbol: M03 = Correctly Deleted Condition Amounts (2 Dim.)
Text Symbol: M04 = Correctly Deleted Condition Amounts (3 Dim.)
Text Symbol: M10 = Number of Scale Assignments to Delete
Text Symbol: M11 = Number of Condition Amounts to Delete (1 Dim)
Text Symbol: M12 = Number of Condition Amounts to Delete (2 Dim)
Text Symbol: M13 = Number of Condition Amounts to Delete (3 Dim)
Text Symbol: OI0 = Number of F/D Conditions to Be Deleted
Text Symbol: OI1 = Number of F/D Formula Part to Be Deleted
Text Symbol: OI2 = Number of F/D Components to Be Deleted
Text Symbol: OI3 = Correctly Deleted F/D Conditions
Text Symbol: OI4 = Correctly Deleted F/D Form. Parts
Text Symbol: OI5 = Correctly Deleted F/D Components
Text Symbol: OI6 = Part
Text Symbol: OI7 = Temp./Perm.
Text Symbol: 001 = Processing archiving file
Text Symbol: 002 = Created on
Text Symbol: 003 = Number of condition tables to be deleted
Text Symbol: 004 = Number of condition items to be deleted
Text Symbol: 005 = Number of condition items to be deleted
Text Symbol: 006 = Number of quantity scales to be deleted
Text Symbol: 007 = Number of value scales to be deleted
Text Symbol: 008 = Number of records not yet processed
Text Symbol: 009 = Archiving deletion program with the following options
Text Symbol: 010 = Archiving file (from selection screen)
Text Symbol: 011 = Test run only





Text Symbol: 012 = Detailed log
Text Symbol: 013 = Correct deleted condition header
Text Symbol: 014 = Correct deleted condition items
Text Symbol: 015 = Correct deleted quantity scales
Text Symbol: 016 = Correct deleted value scales
Text Symbol: 017 = Correct deleted condition tables
Text Symbol: 018 = Next archiving object
Text Symbol: 019 = - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Text Symbol: 020 = Usage
Text Symbol: 021 = Application
Text Symbol: 022 = TabNo
Text Symbol: 023 = Tab
Text Symbol: 024 = KNUMH
Text Symbol: 025 = CoTabTill
Text Symbol: 026 = Use till
Text Symbol: 027 = To Date


INCLUDES used within this REPORT RV130002

INCLUDE RV130TO1.


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_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING ARCHIVE_NAME = ARCHIVE OBJECT = 'SD_COND' TEST_MODE = TESTRUN IMPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS OBJECT_NOT_FOUND = 01 OTHERS = 02.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING OBJECT = 'SD_COND' IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = COMMCNT EXCEPTIONS OBJECT_NOT_FOUND = 01 OTHERS = 02.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE EXCEPTIONS END_OF_FILE = 01 OPEN_ERROR = 02.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING ARCHIVE_HANDLE = HANDLE IMPORTING ARCHIVE_CREATION_DATE = CREAT_DAT ARCHIVE_CREATION_RELEASE = CREAT_REL ARCHIVE_CREATION_SYSTEM = CREAT_SYS ARCHIVE_DOCUMENT = CREAT_DOC ARCHIVE_NAME = ARCHIVE OBJECT = CREAT_OBJ EXCEPTIONS INTERNAL_ERROR = 01 WRONG_ACCESS_TO_ARCHIVE = 02.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING ARCHIVE_HANDLE = HANDLE IMPORTING * RECORD = ARC_BUFFER-SEGMENT RECORD_REF = BUFFER_REF RECORD_FLAGS = ARC_BUFFER-FLAGS RECORD_STRUCTURE = ARC_BUFFER-RNAME EXCEPTIONS END_OF_OBJECT = 01 INTERNAL_ERROR = 02 WRONG_ACCESS_TO_ARCHIVE = 03.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE.

ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING ARCHIVE_HANDLE = PI_HANDLE EXCEPTIONS INTERNAL_ERROR = 01 WRONG_ACCESS_TO_ARCHIVE = 02.



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