SAP Reports / Programs

MMREO020 SAP ABAP Report - Archive Batch, Consignment, and Special Stock Records







MMREO020 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program to archive and delete the following stock records: Batch stock records Consignment stock records Other special stock records You have the following options: Archiving special stocks for existing materials Archiving special stocks for a material number that has already been deleted You enter your selection criteria for one of these options...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 MMREO020 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 MMREO020. "Basic submit
SUBMIT MMREO020 AND RETURN. "Return to original report after report execution complete
SUBMIT MMREO020 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: WERKS2 = D Plant
Selection Text: WERKS = D Plant
Selection Text: T_REST = Check expiration date
Selection Text: TEST_ON = Test mode
Selection Text: S_BATCH = Delete only stock recs w/o stk
Selection Text: SP_STOCK = Special stocks
Selection Text: P_TEXT = Comment
Selection Text: MILL_RTI = D Retention time for orig. batch
Selection Text: MATNR2 = D Material
Selection Text: MATNR = D Material
Selection Text: D_CONSI = Ignore consignment del. flag
Selection Text: D_BATCH = Ignore batch deletion flag
Selection Text: CONSIGN = Consignment
Selection Text: CHARG = Batch Number
Selection Text: BATCHES = Batches
Title: Archive Batch, Consignment, and Special Stock Records
Text Symbol: 521 = Delete only stock records without stock
Text Symbol: 519 = Restrictions
Text Symbol: 518 = Special stocks of a deleted material
Text Symbol: 517 = Technical settings
Text Symbol: 516 = Special stocks of existing materials
Text Symbol: 515 = - Name of the archiving object...........:
Text Symbol: 514 = - Archiving key..........................:
Text Symbol: 513 = - Archive management information.........:
Text Symbol: 512 = - System.................................:
Text Symbol: 511 = - Release................................:
Text Symbol: 510 = - Date of the archiving session..........:
Text Symbol: 509 = Archive data:
Text Symbol: 501 = Unused
Text Symbol: 500 = Unused
Text Symbol: 027 = Retention period orig. batch
Text Symbol: 026 = Check expiration date
Text Symbol: 025 = Batch Number
Text Symbol: 024 = Other special stocks
Text Symbol: 023 = Consider consignment recs w/o deletion flag
Text Symbol: 022 = Consignment
Text Symbol: 021 = Consider batch records without deletion flag
Text Symbol: 020 = Batches





INCLUDES used within this REPORT MMREO020

INCLUDE MMREO028.
INCLUDE MMREO02T.
INCLUDE MMREO029N.


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:

No SAP FUNCTION MODULES are executed within this report code!



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