RM07MARC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving material documents This program is used to archive the material documents in Inventory Management...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 RM07MARC into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: S_WERKS = Plant
Selection Text: S_VGART = Transaction/Event Type
Selection Text: S_MJAHR = Material Document Year
Selection Text: S_MBLNR = Material Document
Selection Text: S_BUDAT = Posting Date
Selection Text: P_TRACE = Log Flow
Selection Text: P_TEXT = Comment
Selection Text: P_FILE = Create Archive Files
Selection Text: P_DELETE = Deletion in Test Mode Only
Title: Archiving of Material Documents for Inventory Management
Text Symbol: T09 = Material documents selected for archiving
Text Symbol: T08 = Generated WHERE requirement for data selection
Text Symbol: T07 = Accumulated Messages
Text Symbol: T06 = Flow Log
Text Symbol: T04 = Archiving of Material Documents for Inventory Management
Text Symbol: T03 = Transaction/Event Types for Which Check Has Been Made at Item Level
Text Symbol: T02 = Transaction/Event Types for Which Check Has Been Made at Header Level
Text Symbol: T01 = Plants/Transact./Event Types for Which Doc. Ret. Period Has Not Been Maintained
Text Symbol: S02 = Options
Text Symbol: S01 = Criteria for Selection of Data
Text Symbol: O03 = Netting
Text Symbol: O02 = 2-Step Stock Tfr
Text Symbol: O01 = Following checks were unsuccessful
Text Symbol: M01 = You do not have authorization for all plants
Text Symbol: I03 = You do not have authorization for this plant: '
Text Symbol: I02 = Object 'M_MSEG_WMB', activity '06', user '
Text Symbol: I01 = You require authorization for deletion in all plants
Text Symbol: E04 = At least one docmt line has not yet been posted
Text Symbol: E03 = The selection is being changed due to insufficient authorization
Text Symbol: E02 = Selection via MSEG due to restriction of plants
Text Symbol: E01 = Selection via MSEG due to insufficient authorization
Text Symbol: 012 = Batch
Text Symbol: 011 = StLoc
Text Symbol: 010 = Material
Text Symbol: 009 = Year
Text Symbol: 008 = Item
Text Symbol: 007 = Doc. Number
Text Symbol: 006 = Selected
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING ARCHIVE_HANDLE = HANDLE.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE.
ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING CALL_DELETE_JOB_IN_TEST_MODE = P_DELETE CREATE_ARCHIVE_FILE = P_FILE OBJECT = 'MM_MATBEL' COMMENTS = P_TEXT IMPORTING ARCHIVE_HANDLE = HANDLE.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE.
ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING ARCHIVE_HANDLE = HANDLE RECORD = MKPF_TAB RECORD_STRUCTURE = 'MKPF'.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING ARCHIVE_HANDLE = HANDLE RECORD_STRUCTURE = 'MSEG' TABLES TABLE = DATA_TAB.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE.
RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = PRGNAME TABLES SELECTION_TABLE = VARI_TAB EXCEPTIONS NOT_FOUND = 1 NO_REPORT = 2 OTHERS = 3.
RS_LIST_SELECTION_TABLE CALL FUNCTION 'RS_LIST_SELECTION_TABLE' EXPORTING REPORT = PRGNAME SELTEXT = 'X' TABLES SEL_TAB = VARI_TAB.
DYNSQL_GENERATE_WHERE_CLAUSE CALL FUNCTION 'DYNSQL_GENERATE_WHERE_CLAUSE' EXPORTING FIELDNAME_KEY_1 = 'VGART' FIELDNAME_KEY_2 = 'WERKS' FIELDNAME_VALUE = 'BUDAT' OPERATOR = '<=' TABLES WHERE_CLAUSE = DYN_SQL CONTROL_TABLE = CNT_TAB ALL_VALUES_KEY_1 = T158V_ALL VALUES_KEY_1 = T158V_TAB ALL_VALUES_KEY_2 = T001W_ALL VALUES_KEY_2 = T001W_TAB CHANGING KEY_1_IS_IN_WHERE_CLAUSE = SW_KEY_1 KEY_2_IS_IN_WHERE_CLAUSE = SW_KEY_2 EXCEPTIONS DYNSQL_TOO_LARGE = 1 WRONG_ENTRY_IN_CONTROL_TABLE = 2 KEY_VALUES_INCONSISTENT = 3 NO_ENTRY_FOUND = 4 FUNCTION_ALREADY_CALLED = 5 OTHERS = 6.
DYNSQL_READ_CONTROL_TABLE CALL FUNCTION 'DYNSQL_READ_CONTROL_TABLE' EXPORTING KEY_1 = T158V_TAB-VGART KEY_2 = T001W_TAB-WERKS EXCEPTIONS KEY_VALUE_INVALID = 1.
DYNSQL_READ_CONTROL_TABLE CALL FUNCTION 'DYNSQL_READ_CONTROL_TABLE' EXPORTING KEY_1 = V_MKPF_TAB-VGART KEY_2 = MSEG_TAB-WERKS IMPORTING CONTROL_LINE = CNTRL_LINE EXCEPTIONS KEY_VALUE_INVALID = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RM07MARC - Archiving of Material Documents for Inventory Management RM07MARC - Archiving of Material Documents for Inventory Management RM07MAID - Program for Deletion of Index Files for Material Documents RM07MAID - Program for Deletion of Index Files for Material Documents RM07MAIC - Create Index and Short Documents; Archiving Inventory Management RM07MAIC - Create Index and Short Documents; Archiving Inventory Management