SAP Reports / Programs

ROIFARCD SAP ABAP Report - Business location Archiving - Deletion Program







ROIFARCD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The ROIFARCD program deletes business location master data which has been archived in an earlier step from the corresponding database tables...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 ROIFARCD 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 ROIFARCD. "Basic submit
SUBMIT ROIFARCD AND RETURN. "Return to original report after report execution complete
SUBMIT ROIFARCD 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_CLRGEN = Clear entries in partner rec's
Selection Text: TESTMODE = Test mode
Title: Business location Archiving - Deletion Program
Text Symbol: 007 = deletion


INCLUDES used within this REPORT ROIFARCD

INCLUDE ROIFARCT.


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 OBJECT = G_OBJECT TEST_MODE = TESTMODE IMPORTING ARCHIVE_HANDLE = G_HANDLE 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 = G_OBJECT IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = G_COMMCNT.

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

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING ARCHIVE_HANDLE = G_HANDLE IMPORTING RECORD = ARC_BUFFER-SEGMENT * record_cursor = RECORD_FLAGS = ARC_BUFFER-FLAGS RECORD_STRUCTURE = ARC_BUFFER-RNAME * record_length = arc_buffer-rcszk EXCEPTIONS END_OF_OBJECT = 1 INTERNAL_ERROR = 2 WRONG_ACCESS_TO_ARCHIVE = 3 OTHERS = 4.

ENQUEUE_E_OIFSPBL CALL FUNCTION 'ENQUEUE_E_OIFSPBL' EXPORTING MANDT = G_OIFSPBL_TAB-MANDT PBLNR = G_OIFSPBL_TAB-PBLNR RNBT = '****' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK'.

ENQUEUE_E_OIFKNA1 CALL FUNCTION 'ENQUEUE_E_OIFKNA1' EXPORTING MANDT = G_OIFSPBL_TAB-MANDT KUNNR = G_OIFBBP1_TAB-KUNNR EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK'.

ENQUEUE_E_OIRBPBLB CALL FUNCTION 'ENQUEUE_E_OIRBPBLB' EXPORTING MANDT = G_OIRBPBLB_TAB-MANDT PBLNR = G_OIRBPBLB_TAB-PBLNR RNBT = G_OIRBPBLB_TAB-RNBT EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

ARCHIVE_ROLLBACK_WORK CALL FUNCTION 'ARCHIVE_ROLLBACK_WORK'.

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

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = G_HANDLE.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = G_HANDLE.

DEQUEUE_E_OIFSPBL CALL FUNCTION 'DEQUEUE_E_OIFSPBL' EXPORTING MANDT = G_OIFSPBL_TAB-MANDT PBLNR = G_OIFSPBL_TAB-PBLNR.



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