SAP Reports / Programs | Logistics - General | Batches(LO-BM) SAP LO

CHVW_DEL SAP ABAP Report - Deletion of Archived Batch Where-Used Records in the Database







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


Text pool values


Deletion of Archived Batch Where-Used Records from the Database
Selection Text: P_DELPRD = D .
Selection Text: P_DELTST = D .
Title: Deletion of Archived Batch Where-Used Records in the Database
Text Symbol: 003 = &1 (&2 of &3) of batch usages processed


INCLUDES used within this REPORT CHVW_DEL

INCLUDE ARCH_DELETE_PRG_STANDARD1.


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_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = object test_mode = p_deltst IMPORTING archive_handle = handle.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING OBJECT = OBJECT IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = COMMCNT.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = HANDLE IMPORTING OBJECT_NUMBER_IN_FILE = OBJ_COUNT.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = handle EXCEPTIONS end_of_file = 01.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = handle record_structure = 'CHVW' all_records_of_object = 'X' TABLES table = ARC_CHVW.

ARCHIVE_DELETE_TABLE CALL FUNCTION 'ARCHIVE_DELETE_TABLE' EXPORTING iv_tabname = 'CHVW' it_records = arc_chvw iv_deltst = p_deltst IV_ON_COMMIT = 'X' iv_handle = handle.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = handle record_structure = 'CHVW_INC' all_records_of_object = 'X' TABLES table = ARC_CHVW_INC.

ARCHIVE_DELETE_TABLE CALL FUNCTION 'ARCHIVE_DELETE_TABLE' EXPORTING iv_tabname = 'CHVW_INC' it_records = arc_chvw_INC iv_deltst = p_deltst IV_ON_COMMIT = 'X' iv_handle = handle.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = handle record_structure = 'CHVW_INC_PUR' all_records_of_object = 'X' TABLES table = ARC_CHVW_INC_PUR.

ARCHIVE_DELETE_TABLE CALL FUNCTION 'ARCHIVE_DELETE_TABLE' EXPORTING iv_tabname = 'CHVW_INC_PUR' it_records = arc_chvw_inc_pur iv_deltst = p_deltst IV_ON_COMMIT = ' ' iv_handle = handle.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = handle record_structure = 'ALE_BATCHES_RECP' all_records_of_object = 'X' TABLES table = ARC_ale_batches_recp.

ARCHIVE_DELETE_TABLE CALL FUNCTION 'ARCHIVE_DELETE_TABLE' EXPORTING iv_tabname = 'ALE_BATCHES_RECP' it_records = arc_ale_batches_recp iv_deltst = p_deltst IV_ON_COMMIT = 'X' iv_handle = handle.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = handle record_structure = 'ALE_BATCHES_SENT' all_records_of_object = 'X' TABLES table = ARC_ale_batches_sent.

ARCHIVE_DELETE_TABLE CALL FUNCTION 'ARCHIVE_DELETE_TABLE' EXPORTING iv_tabname = 'ALE_BATCHES_SENT' it_records = arc_ale_batches_sent iv_deltst = p_deltst IV_ON_COMMIT = 'X' iv_handle = handle.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = handle TABLES table = lt_statistic.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = '&1 (&2 von &3) der Chargenverwendungen bearbeitet'(003) i_processed = OBJCNT i_total = OBJ_COUNT.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = '&1 (&2 von &3) der Chargenverwendungen bearbeitet'(003) i_processed = OBJCNT i_total = OBJ_COUNT i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle statistics_only_per_file = 'X'.

ARCHIVE_CLOSE_FILE





CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE.



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