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
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
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: 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
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
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 .
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.