SAP Reports / Programs | Logistics - General | Logistics Basic Data | Bills of Material(LO-MD-BOM) SAP LO

RCSARCH2 SAP ABAP Report - Report for archiving BOMs, deletion program







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


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 RCSARCH2. "Basic submit
SUBMIT RCSARCH2 AND RETURN. "Return to original report after report execution complete
SUBMIT RCSARCH2 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: 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





Text Symbol: 615 = Belongs to a BOM object that has not been deleted - not deleted because at least one entry is obsolete
Text Symbol: 700 = No Objects in the List
Text Symbol: 900 = Item - Object Dependencies
Text Symbol: 071 = Entries
Text Symbol: 004 = BOM Cat
Text Symbol: 005 = BOM No.
Text Symbol: 006 = Alt. BOM
Text Symbol: 007 = Valid From
Text Symbol: 008 = Changed On
Text Symbol: 009 = BUn
Text Symbol: 010 = Base Quantity
Text Symbol: 013 = BOM St.
Text Symbol: 015 = Doc.Type
Text Symbol: 016 = Document Number
Text Symbol: 017 = DocVers
Text Symbol: 018 = DocPart
Text Symbol: 019 = Equipment Number
Text Symbol: 020 = Plant
Text Symbol: 021 = BOM Usg.
Text Symbol: 022 = SOrd.
Text Symbol: 023 = SalesOrdIt
Text Symbol: 024 = Material Number
Text Symbol: 025 = Standard Object
Text Symbol: 026 = Functional Location
Text Symbol: 027 = BOM Group
Text Symbol: 028 = Alt ID
Text Symbol: 029 = VariantInd
Text Symbol: 030 = Config.
Text Symbol: 032 = Change No.
Text Symbol: 036 = ItmCat
Text Symbol: 037 = Item No.
Text Symbol: 038 = UM
Text Symbol: 040 = Quantity
Text Symbol: 041 = SItemNo
Text Symbol: 042 = Subitem Qty
Text Symbol: 043 = Del. Flag
Text Symbol: 044 = Mat. Var.
Text Symbol: 045 = Item Group
Text Symbol: 046 = Comp. Var.





Text Symbol: 047 = InherNode
Text Symbol: 048 = Installation Point
Text Symbol: 049 = Follow-Up Material
Text Symbol: 050 = WBS Element
Text Symbol: 051 = Delet.Ind.
Text Symbol: 070 = Database Table


INCLUDES used within this REPORT RCSARCH2

INCLUDE CSARFP01.


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 = '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



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