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
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.
Title: Archive and Delete Batches
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
MMREO021 - Archive and Delete Batches MMREO020N - Batch stocks and special stocks: Write program MMREO020N - Batch stocks and special stocks: Write program MMREO020 - Archive Batch, Consignment, and Special Stock Records MMREO020 - Archive Batch, Consignment, and Special Stock Records MMREO01S - Select Materials Flagged for Deletion