SAP Reports / Programs

RJBRSTA2 SAP ABAP Report - RM Archiving: Deletion Program







RJBRSTA2 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 RJBRSTA2 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 RJBRSTA2. "Basic submit
SUBMIT RJBRSTA2 AND RETURN. "Return to original report after report execution complete
SUBMIT RJBRSTA2 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: P_TSTRUN = Test Run
Title: RM Archiving: Deletion Program


INCLUDES used within this REPORT RJBRSTA2

INCLUDE RJBRSTA2TOP.


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:

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING * ARCHIVE_NAME = ' ' OBJECT = 'RM_SVSTATE' TEST_MODE = P_TSTRUN * AINDFLAG = 'X' IMPORTING ARCHIVE_HANDLE = G_HANDLE TABLES SELECTED_FILES = GT_SELFILES EXCEPTIONS FILE_ALREADY_OPEN = 1 FILE_IO_ERROR = 2 INTERNAL_ERROR = 3 NO_FILES_AVAILABLE = 4 OBJECT_NOT_FOUND = 5 OPEN_ERROR = 6 NOT_AUTHORIZED = 7 OTHERS = 8.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING OBJECT = 'RM_SVSTATE' IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = G_CNT_COMMIT MAINTAIN_INDEX = G_FLG_INDEX EXCEPTIONS OBJECT_NOT_FOUND = 1 OTHERS = 2.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = G_HANDLE EXCEPTIONS INTERNAL_ERROR = 1 WRONG_ACCESS_TO_ARCHIVE = 2 OTHERS = 3.

ARCHIVE_ADMIN_SET_STATUS CALL FUNCTION 'ARCHIVE_ADMIN_SET_STATUS' EXPORTING FILES_ARE_CONVERTED = ' ' * FILES_ARE_DELETED = ' ' INDEX_CREATED = 'X' * INDEX_DELETED = ' ' TABLES ARCHIVE_FILES = LT_ARCFILES EXCEPTIONS CANNOT_CHANGE_STATUS = 1 OTHERS = 2.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING ARCHIVE_HANDLE = G_HANDLE IMPORTING OBJECT_ID = L_OBJID OBJECT_OFFSET = L_OFFSET ARCHIVE_NAME = L_ARCHKEY EXCEPTIONS END_OF_FILE = 1 FILE_IO_ERROR = 2 INTERNAL_ERROR = 3 OPEN_ERROR = 4 WRONG_ACCESS_TO_ARCHIVE = 5 OTHERS = 6.

RM_RBA_SVARCH_RECORDS CALL FUNCTION 'RM_RBA_SVARCH_RECORDS' EXPORTING I_HANDLE = G_HANDLE TABLES E_SVSTATE = GT_SVSTATE E_SVKO = GT_SVKO E_SVABEST = GT_SVABEST E_SVKOET = GT_SVKOET E_SVHIER = GT_SVHIER E_SVBEWEG = GT_SVBEWEG E_SVCOMBEWEG = GT_SVCOMBEWEG "1673340 E_SVFML = GT_SVFML E_SVOPTI = GT_SVOPTI E_SVPHBAUM = GT_SVPHBAUM E_SVPHTEXT = GT_SVPHTEXT E_SVPHZUORDN = GT_SVPHZUORDN EXCEPTIONS ARCH_ERROR = 1 OTHERS = 2.

RM_RB_SVSTATES_DELETE CALL FUNCTION 'RM_RB_SVSTATES_DELETE' TABLES I_SVSTATE = GT_SVSTATE I_SVKO = GT_SVKO I_SVABEST = GT_SVABEST I_SVKOET = GT_SVKOET I_SVHIER = GT_SVHIER I_SVBEWEG = GT_SVBEWEG I_SVCOMBEWEG = GT_SVCOMBEWEG "1673340 I_SVFML = GT_SVFML I_SVOPTI = GT_SVOPTI I_SVPHBAUM = GT_SVPHBAUM I_SVPHTEXT = GT_SVPHTEXT I_SVPHZUORDN = GT_SVPHZUORDN.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING ARCHIVE_HANDLE = G_HANDLE IMPORTING * ARCHIVE_CREATION_DATE = * ARCHIVE_CREATION_RELEASE = * ARCHIVE_CREATION_SYSTEM = ARCHIVE_DOCUMENT = L_ARCH_RUN * ARCHIVE_NAME = * OBJECT = * ARCHIVE_CODE_PAGE = * ARCHIVE_NUMBER_FORMAT = * ADK_VERSION = * TABLES * USED_CLASSES = EXCEPTIONS INTERNAL_ERROR = 1 WRONG_ACCESS_TO_ARCHIVE = 2 OTHERS = 3.



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