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

RCSARCH1 SAP ABAP Report - Archiving Program for BOMs







RCSARCH1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Reorganization of BOMs With this program, you archive 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 RCSARCH1 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 RCSARCH1. "Basic submit
SUBMIT RCSARCH1 AND RETURN. "Return to original report after report execution complete
SUBMIT RCSARCH1 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: P_KDST = D Archive Sales Order BOMs
Selection Text: P_EQST = D Archive Equipment BOMs
Selection Text: P_DOST = D Archive Document Structure
Selection Text: P_DATUV = D Selection by Date Validity
Selection Text: TEST___ = D Archive with Direct Deletion
Selection Text: TEST__X = D Archive W/out Direct Deletion
Selection Text: TEST_X_ = D Log Only, No Archive
Selection Text: SO_WERKS = D Plant
Selection Text: SO_STLNR = D Bill of Material
Selection Text: SO_STLAN = D BOM Usage
Selection Text: SO_STLAL = D Alternative BOM
Selection Text: SO_DATUV = Record Invalid Before
Selection Text: P_TPST = D Archive Functional Loc. BOM
Selection Text: P_STST = D Archive Standard BOM
Selection Text: P_PRST = D WBS BOMs
Selection Text: P_MAST = D Archive Material BOMs
Selection Text: P_LOEKZ = D Selection by Del. Indicator
Title: Archiving Program for BOMs
Text Symbol: 018 = DocPart
Text Symbol: 017 = DocVers
Text Symbol: 016 = Document Number
Text Symbol: 015 = Doc.Type
Text Symbol: 013 = BOM St
Text Symbol: 010 = Base Quantity
Text Symbol: 009 = BUn
Text Symbol: 008 = Changed On
Text Symbol: 046 = Comp. var.
Text Symbol: 047 = InherNode
Text Symbol: 048 = Installation Point
Text Symbol: 049 = Follow-Up Material
Text Symbol: 007 = Valid From
Text Symbol: 006 = Alt. BOM
Text Symbol: 005 = BOM No.
Text Symbol: 004 = BOM Cat
Text Symbol: 002 = BOM Categories for Archiving
Text Symbol: 032 = Change No.
Text Symbol: 030 = Config.
Text Symbol: 029 = VariantInd





Text Symbol: 028 = Alt ID
Text Symbol: 083 = Sales order-BOM Link
Text Symbol: 082 = Equipment-BOM Link
Text Symbol: 081 = Document-BOM Link
Text Symbol: 080 = BOM Header
Text Symbol: 072 = Description
Text Symbol: 071 = Entries
Text Symbol: 070 = Database Table
Text Symbol: 051 = Delet.Ind.
Text Symbol: 050 = WBS Element
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: 036 = ItmCat
Text Symbol: 037 = Item No.
Text Symbol: 038 = UoM
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: 027 = BOM Group
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 database entries have been archived :
Text Symbol: 501 = List of the archived BOM objects
Text Symbol: 502 = The following BOM database entries have not been deleted because their archive status is outdated :
Text Symbol: 503 = Additional restrictions to the archived BOMs
Text Symbol: 504 = Control Parameters
Text Symbol: 505 = Selection Type
Text Symbol: 508 = BOM objects of the archiving session
Text Symbol: 510 = Select All
Text Symbol: 511 = Choose None
Text Symbol: 512 = A Month
Text Symbol: 513 = A Quarter
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: 101 = Selected Alternative BOMs
Text Symbol: 102 = ------------------------------------------------------------------------
Text Symbol: 103 = TEST RUN : No archive file has been created!
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: 514 = A Year
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: 088 = Choice of Items (BOMs)
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


INCLUDES used within this REPORT RCSARCH1

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:

CSAR_SEL_BY_LOEKZ CALL FUNCTION 'CSAR_SEL_BY_LOEKZ' EXPORTING LOEKZ = P_LOEKZ SEL_MAST = P_MAST SEL_DOST = P_DOST SEL_EQST = P_EQST SEL_TPST = P_TPST SEL_KDST = P_KDST SEL_STST = P_STST SEL_PRST = P_PRST TABLES IT_MAST = ITAB_MAST IT_DOST = ITAB_DOST IT_EQST = ITAB_EQST IT_TPST = ITAB_TPST IT_KDST = ITAB_KDST IT_STST = ITAB_STST IT_PRST = ITAB_PRST IT_STZU = ITAB_STZU IT_STKO = ITAB_STKO IT_STAS = ITAB_STAS IT_STPO = ITAB_STPO IT_STPU = ITAB_STPU IT_STPN = ITAB_STPN SO_STLNR = SO_STLNR SO_WERKS = SO_WERKS SO_STLAN = SO_STLAN SO_STLAL = SO_STLAL EXCEPTIONS LOEKZ_NOT_SET = 0 NO_STLTY = 0 OTHERS = 0 .

CSAR_SEL_BY_DATUV CALL FUNCTION 'CSAR_SEL_BY_DATUV' EXPORTING LOEKZ = P_LOEDT SEL_MAST = P_MAST SEL_DOST = P_DOST SEL_EQST = P_EQST SEL_TPST = P_TPST SEL_KDST = P_KDST SEL_STST = P_STST SEL_PRST = P_PRST TABLES IT_MAST = ITAB_MAST IT_DOST = ITAB_DOST IT_EQST = ITAB_EQST IT_TPST = ITAB_TPST IT_KDST = ITAB_KDST IT_STST = ITAB_STST IT_PRST = ITAB_PRST IT_STZU = ITAB_STZU REF_STKO = REF_STKO IT_STAS = ITAB_STAS IT_STPO = ITAB_STPO IT_STPU = ITAB_STPU IT_STPN = ITAB_STPN SO_DATUV = SO_DATUV SO_STLNR = SO_STLNR SO_WERKS = SO_WERKS SO_STLAN = SO_STLAN SO_STLAL = SO_STLAL EXCEPTIONS DATUV_IS_INITIAL = 0 NO_STLTY = 0 OTHERS = 0 .

CSAR_ARCHIVE_DATA CALL FUNCTION 'CSAR_ARCHIVE_DATA' EXPORTING TESTRUN = TESTRUN TESTARCH = TESTARCH IMPORTING COUNT_OBJ = COUNT_OBJ COUNT_MAST = COUNT_MAST COUNT_DOST = COUNT_DOST COUNT_EQST = COUNT_EQST COUNT_TPST = COUNT_TPST COUNT_KDST = COUNT_KDST COUNT_STST = COUNT_STST COUNT_PRST = COUNT_PRST COUNT_STZU = COUNT_STZU COUNT_STKO = COUNT_STKO COUNT_STAS = COUNT_STAS COUNT_STPO = COUNT_STPO COUNT_STPU = COUNT_STPU COUNT_STPN = COUNT_STPN COUNT_CUOB = COUNT_CUOB "CUOB TABLES IT_MAST = ITAB_MAST IT_DOST = ITAB_DOST IT_EQST = ITAB_EQST IT_TPST = ITAB_TPST IT_KDST = ITAB_KDST IT_STST = ITAB_STST IT_PRST = ITAB_PRST IT_STZU = ITAB_STZU REF_STKO = REF_STKO IT_STAS = ITAB_STAS IT_STPO = ITAB_STPO IT_STPU = ITAB_STPU IT_STPN = ITAB_STPN IT_CUOB = ITAB_CUOB "CUOB .



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