SAP Reports / Programs

RVBDEACT SAP ABAP Report - Deactivation of batches that are no longer needed







RVBDEACT is a standard Executable ABAP Report 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 RVBDEACT 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 RVBDEACT. "Basic submit
SUBMIT RVBDEACT AND RETURN. "Return to original report after report execution complete
SUBMIT RVBDEACT 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: PA_TEST = Test Mode
Selection Text: P_LWEDT = Exclusion of Batches W/o GR
Selection Text: SO_MATNR = D .
Selection Text: SO_WERKS = D .
Title: Deactivation of batches that are no longer needed
Text Symbol: 001 = => deactivated in real mode
Text Symbol: 002 = => deactivated in test mode
Text Symbol: 003 = Error Updating Database
Text Symbol: 004 = Batches were deactivated in real mode
Text Symbol: 005 = Batches were deactivated in test mode
Text Symbol: 006 = Batch creation date is smaller than
Text Symbol: 007 = Material
Text Symbol: 008 = Batch
Text Symbol: 009 = Plant


INCLUDES used within this REPORT RVBDEACT

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:

VB_BATCH_DEFINITION CALL FUNCTION 'VB_BATCH_DEFINITION' IMPORTING kzdch = gv_kzdch EXCEPTIONS OTHERS = 0.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

ENQUEUE_EMMCHA CALL FUNCTION 'ENQUEUE_EMMCHA' EXPORTING matnr = ps_batch-matnr werks = ps_batch-werks charg = ps_batch-charg EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ENQUEUE_EMMCH1E CALL FUNCTION 'ENQUEUE_EMMCH1E' EXPORTING matnr = ps_batch-matnr charg = ps_batch-charg EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ENQUEUE_EMMCH1E CALL FUNCTION 'ENQUEUE_EMMCH1E' EXPORTING matnr = gc_mat_dummy charg = ps_batch-charg EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

OUTBOUND_CALL_00004711_E CALL FUNCTION 'OUTBOUND_CALL_00004711_E' EXPORTING i_method = lc_method_delete it_batches = lt_batches.

VB_CHANGE_BATCH CALL FUNCTION 'VB_CHANGE_BATCH' EXPORTING ymcha = ls_mcha yupdmcha = ls_updmcha no_cfc_calls = gc_x bypass_lock = gc_x EXCEPTIONS error_message = 99.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

DEQUEUE_ALL





CALL FUNCTION 'DEQUEUE_ALL'.



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