SAP Reports / Programs | Logistics - General | Logistics Basic Data | Material Master(LO-MD-MM) SAP LO

MMREO021 SAP ABAP INCLUDE - Archive and Delete Batches







MMREO021 is a standard ABAP INCLUDE 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 MMREO021 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 MMREO021. "Basic submit
SUBMIT MMREO021 AND RETURN. "Return to original report after report execution complete
SUBMIT MMREO021 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Archive and Delete Batches


INCLUDES used within this REPORT MMREO021

No INCLUDES are used within this REPORT code!


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:

CO_WIPB_TCUWIPB_READ call function 'CO_WIPB_TCUWIPB_READ' importing e_wipbatch_active = gv_wipbatch_active exceptions not_found = 1.

MCHB_EXTEND call function 'MCHB_EXTEND' exporting kzrfb_ges = kzrfb_ges_mchb "note 784356 tables mchb_tab = tab_mchb.

MG_BATCH_CHECK_GLOBAL_MCHA call function 'MG_BATCH_CHECK_GLOBAL_MCHA' tables del_mcha = del_tab_mcha.

MG_BATCH_CHECK_GLOBAL_MCH1 call function 'MG_BATCH_CHECK_GLOBAL_MCH1' tables del_mch1 = del_tab_mch1.

DB_COMMIT call function 'DB_COMMIT'.

CO_WIPB_TCUWIPB_READ call function 'CO_WIPB_TCUWIPB_READ' importing e_wipbatch_active = gv_wipbatch_active exceptions not_found = 1.

MG_BATCH_CHECK_GLOBAL_MCHA call function 'MG_BATCH_CHECK_GLOBAL_MCHA' tables del_mcha = del_tab_mcha.

MG_BATCH_CHECK_GLOBAL_MCH1 call function 'MG_BATCH_CHECK_GLOBAL_MCH1' tables del_mch1 = del_tab_mch1.

DB_COMMIT call function 'DB_COMMIT'.

CO_WIPB_TCUWIPB_READ call function 'CO_WIPB_TCUWIPB_READ' importing e_wipbatch_active = gv_wipbatch_active exceptions not_found = 1.

OUTBOUND_CALL_00004711_E call function 'OUTBOUND_CALL_00004711_E' exporting i_method = lc_method_delete it_batches = gt_del_apo_batches.

CO_WIPB_TCUWIPB_READ call function 'CO_WIPB_TCUWIPB_READ' importing e_wipbatch_active = gv_wipbatch_active exceptions not_found = 1.

OUTBOUND_CALL_00004711_E call function 'OUTBOUND_CALL_00004711_E' exporting i_method = lc_method_delete it_batches = gt_del_apo_batches.

CHANGEDOCUMENT_DELETE * CALL FUNCTION 'CHANGEDOCUMENT_DELETE' * EXPORTING * OBJECTCLASS = OBJECT2 * OBJECTID = OBJECT_ID * EXCEPTIONS * NO_AUTHORITY = 2 * NO_CHANGES_FOUND = 4.

CHANGEDOCUMENT_DELETE * CALL FUNCTION 'CHANGEDOCUMENT_DELETE' * EXPORTING * OBJECTCLASS = OBJECT2 * OBJECTID = OBJECT_ID * EXCEPTIONS * NO_AUTHORITY = 2 * NO_CHANGES_FOUND = 4.

VB_BATCH_DEFINITION call function 'VB_BATCH_DEFINITION' importing kzdch = batch_level kzdzv = batch_proc.

TCURM_SINGLE_READ call function 'TCURM_SINGLE_READ' importing wtcurm = tcurm exceptions others = 4.



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