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

Reg : Function Module or BAPI for BOM explosion

Former Member
0 Likes
7,146

I am try to display a report for CS11... for this am using following function module.. 1 CS_BOM_EXPL_MAT_V2  or  2 . CSAP_MAT_BOM_READ

1 CS_BOM_EXPL_MAT_V2 :  its produce all material in own format..   but i need a CS11 Format.. row does not changed..

2 . CSAP_MAT_BOM_READ : its produce partial material in CS11 format.. remaining cant get...

if any function module or BAPI available for get the all level of bom explosion...

Second Question :  The Bom level stored any table .... if its yes.. kindly give table and field name?

3 REPLIES 3
Read only

Former Member
0 Likes
3,160

Hi Subramani,

Please check below code and FM also.

call function 'CS_BOM_EXPL_MAT_V2'

    exporting

  •   FTREL                       = ' '
  •   ALTVO                       = ' '
  •   AUFSW                       = ' '
  •   AUMGB                       = ' '
  •   AUMNG                       = 0

      auskz                       = 'X'

  •   AMIND                       = ' '
  •   BAGRP                       = ' '
  •   BEIKZ                       = ' '
  •   BESSL                       = ' '
  •   BGIXO                       = ' '

    brems                       = 'X'    capid                       = '    '

  •   CHLST                       = ' '
  •   COSPR                       = ' '
  •   CUOBJ                       = 000000000000000
  •   CUOVS                       = 0
  •   CUOLS                       = ' '

      datuv                       = p_datuv

  •   DELNL                       = ' '
  •   DRLDT                       = ' '
  •   EHNDL                       = ' '
  •   EMENG                       = 0
  •   ERSKZ                       = ' '
  •   ERSSL                       = ' '
  •   FBSTP                       = ' '
  •   KNFBA                       = ' '
  •   KSBVO                       = ' '
  •   MBWLS                       = ' '
  •   MKTLS                       = 'X'
  •   MDMPS                       = ' '

      mehrs                       = 'X'

  •   MKMAT                       = ' '
  •   MMAPS                       = ' '
  •   SALWW                       = ' '
  •   SPLWW                       = ' '
  •   MMORY                       = ' '

      mtnrv                       = p_mkal_dta-matnr

  •   NLINK                       = ' '
  •   POSTP                       = ' '
  •   RNDKZ                       = ' '
  •   RVREL                       = ' '
  •   SANFR                       = ' '
  •   SANIN                       = ' '
  •   SANKA                       = ' '
  •   SANKO                       = ' '
  •   SANVS                       = ' '
  •   SCHGT                       = ' '
  •   STKKZ                       = ' '

     stlal                       = p_mkal_dta-stlal     stlan                       = p_mkal_dta-stlan

  •   STPST                       = 0
  •   SVWVO                       = 'X'

      werks                       = p_mkal_dta-werks

  •   NORVL                       = ' '
  •   MDNOT                       = ' '
  •   PANOT                       = ' '
  •   QVERW                       = ' '
  •   VERID                       = ' '
  •   VRSVO                       = 'X'

   importing

     topmat                      = p_topmat

     dstst                       = l_dstst

    tables

      stb                         = p_i_stpox

      matcat                      = p_i_cscmat

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

         .

U can check these Fm also.

1. CS_BOM_EXPLOSION

2. CS_BOM_EXPLOSION_MAT

Thanks

Tarak

Read only

Former Member
0 Likes
3,160

Hi Subramani, please check STKO(header) and STPO(item) tables.

Read only

guilherme_frisoni
Contributor
0 Likes
3,160

Hi,

check program RCS11001.

Fill parameters you have and debug it to see what FM is called and which parameters are used.

Regards,

Guilherme Frisoni