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

CSH_BOM_COMPARISON SAP ABAP Report - Comparison of BOM Explosion







CSH_BOM_COMPARISON is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to compare the explosion of a material, project or order BOM (bill of material) using the ABAP logic and the stored procedures in SAP HANA...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 CSH_BOM_COMPARISON 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 CSH_BOM_COMPARISON. "Basic submit
SUBMIT CSH_BOM_COMPARISON AND RETURN. "Return to original report after report execution complete
SUBMIT CSH_BOM_COMPARISON 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_CAPID = BOM Application
Selection Text: P_DATE = Valid From
Selection Text: P_EMENG = Required Quantity
Selection Text: P_MATNR = Material
Selection Text: P_PSPNR = WBS Element
Selection Text: P_SCRAP = Incl. Scrap in qty calc.
Selection Text: P_STLAL = Alternative BOM
Selection Text: P_STPST = Enter Level for Explosion
Selection Text: P_VBELN = Sales Order
Selection Text: P_VBPOS = Sales Order Item
Selection Text: P_VIEW = Only Mismatched rec.
Selection Text: P_WERKS = Plant
Title: Comparison of BOM Explosion
Text Symbol: 036 = Level
Text Symbol: 037 = Material Number
Text Symbol: 038 = Plant
Text Symbol: 039 = BOM Component
Text Symbol: 040 = BOM category
Text Symbol: 041 = Bill of material
Text Symbol: 042 = BOM item node number
Text Symbol: 043 = Internal counter
Text Symbol: 044 = Inherited node number of BOM item
Text Symbol: 045 = Alternative BOM
Text Symbol: 046 = BOM Usage
Text Symbol: 047 = Missing in Database
Text Symbol: 048 = Calc. Component qty in Base UoM
Text Symbol: 049 = Calc. Component qty in Component UoM
Text Symbol: 050 = Numerator for Conversion to Base UoM
Text Symbol: 051 = Denominator for conversion to base UoM
Text Symbol: 052 = Special procurement type
Text Symbol: 053 = Revision Level
Text Symbol: 054 = Phantom item indicator
Text Symbol: 055 = BOM Number (Next Level)
Text Symbol: 056 = BOM Usage (Next Level)
Text Symbol: 057 = BOM Alternative (Next Level)
Text Symbol: 058 = Mismatched fields
Text Symbol: 001 = Number of Records in ABAP
Text Symbol: 002 = Number of Records in HANA





Text Symbol: 003 = Missing Records
Text Symbol: 004 = STUFE
Text Symbol: 005 = MATNR
Text Symbol: 006 = WERKS
Text Symbol: 007 = IDNRK
Text Symbol: 008 = STLTY
Text Symbol: 009 = STLNR
Text Symbol: 010 = STLKN
Text Symbol: 011 = STPOZ
Text Symbol: 012 = STVKN
Text Symbol: 013 = STLAL
Text Symbol: 014 = STLAN
Text Symbol: 015 = Missing in
Text Symbol: 016 = MNGLG-ABAP
Text Symbol: 017 = MNGLG-HANA
Text Symbol: 018 = MNGKO-ABAP
Text Symbol: 019 = MNGKO-HANA
Text Symbol: 020 = UMREZ-ABAP
Text Symbol: 021 = UMREZ-HANA
Text Symbol: 022 = UMREN-ABAP
Text Symbol: 023 = UMREN-HANA
Text Symbol: 024 = SOBSL-ABAP
Text Symbol: 025 = SOBSL-HANA
Text Symbol: 026 = REVLV-ABAP
Text Symbol: 027 = REVLV-HANA
Text Symbol: 028 = DUMPS-ABAP
Text Symbol: 029 = DUMPS-HANA
Text Symbol: 030 = XTLNR-ABAP
Text Symbol: 031 = XTLNR-HANA
Text Symbol: 032 = XTLAN-ABAP
Text Symbol: 033 = XTLAN-HANA
Text Symbol: 034 = XTLAL-ABAP
Text Symbol: 035 = XTLAL-HANA


INCLUDES used within this REPORT CSH_BOM_COMPARISON

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:

SUSR_USER_AUTH_FOR_OBJ_GET CALL FUNCTION 'SUSR_USER_AUTH_FOR_OBJ_GET' EXPORTING "new_buffering = 3 mandant = sy-mandt user_name = sy-uname sel_object = 'C_STUE_BER' TABLES values = lt_c_stue_ber1 EXCEPTIONS user_name_not_exist = 1 not_authorized = 2 internal_error = 3 OTHERS = 4.

SUSR_USER_AUTH_FOR_OBJ_GET





CALL FUNCTION 'SUSR_USER_AUTH_FOR_OBJ_GET' EXPORTING "new_buffering = 3 mandant = sy-mandt user_name = sy-uname sel_object = 'C_STUE_WRK' TABLES values = lt_c_stue_wrk1 EXCEPTIONS user_name_not_exist = 1 not_authorized = 2 internal_error = 3 OTHERS = 4.

CS_BOM_EXPL_PSP_V1 CALL FUNCTION 'CS_BOM_EXPL_PSP_V1' EXPORTING altvo = ' ' amind = ' ' aufsw = ' ' aumgb = ' ' aumng = 0 auskz = p_scrap bagrp = ' ' beikz = ' ' bessl = ' ' bgixo = ' ' brems = ' ' capid = p_capid chlst = ' ' cospr = ' ' cuobj = 000000000000000 cuovs = '' """ cuols = ' ' datuv = p_date delnl = ' ' drldt = ' ' drstp = ' ' ehndl = '' """ emeng = p_emeng erskz = ' ' erssl = ' ' fbstp = ' ' ftrel = ' ' knfba = ' ' ksbvo = ' ' mbwls = ' ' mdmps = ' ' mdnot = ' ' mehrs = 'X' mkmat = ' ' mktls = 'X' mmaps = ' ' mmory = '1' mtnrv = p_matnr nestp = ' ' nlink = ' ' npstp = ' ' panot = ' ' pbstp = ' ' postp = ' ' pspnr = p_pspnr qverw = ' ' rndkz = ' ' rvrel = ' ' sanfr = ' ' sanin = ' ' sanka = ' ' sanko = ' ' sanvs = ' ' schgt = ' ' salww = ' ' splww = ' ' stkkz = ' ' stlal = p_stlal stlan = ' ' stpst = p_stpst svwvo = 'X' verid = ' ' vrsvo = 'X' werks = p_werks norvl = ' ' * IMPORTING * TOPMAT = '' * DSTST = '' TABLES stb = lt_item_tab " MATCAT = EXCEPTIONS alt_not_found = 1 call_invalid = 2 material_not_found = 3 missing_authorization = 4 no_bom_found = 5 no_plant_data = 6 no_suitable_bom_found = 7 conversion_error = 8 OTHERS = 9 .

CS_BOM_EXPL_KND_V1 CALL FUNCTION 'CS_BOM_EXPL_KND_V1' EXPORTING ftrel = ' ' alekz = ' ' altvo = ' ' aufsw = ' ' aumgb = ' ' aumng = 0 auskz = p_scrap amind = ' ' bagrp = ' ' beikz = ' ' bessl = ' ' bgixo = ' ' brems = ' ' capid = p_capid chlst = ' ' cospr = ' ' cuobj = 000000000000000 cuovs = '' cuols = ' ' datuv = p_date delnl = ' ' drldt = ' ' ehndl = ' ' emeng = p_emeng erskz = ' ' erssl = ' ' fbstp = ' ' knfba = ' ' ksbvo = ' ' mbwls = ' ' mktls = 'X' mdmps = ' ' mehrs = 'X' mkmat = ' ' mmaps = ' ' salww = ' ' splww = ' ' mmory = '1' mtnrv = p_matnr nlink = ' ' postp = ' ' rndkz = ' ' rvrel = ' ' sanfr = ' ' sanin = ' ' sanka = ' ' sanko = ' ' sanvs = ' ' schgt = ' ' stkkz = ' ' stlal = p_stlal stlan = ' ' stpst = p_stpst svwvo = 'X' werks = p_werks norvl = ' ' mdnot = ' ' panot = ' ' qverw = ' ' vbeln = p_vbeln vbpos = p_vbpos verid = ' ' vrsvo = 'X' * IMPORTING * TOPMAT = * DSTST = TABLES stb = lt_item_tab * MATCAT = EXCEPTIONS alt_not_found = 1 call_invalid = 2 material_not_found = 3 missing_authorization = 4 no_bom_found = 5 no_plant_data = 6 no_suitable_bom_found = 7 conversion_error = 8 OTHERS = 9 .

CS_BOM_EXPL_MAT_V2 CALL FUNCTION 'CS_BOM_EXPL_MAT_V2' EXPORTING ftrel = '' alekz = ' ' altvo = ' ' aufsw = '' aumgb = '' aumng = 0 auskz = p_scrap amind = '' bagrp = ' ' beikz = ' ' bessl = ' ' bgixo = '' brems = ' ' capid = p_capid chlst = '' cospr = '' cuobj = 000000000000000 cuovs = ' ' cuols = '' datuv = p_date delnl = ' ' drldt = ' ' ehndl = '' emeng = p_emeng erskz = ' ' erssl = ' ' fbstp = ' ' knfba = ' ' ksbvo = ' ' mbwls = ' ' mktls = 'X' mdmps = '' mehrs = 'X' mkmat = ' ' mmaps = ' ' salww = ' ' splww = ' ' mmory = '1' mtnrv = p_matnr nlink = ' ' postp = ' ' rndkz = '' rvrel = ' ' sanfr = '' sanin = ' ' sanka = ' ' sanko = ' ' sanvs = ' ' schgt = ' ' stkkz = ' ' stlal = p_stlal stlan = ' ' stpst = p_stpst svwvo = 'X' werks = p_werks norvl = ' ' mdnot = ' ' panot = ' ' qverw = '' verid = ' ' vrsvo = 'X' * IMPORTING * TOPMAT = * DSTST = TABLES stb = lt_item_tab * MATCAT = EXCEPTIONS alt_not_found = 1 call_invalid = 2 material_not_found = 3 missing_authorization = 4 no_bom_found = 5 no_plant_data = 6 no_suitable_bom_found = 7 conversion_error = 8 OTHERS = 9.



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