SAP Reports / Programs | Marketing Retail Network | Industry Solution Oil | Marketing Retail Network(IS-OIL-DS-MRN) SAP IS

ROIFARCA SAP ABAP Report - Business location Archiving - Archiving Program







ROIFARCA 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 ROIFARCA 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 ROIFARCA. "Basic submit
SUBMIT ROIFARCA AND RETURN. "Return to original report after report execution complete
SUBMIT ROIFARCA 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: COMMENTS = D Note
Selection Text: CREATE = Generate archive file
Selection Text: S_MANDT = D Client
Selection Text: S_PBLNR = D Business location ID
Selection Text: S_PBLTYP = D Bus. location type
Selection Text: S_RNBT = D Business type
Selection Text: TESTMODE = Test mode
Title: Business location Archiving - Archiving Program
Text Symbol: 001 = Testmode
Text Symbol: 002 = Create archive
Text Symbol: 003 = Selection Parameters
Text Symbol: 004 = Client
Text Symbol: 005 = Location ID
Text Symbol: 006 = Location type
Text Symbol: 007 = Business type


INCLUDES used within this REPORT ROIFARCA

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_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING CALL_DELETE_JOB_IN_TEST_MODE = TESTMODE CREATE_ARCHIVE_FILE = CREATE OBJECT = G_OBJECT COMMENTS = COMMENTS IMPORTING ARCHIVE_HANDLE = G_HANDLE EXCEPTIONS INTERNAL_ERROR = 1 OBJECT_NOT_FOUND = 2 OPEN_ERROR = 3 NOT_AUTHORIZED = 4 OTHERS = 5.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING * BYPASS_BUFFER = ' ' CLIENT = OIFSPBL-MANDT OBJNR = OIFSPBL-OBJNR STATUS = C_STAT_DELETION_FLAG EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

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

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING ARCHIVE_HANDLE = G_HANDLE RECORD = G_OIFSPBL_TAB RECORD_STRUCTURE = C_STRUCT_OIFSPBL EXCEPTIONS INTERNAL_ERROR = 1 WRONG_ACCESS_TO_ARCHIVE = 2 INVALID_RECORD_STRUCTURE = 3 OTHERS = 4.

ADDRESS_ARCHIVE_OBJECT CALL FUNCTION 'ADDRESS_ARCHIVE_OBJECT' "SO3K126738 INS EXPORTING "SO3K126738 INS ARCHIVE_HANDLE = G_HANDLE "SO3K126738 INS ADDRESS_OBJECT_TYPE = '1' "SO3K126738 INS ADDRESS_NUMBER = G_OIFSPBL_TAB-ADDRNUM "SO3K126738 INS EXCEPTIONS "SO3K126738 INS WRONG_ACCESS_TO_ARCHIVE = 1 "SO3K126738 INS PARAMETER_ERROR = 2 "SO3K126738 INS OTHERS = 3. "SO3K126738 INS

CHANGEDOCU_ARCHIVE_OBJECT CALL FUNCTION 'CHANGEDOCU_ARCHIVE_OBJECT' EXPORTING ARCHIVE_HANDLE = G_HANDLE CLIENT = G_OIFSPBL_TAB-MANDT OBJECTCLASS = G_OBJECTCLASS OBJECTID = G_OBJECTID OBJECT_DELETE_FLAG = 'X' EXCEPTIONS WRONG_ACCESS_TO_ARCHIVE = 1 OTHERS = 2.

CLASSIFY_ARCHIVE_OBJECT * call function 'CLASSIFY_ARCHIVE_OBJECT' * exporting * archive_handle = g_handle * object = g_objek * ptable = g_obtab * object_delete_flag = 'X' * exceptions * wrong_access_to_archive = 1 * others = 2.

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING CLIENT = G_OIFSPBL_TAB-MANDT ID = G_TXTID LANGUAGE = G_SPRAS NAME = G_TXTNAME OBJECT = G_TXTOBJ IMPORTING ENTRIES = G_ENTRIES TABLES SELECTIONS = IHEADER EXCEPTIONS WRONG_ACCESS_TO_ARCHIVE = 1 OTHERS = 2.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING ARCHIVE_HANDLE = G_HANDLE CLIENT = G_OIFSPBL_TAB-MANDT ID = IHEADER-TDID LANGUAGE = IHEADER-TDSPRAS NAME = IHEADER-TDNAME OBJECT = IHEADER-TDOBJECT OBJECT_DELETE_FLAG = 'X'.

STATUS_ARCHIVE_OBJECT CALL FUNCTION 'STATUS_ARCHIVE_OBJECT' EXPORTING ARCHIVE_HANDLE = G_HANDLE OBJECT_DELETE_FLAG = 'X' I_MANDT = G_OIFSPBL_TAB-MANDT I_OBJNR = G_OIFSPBL_TAB-OBJNR EXCEPTIONS WRONG_ACCESS_TO_ARCHIVE = 1 OTHERS = 2.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = G_HANDLE EXCEPTIONS FILE_IO_ERROR = 1 INTERNAL_ERROR = 2 OPEN_ERROR = 3 TERMINATION_REQUESTED = 4 WRONG_ACCESS_TO_ARCHIVE = 5 OTHERS = 6.

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.



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