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