RCSARCH2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for BOM reorganisation deletion run This program enables you to delete the BOM data that you previously archived, from the database...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 RCSARCH2 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.
Selection Text: TESTLAUF = D Delete Program(Test Mode)
Title: Report for archiving BOMs, deletion program
Text Symbol: 072 = Description
Text Symbol: 080 = BOM Header
Text Symbol: 081 = Document-BOM Link
Text Symbol: 082 = Equipment-BOM Link
Text Symbol: 083 = Sales order-BOM Link
Text Symbol: 084 = Material-BOM Link
Text Symbol: 085 = Standard BOM Link
Text Symbol: 086 = Functional Location-BOM Link
Text Symbol: 087 = Permanent BOM Data
Text Symbol: 088 = Choice of Items (BOMs)
Text Symbol: 089 = BOM Items
Text Symbol: 090 = BOM Follow-Up Control
Text Symbol: 091 = BOM Subitem
Text Symbol: 096 = BOM Component
Text Symbol: 097 = BOM Node
Text Symbol: 099 = Project-BOM Link
Text Symbol: 100 = Test Run Overview
Text Symbol: 101 = Selected Alternative BOMs
Text Symbol: 102 = ------------------------------------------------------------------------
Text Symbol: 103 = TEST RUN: No data has been deleted
Text Symbol: 300 = No Files Were Deleted
Text Symbol: 400 = Test Run Overview
Text Symbol: 401 = Deleted BOM Database Entries
Text Symbol: 402 = BOM database entries not deleted due to an obsolete archive status
Text Symbol: 403 = Archive Contents Overview
Text Symbol: 404 = Obsolete Archive Status (These Entries Will Not Be Deleted in the Deletion Run)
Text Symbol: 405 = Current Archive Status (These Entries Will Be Deleted During Delete Phase)
Text Symbol: 500 = The following BOM database entries have been deleted :
Text Symbol: 501 = The following BOM database entries appear in the archive and would be deleted
Text Symbol: 502 = The following BOM database entries have not been deleted because their archive status is outdated :
Text Symbol: 503 = The following BOM database entries will not be deleted because their archive status is outdated :
Text Symbol: 508 = BOM objects of the archiving session
Text Symbol: 610 = This field is for assignment only - it will not be deleted from the system in the deletion run
Text Symbol: 611 = This field is for assignment - it can be deleted if a reference no longer exists
Text Symbol: 612 = Sel. for deletion - will be deleted provided that the current status is archived and no reference exists
Text Symbol: 614 = Belongs to a deleted BOM object - was deleted provided that a reference no longer exists
INCLUDE CSARFP01.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_DELETE call function 'ARCHIVE_OPEN_FOR_DELETE' exporting object = 'CS_BOM' test_mode = testlauf importing archive_handle = handle exceptions file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 others = 8.
ARCHIVE_GET_CUSTOMIZING_DATA call function 'ARCHIVE_GET_CUSTOMIZING_DATA' exporting object = 'CS_BOM' importing commit_count_for_delete_prg = commitcount exceptions object_not_found = 0 others = 0.
ARCHIVE_GET_NEXT_OBJECT call function 'ARCHIVE_GET_NEXT_OBJECT' exporting archive_handle = handle exceptions end_of_file = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 others = 6.
ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting archive_handle = handle importing record = arc_buffer-segment record_structure = arc_buffer-rname exceptions end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 others = 4.
WSTAR_T415B_BUFFER_ARCHIVE CALL FUNCTION 'WSTAR_T415B_BUFFER_ARCHIVE' "t415b EXPORTING "t415b IS_SEGMENT = arc_buffer-segment. "t415b
CSAR_DELETE_FOR_ARCHIVE call function 'CSAR_DELETE_FOR_ARCHIVE' exporting handle = handle testlauf = testlauf tables arch_mast = itab_mast arch_dost = itab_dost arch_eqst = itab_eqst arch_kdst = itab_kdst arch_stst = itab_stst arch_tpst = itab_tpst arch_prst = itab_prst arch_stko = ref_stko arch_stzu = itab_stzu arch_stas = itab_stas arch_stpo = itab_stpo arch_stpu = itab_stpu arch_stpn = itab_stpn arch_cuob = itab_cuob udel_mast = ud_mast udel_dost = ud_dost udel_eqst = ud_eqst udel_kdst = ud_kdst udel_stst = ud_stst udel_tpst = ud_tpst udel_prst = ud_prst udel_stko = ud_stko udel_stzu = ud_stzu udel_stas = ud_stas udel_stpo = ud_stpo udel_stpu = ud_stpu udel_cuob = ud_cuob udel_stpn = ud_stpn stat_tab = stat_tab.
WSTAR_T415B_APPEND_TABLES CALL FUNCTION 'WSTAR_T415B_APPEND_TABLES'. "t415B
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = handle tables table = stat_tab EXCEPTIONS INTERNAL_ERROR = 1.
ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = handle exceptions internal_error = 0 wrong_access_to_archive = 0 others = 0.
WSTAR_T415B_SET_REPORTING_TYPE CALL FUNCTION 'WSTAR_T415B_SET_REPORTING_TYPE' "T415B EXPORTING "T415B IV_OBJ_TYPE = 'U'. "T415B
WSTAR_T415B_SET_REPORTING_TYPE CALL FUNCTION 'WSTAR_T415B_SET_REPORTING_TYPE' "T415B EXPORTING "T415B IV_OBJ_TYPE = 'D'. "T415B
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 RCSARCH2 or its description.