SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

RM07IDELS SAP ABAP Report - Archiving Physical Inventory Documents: Delete Program







RM07IDELS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report RM07IDELS deletes all the physical inventory documents of a file that exists in the storage system from the database...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 RM07IDELS 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 RM07IDELS. "Basic submit
SUBMIT RM07IDELS AND RETURN. "Return to original report after report execution complete
SUBMIT RM07IDELS 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_DELPRD = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Title: Archiving Physical Inventory Documents: Delete Program
Text Symbol: 001 = PI document will be deleted
Text Symbol: 002 = &1 phys. inventory docs deleted
Text Symbol: 010 = Test Mode
Text Symbol: 011 = Live Mode


INCLUDES used within this REPORT RM07IDELS

INCLUDE ARCH_DELETE_PRG_STANDARD2.


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_PROTOCOL_INIT_APPL call function 'ARCHIVE_PROTOCOL_INIT_APPL' exporting I_DETAILPROTOCOL = P_PROT.

ARCHIVE_GET_CUSTOMIZING_DATA call function 'ARCHIVE_GET_CUSTOMIZING_DATA' exporting OBJECT = 'MM_INVBEL' importing COMMIT_COUNT_FOR_DELETE_PRG = CUST_COMMIT_COUNT.

ARCHIVE_OPEN_FOR_DELETE call function 'ARCHIVE_OPEN_FOR_DELETE' exporting OBJECT = 'MM_INVBEL' TEST_MODE = P_DELTST importing ARCHIVE_HANDLE = G_HANDLE exceptions FILE_ALREADY_OPEN = 01.

ARCHIVE_GET_NEXT_OBJECT call function 'ARCHIVE_GET_NEXT_OBJECT' exporting ARCHIVE_HANDLE = G_HANDLE exceptions END_OF_FILE = 01.

ARCHIVE_DELETE_OBJECT_DATA call function 'ARCHIVE_DELETE_OBJECT_DATA' exporting ARCHIVE_HANDLE = G_HANDLE.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting ARCHIVE_HANDLE = G_HANDLE importing RECORD_FLAGS = L_FLAGS RECORD_STRUCTURE = L_STRUCTURE RECORD_REF = L_RECORD exceptions END_OF_OBJECT = 01.

PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' exporting I_TEXT = TEXT-002 I_MSGV1 = G_PROCESSED I_PROCESSED = G_PROCESSED.

ARCHIVE_PROTOCOL_COLLECT_APPL call function 'ARCHIVE_PROTOCOL_COLLECT_APPL' exporting I_OBJECT = -IBLNR I_MSGTYPE = '01' I_TEXT = TEXT-001.

PROGRESS_INDICATOR_APPL call function 'PROGRESS_INDICATOR_APPL' exporting I_TEXT = TEXT-002 I_MSGV1 = G_PROCESSED I_PROCESSED = G_PROCESSED I_OUTPUT_IMMEDIATELY = 'X'.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting ARCHIVE_HANDLE = G_HANDLE.

ARCHIVE_PROTOCOL_WRITE_APPL call function 'ARCHIVE_PROTOCOL_WRITE_APPL'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting ARCHIVE_HANDLE = G_HANDLE.

ARCHIVE_GIVE_STATISTICS call function 'ARCHIVE_GIVE_STATISTICS' exporting ARCHIVE_HANDLE = G_HANDLE tables TABLE = GT_STATISTICS.



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