Application Development and Automation 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: 
Read only

function module to display BOM for a given material

Former Member
0 Likes
2,320

Hi,

I want to findout the lower level items exists for a material.(BOM)

Is there any function module to get the bill of materials for the given material..

4 REPLIES 4
Read only

Former Member
0 Likes
893

check this...

CF_UT_BOM_DISPLAY

CO_MP_BOM_READ

BOM_HIERARCHY

Read only

Former Member
0 Likes
893

Hi Sumi

Yes, you can use FM 'CS_BOM_EXPL_MAT_V2'

eg :


  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      auskz                 = ' '
      capid                 = 'PP01'
      datuv                 = sy-datum
      emeng                 = '1.000'
      stlan                 = '1'
      stlal                 = mast-stlal
      mtnrv                 = matnr
      mehrs                 = 'X'
      mmory                 = '1'
      stpst                 = '0'
      werks                 = werks
    IMPORTING
      topmat                = selpool
      dstst                 = dstst_flg
    TABLES
      stb                   = stb
      matcat                = matcat
    EXCEPTIONS
      material_not_found    = 4
      no_plant_data         = 8
      no_bom_found          = 12
      no_suitable_bom_found = 16.

Hope this helps,

Erwan

Read only

Former Member
0 Likes
893

HI,

Use FM 'CS_BOM_EXPLOSION'

Regards,

kumar

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
893

Hi,

Here are some FM related to BOM:

CS_BOM_EXPLOSION General BOM explosion

CS_BOM_EXPLOSION_EQUI BOM explosion - initial screen: equipment

CS_BOM_EXPLOSION_MAT BOM explosion (old version); as of 3.0, use CS_BOM_E

CS_BOM_EXPL_EQU_V2 BOM explosion for equipment

CS_BOM_EXPL_KND_V1 BOM explosion for material

CS_BOM_EXPL_MAT_V2 BOM explosion for material

CS_BOM_EXPL_PSP_V1

CS_BOM_EXPL_TPL_V1 BOM explosion for functional location