‎2005 Nov 17 12:04 PM
Hello,
Is there any function module to find out number of items for BOM - I have MAST table data in the program.
Would appreciate if anyone let me know answer.
Regards, Suresh
‎2005 Nov 17 12:11 PM
Hi,
can you check FMs DMU_DOC_BOM_EXPLODE &,DMU_MAT_BOM_EXPLODE & CIF_BOM_EXPLODE
Hope this help you.
Thanks,
Ramakrishna
‎2005 Nov 17 12:16 PM
Hi,
Try with this BAPI FM
CSAP_MAT_BOM_ITEM_SELECT
Please pass the BOM header details to the above FM
Hope it works..
‎2005 Nov 17 3:26 PM
Hi Suresh,
Function module can be used as follows -
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
auskz = ' '
capid = 'PP01'
datuv = sy-datum
emeng = '1.000'
stlan = '1'
mtnrv = matnr
mehrs = 'X'
mmory = '1'
stpst = '0'
werks = werks
IMPORTING
topmat = selpool
dstst = dstst_flg
TABLES
stb = i_stb
matcat = i_matcat
EXCEPTIONS
material_not_found = 4
no_plant_data = 8
no_bom_found = 12
no_suitable_bom_found = 16.
Tables i_stb and i_matcat should be of STPOX
CSCMAT types respectively.
Hope this helps.
Warm Regards.
Pras Durafe
‎2005 Nov 17 3:27 PM
Hi Suresh,
You can also use CSAP_MAT_BOM_READ function module.
You need to pass value for Material and BOM usage.
This will return two tables T_STPO and T_STKO.
If you need any example, please let me know.
Hope this will help.
Also try CS_BOM_EXPLOSION.
Thanks and Warm Regards.
Pras Durafe
‎2005 Nov 17 4:16 PM
Do you just want the <u>number</u> of items of a BOM or the items of the BOM? Also, do you want the exploded BOM items or just the ones at the highest level? Also, you need to make note of BOM alternates as well.
Others have already gave you some inputs, but also look at these other function modules, GET_MAST, GET_STKO, GET_STPO.
Srinivas