Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BOM Material

former_member534411
Participant
0 Kudos

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

5 REPLIES 5

venkata_ramisetti
Active Contributor
0 Kudos

Hi,

can you check FMs DMU_DOC_BOM_EXPLODE &,DMU_MAT_BOM_EXPLODE & CIF_BOM_EXPLODE

Hope this help you.

Thanks,

Ramakrishna

Former Member
0 Kudos

Hi,

Try with this BAPI FM

CSAP_MAT_BOM_ITEM_SELECT

Please pass the BOM header details to the above FM

Hope it works..

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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