Multi-level BOM explosion using CS_BOM_EXPL_MAT_V2

Hi All,
I would like to know, if anyone has used the function module 'CS_BOM_EXPL_MAT_V2' to prepare a report to read multi-level BOM just like CS12. If anyone has, can you please let me know how we can read the individual materials in the BOM from this FM.
Hope my question is clear, await inputs.
Vivek

Hi vivek,
We use this code to restrict the BOM line item for particular movements. C if that can help u out.
CALL FUNCTION 'CS_BOM_EXPL_KND_V1'
    EXPORTING
      capid                       = ''
      datuv                       = sy-datum
      emeng                       = 1
     mehrs                       = 'X'
      mtnrv                       = i_mseg-matnr
      stlal                       = '1'
      stlan                       = '1'
      stpst                       = 0
      svwvo                       = 'X'
      werks                       = i_mseg-werks
      vbeln                       = aufk-kdauf
      vbpos                       = aufk-kdpos
        VERID                       = ' '
      vrsvo                       = 'X'
      IMPORTING
        TOPMAT                      =
        DSTST                       =
     TABLES
       stb                         = ZStb
        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
  IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  SORT zstb BY mtart.
  LOOP AT zstb.
    IF zstb-mtart = 'Material type ' OR zstb-mtart = 'Material type ' .
    ELSE.
      DELETE zstb .
    ENDIF.
  ENDLOOP.
  CLEAR: v_menge, v_matnr, v_bwart, vv_menge, vvv_menge, zstb.
  LOOP AT zstb.
    SELECT menge matnr bwart
    INTO   (v_menge,v_matnr,v_bwart)
    FROM   aufm
    WHERE  aufnr = i_mseg-aufnr
    AND    werks = i_mseg-werks
    AND    matnr = zstb-idnrk
    AND    ( bwart = '261' OR bwart = '262' ).
          and    meins = 'FT2'.
     LOOP AT zstb.
      SELECT SINGLE matnr INTO vv_matnr FROM mara  WHERE  matnr = v_matnr
                                   AND mtart = zstb-mtart.
      IF sy-subrc = 0.
        CASE v_bwart.
          WHEN '261' .
            vv_menge = vv_menge + v_menge.
          WHEN '262' .
            vvv_menge = vvv_menge + v_menge.
        ENDCASE.
      ENDIF.
         ENDLOOP.
    ENDSELECT.
    CLEAR vf_menge.
    vf_menge = vv_menge - vvv_menge.
    CLEAR vv_menge.
    CLEAR vvv_menge.
Regards,
Vishal

Similar Messages

  • Multi level BOM explosion

    Hi,
    For multilevel BOM explode I have to use the "Functional Module" CS_BOM_EXPL_MAT_V2. I checked it in system but I didnt understand which input parameters I need to give (Which are mandatory) as ther are lot of input fields available.
    Please suggest whether this Functional Module is fine OR there is any other way? also suggest about the input field data.

    Dear
    Function module CS_BOM_EXPL_MAT_V2 is used for BOM explosion for a given material. It belongs to function group CSS4 u2013 BOM explosions. This function module can explose multi-level BOM with a given validation date.
    You need to specify necessary input parameters to call this function module, such as CAPID u2013 App ID, DATUV u2013 Validation date, MEHRS u2013 Multi-level, MTNRV u2013 Material number, STLAL u2013 alternate, STLAN u2013 BOM usage.
    Some useful tables you can provide to your ABAPer and discuss the same .
    TABLES: MARA,                               "Master Data
            MAKT,                               "Matl Desc.
            MARC,                               "Plant Data for Matl.
            MAST,                               "Bom to material link
            STKO,                               "Bom Header
            STPO.                               "Bom Item
    Refer : Multi-level BOM explosion using CS_BOM_EXPL_MAT_V2
    Regards
    JH
    Edited by: Jiaul Haque on Jan 3, 2011 10:24 PM

  • Multi level BOM explosion in CS11/12/13 Cost of items are not displayed

    Hi,
      I want to display cost of the components in CS11 / CS12 / CS13 T.codes Std SAP will not display the cost of components. for this they have given note 177006 and asked to change some manual correction. In the post processing of the note they have asked put "your_display_profl" This is making me confusing I wanted know whether I want to create a new display pofile using CLVL t.code or can I make the correction as said by SAP "your_display_profl". Could some body guide me in this regard.
    Regards
    Ramana

    >
    Venkata Ramana wrote:
    > Hi,
    >
    >   I want to display cost of the components in CS11 / CS12 / CS13 T.codes Std SAP will not display the cost of components. for this they have given note 177006 and asked to change some manual correction. In the post processing of the note they have asked put "your_display_profl" This is making me confusing I wanted know whether I want to create a new display pofile using CLVL t.code or can I make the correction as said by SAP "your_display_profl". Could some body guide me in this regard.
    >
    > Regards
    >
    > Ramana
    Ramana,
    Which version of SAP you are using, if its below 4.6c, then
    You need to have custom Display and Print Profile defined through CLVL transaction and used in the modification proposed.
    If your version is 4.6c onwards then,
    If you want to use the variable list then you need to have the You need to have custom Display and Print Profile defined through CLVL transaction and used in the modification proposed with IF.
    If you want to use the ABAP ALV based output, then you should not implement the IF... ENDIF query of the suggested modification concerning the user-defined list profile; instead you should set the local L_MBWLS parameter to 'X'
    I hope you need to work with your ABAP person to clearly understand this correction Instruction and Implement as required.
    Regards,
    Prasobh

  • Difference Between Summarized & Multi Level BOM Comparison

    Hi Colleagues,
    Could you please help me on this? I would like to know what is the difference between Summarized BOM & Multilevel BOM Comparison.
    Currently I am using Tcode CS14 to compare the BOM but I could not find the differences. Also I am using FM CS_BOM_EXPL_MAT_V2 to explode the BOM so I would like to know the difference to write a report for this.
    Thanks & Regards,
    Nagaraj

    Hi,
    Refer this link which explains clearly the Difference Between Summarized & Multi Level BOM Comparison
    http://help.sap.com/saphelp_45b/helpdata/EN/ea/e9befc4c7211d189520000e829fbbd/frameset.htm
    After going through  this link on the left hand side there is heading for BOM compariso,under that 4 sub headings are there please refer that
    hope this will help,if you have any query revert back
    Edited by: Girish  Adaviswamy on Apr 15, 2009 5:40 AM

  • Multi Level BOm is not working in SAP afs

    Hi Experts,
             I am facing issue in MRP.For multi level bom's ,Requirements is not getting generates.Is there any settings is there to active multi level bom for afs materials.
    please suggest solution
    Thanks and Regards,
    Deepika.

    Hello Deepika,
    As we know AFS materials are planned at SKU level (Grid and stock categories)  you can use AFS MRP (/N/AFS/MD02) only.
    Please refer OSS note Note 981747 - FAQ - AFS Production Planning
    Question 5 Made-To-Order Planning -Multi-Level (MD50) does not work for AFS Materials and Sales Orders containing AFS materials.
    Answer: Made to Order Multi level planning functionality was never enhanced for AFS and hence transaction MD50 is not supported.
    Steps are as,
    1. Create a MTO/PTO sales order for an AFS material.
    2. Run AFS MRP using transaction code /AFS/MD02.
    3. Convert the planned order to production order.
    Best Regards,
    R.Brahmankar

  • Product Costing - Standard Cost Component Split on Multi Level BOM's

    Hi,
    We are the process of introducing SAP for all back office and manufacturing activities.
    I am currently trying to verify that the product cost calculation for Multi-Level BOMs in our Legacy system matches the cost roll up or cost estimate in SAP at not only a Total Cost Level but the cost component split must be accurate also. So far, all the costs roll up correctly at a total cost level but I have noticed one issue:
    When I run a cost estimate for a single level BOM the cost estimate will split the components accurately into Material, Labor, Fixed Overhead and Variable overhead, However, when this component is then used in the next level of manufacturing all the Labor, Fixed Overhead and Variable Overhead Cost is grouped under Material.
    Q1.) Is there a SAP setting or config change that will keep the previous Labor, Fixed OH and Variable OH cost in these categories as the material is rolled up to finished product level?
    Q2.) Is there a standard report / view where I can see the Finished Goods Standard Cost split by each of there rolled up Components? This would need to split the Total Material, Total Labor, Total Fixed OH and Total VO required to make the Finished Product. 
    Q3.) Is there a standard report / view where I can see the added value (Absorption) by component split (Labor, Fixed OH, Variable OH) for every Manufactured Part?
    Any help you can provide would be greatly appreciated.
    Thanks & Regards,
    Brian

    Actuall I just tried again and it did ask for me S number and I put it in and I did not have "authorization" to access
    Error Message - Access denied (R/3)
    What happened?
    You do not have permission to access this Object
    What can you do?
    Please contact a consulting adminstrative
    Error code: WEBSMP106-20080214172231-0015
    Error details: 2491DD9-702/1A053/3162-71A9CFA5-3CB9265-2992F9
    Service Name: SAPIDB
    Service Server: WEBSMP106
    Process-ID: 4640
    Thread-ID: 6020
    Sorry for any inconvenience.
    Your SAP Service Marketplace Team

  • Gneration of multiple Production Order from multi level BOM

    Hi Experts,
    My customer has multi level BOM. meaning child item also has its own BOM - 4 Level.
    FG-Pack - Make
          FG - Make
               SFG - Make
                    RM - Buy
    Their process is once they create Production Order for final Finished Good, System should also create Production order for child which it self are of make type and has own BOM defined in system.
    They wish that once the create Production order for FG-Pack, system should automatic generate production order for FG and SFG as both of these has BOM defined and are of procurement type Make.
    So first they will close the chile production order and receives qty. in ware house, they will issue this child qty. against main production order, and then completes the main production order.
    So they remains informed about the child item stock.
    My question is SAP Business One supports creation of multiple Production Order?
    BR
    Samir Gandhi

    Hi Samir Gandhi,
    There is no build-in function for this task. You need add-on or SDK for the job.
    If the sub level BOM items are phantom, you can create a big production order including all sub BOM components. That is system supported.
    Thanks,
    Gordon

  • RE: how to explode multi level bom ?

    hi sd experts,
    I really appreciate if anyone explain me how explode multi level BOM
    if possible pls send me best practices
    thanks
    regards
    shabnum

    Hi Shabnum,
    For ex:
    main material is 101(material No)
    Subitems for 101 are: 102,103, 104 & 105
    102 also has 2 two sub items i.e., 106 & 107
    I created material masters for all the items i.e., 101 to 107 and posted stocks and maintained prices individually in VK11.
    I created BOM in CS01 seperately for 101 & 102
    I changed the Item Category Group for both the main items 101 & 102 from NORM to ERLA and tried creating the Sales Order.
    For 101 BOM is exploding correctly in order but for 102 it is not exploding.
    If I enter both the materials 101 & 102 as 2 line items then BOM is exploding for both the materials.
    Then do the Config in :
    Pls check the Item category configuration for your header material for the following field:
    Structure Scope: whether it is A or B...A is for explode single level & B is for explode multi-level bill of material. In your case, it should be maintained as "B"
    This would work for you
    Reward if it helps
    Regards
    Srini

  • For  MTO scenario,multi level bom is not working sap afs pp

    Hi Experts,
                  We are implementing MTO scenario for our client. I have maintained  strategy group for FERT is 40 and strategy group for HALB and ROH are 20.
                   For single level BOM , requirements is not getting generates properly.
                  I would like to know What are all the settings is required to create AFS BOM.(single and multi level)
                   Please suggest me.
    Thanks & Regards,
    Deepika.

    Hello Deepika,
    As we know AFS materials are planned at SKU level (Grid and stock categories)  you can use AFS MRP (/N/AFS/MD02) only.
    Please refer OSS note Note 981747 - FAQ - AFS Production Planning
    Question 5 Made-To-Order Planning -Multi-Level (MD50) does not work for AFS Materials and Sales Orders containing AFS materials.
    Answer: Made to Order Multi level planning functionality was never enhanced for AFS and hence transaction MD50 is not supported.
    Steps are as,
    1. Create a MTO/PTO sales order for an AFS material.
    2. Run AFS MRP using transaction code /AFS/MD02.
    3. Convert the planned order to production order.
    Best Regards,
    R.Brahmankar

  • Import multi-level BOM into Oracle

    We have a client requirement to create BOM based on level using Pl/Sql, Data will be coming in the below format:-
    Item Description      BOM LEVEL
    a               *1*     
    aa               *2*     
    aaa               *3*     
    aab               *3*     
    aaba               *4*     
    aabb               *4*     
    ab               *2*     
    aba               *3*     
    abb               *3*     
    we want the above data in table to be inserted in below format:
    Assembly Item     Component Item
    a               Aa
    Aa               Aaa
    Aa               Aab
    Aa               Aac
    A               Ab
    Ab               Aba
    Ab               Abb
    Aab               aaba
    Please suggest.
    Thanks,
    Urvashi Arora
    Edited by: user10992307 on 08-May-2012 23:07

    When you look at one row in your source data, there is no way to tell what is the parent item for the component you are looking at.
    So you will have to write a program that walks thru the data and builds parent=child relationship. It will be a tricky program but once that is done, all you have to do is to insert into bom interface tables and Oracle will take care of the rest.
    Oracle BOM interface will take care of building a multi-level structure.
    Sandeep Gandhi

  • BOM explosion using CS_BOM_EXLP_MAT_V2.

    Hi All,
       i am using FM :- CS_BOM_EXLP_MAT_V2 for the BOM explosion, but the problem is when the material is exploid i get the component of that material according to the plant but the some component which i get have no more list component in the same plant,but that component have the list component in the other like with other component, so i am not able to list out how much deep i have to go in the hierarchy .
    Thanks in advance.
    Regards,
    Ritesh Jha

    Hi All,
       i am using FM :- CS_BOM_EXLP_MAT_V2 for the BOM explosion, but the problem is when the material is exploid i get the component of that material according to the plant but the some component which i get have no more list component in the same plant,but that component have the list component in the other like with other component, so i am not able to list out how much deep i have to go in the hierarchy .
    Thanks in advance.
    Regards,
    Ritesh Jha

  • BOM: Problem using CS_BOM_EXPL_MAT_V2 -  URGENT!!!

    hai friends,
    i am using CS_BOM_EXPL_MAT_V2 fn module in my code. when i pass mtnrv = 'GK02PB.05SBIS' , i did' get any output from the above fn module. but other than the above value like mtnrv = 'OSA875CCWOF' ,i am getting output.
    thanks in advance,
    With regards,
    senthil kumar.r

    Hi senthil,
    1. I suppose u want to explode the BOM.
    2. CS_BOM_EXPLOSION
       use the above FM
       in the below mentioned fashion.
    3.
      CALL FUNCTION 'CS_BOM_EXPLOSION'
       EXPORTING
       capid                       = 'PP01'
       emeng                       = bmeng
       datuv                       = sy-datum
       mtnrv                       = matnr
       stlan                       = '1'
         werks                       =  werks
         mehrs = 'X'
    IMPORTING
      TOPEQUI                     =
      TOPMAT                      =
      TOPTPL                      =
      DSTST                       =
        TABLES
          stbd                        = stbd
          stbe                        = stbe
          stbk                        = stbk
          stbm                        = stbm
          stbp                        = stbp
          stbt                        = stbt
    EXCEPTIONS
       alt_not_found               = 1
       call_invalid                = 2
       missing_authorization       = 3
       no_bom_found                = 4
       no_plant_data               = 5
       no_suitable_bom_found       = 6
       object_not_found            = 7
       conversion_error            = 8
       OTHERS                      = 9
    regards,
    amit m.

  • Query for a Multi level BOM

    For a parent item, I require all the child items that are there in multi - level BOM

    Hi Hema
    This query not give you exactly what you need, but can give you an idea of who to get the result you want.
    select S0.ItemCode, S0.ItemName, isnull(sum(S5.Quantity * S6.AvgPrice), isnull(sum(S2.Quantity * S3.AvgPrice), S0.AvgPrice)) 'Costo del artículo'
    from OITM S0 left join OITT S1 on S0.ItemCode = S1.Code
                left join ITT1 S2 on S1.Code = S2.Father
                left join OITM S3 on S2.Code = S3.ItemCode
                left join OITT S4 on S3.ItemCode = S4.Code
                left join ITT1 S5 on S4.Code = S5.Father
                left join OITM S6 on S5.Code = S6.ItemCode
    group by S0.ItemCode, S0.ItemName, S0.AvgPrice
    order by S0.ItemCode
    Hope this help you
    Slds.,
    Esteban

  • BOM Explosion using Function 'CS_BOM_EXPL_MAT_V2 '

    Hi Gurus,
    I am working on BOM and exploding the multilevel BOM using function CS_BOM_EXPL_MAT_V2.
    I want to know what does 'field-RNDKZ' do in that.
    Thanks!

    Using Function module  CS_BOM_EXPL_MAT_V2
    As already has been said, the RNDKZ field is used for rounding. If you fill with '1', it will never round.
    Example (the problem I had):
    Material A consist of et al. 0.008 piece Material AA.
    Material AA consist of 1.0 pice Material AAA,
                                  of 7.0 piece Material AAB,
                                  of 6.0 piece Material AAC,
                                  of 12.0 piece Material AAD.
    CASE 1: You fill RNDKZ field with '1':
    You get the correct result which is:
    You need for producing 1 piece of Material A
    0.008 piece Material AA,
    0.008 * 1 = 0.008 piece of Material AAA,
    0.008 * 7.0 = 0,056 piece of Material AAB,
    0.008 * 6.0 = 0,048 piece of Material AAC.
    0.008 * 12.0 = 0,096 piece of Material AAD.
    CASE 2: You let RNDKZ field blank.
    In your user profile for BOM  field "Round of" is set to blank (table field TCSPR-AMEKZ, TA S_ALR_87004496).
    You get following result (which is wrong)
    You need for producing 1 piece of Material A
    1 piece Material AA,
    1.0 *1.0 = 1.0 piece of Material AAA,
    1.0 * 7.0 = 7.0 piece of Material AAB,
    1.0 *  6.0 = 6.0 piece of Material AAC.
    1.0 * 12.0 = 12.0 piece of Material AAD.
    The number of decimals is seen depends as well from how many decimals is set for unit of measurement. In this case the number of decimals for "piece" was set to zero. (TA CUNI).
    If you let the field RNDKZ field blank, the user profile field "Round of" (table field TCSPR-AMEKZ) is used.

  • BOM  explosion using variant configuration

    Hi
    I have a material (LAPTOP) and it has two BOM(RAM and HARD DISK).
    LAPTOP is my main material.
    Through VA01, when I try creating a Sales Order, I give the Material as LAPTOP and when I click "Configuration" menu, I will be showing the Variant Configuration Characteristic values for this material (LAPTOP) namely RAM and HARD DISK.
    When I select them and come back to VA01 scree, I could see both the sub materials (RAM and HARD DISK).
    But my question, I want to see only the one which I select. If I select RAM, then only RAM shoudl be displayed in my sales order not HARD DISK.
    I have created the Characteristics as "Multiple Value" assignmetn
    Please help.
    Thanks in Advance,
    Priya

    Hi Priya,
    Use Dependency concept ,to achieve your requirement.
    Regards,
    Subash.

Maybe you are looking for

  • Why is Itunes cluttering my music folder with system files?

    Ok i was using windows 7 before this and it was fine. Then i reformatted my drive and put windows 7 again. Downloaded latest itunes v9 and installed. Copied my entire music library backed up on my external hd and copied it to the music folder under t

  • Cannot sort files in bridge cs4

    Hi As you know it, since Windows XP xp2, the explorer sorts the files this way : 1, 002, 03, 000004... For getting back the "right" alphabetical way, you can change the registry. So did I. Now in the explorer, I get the files sorted like this : 00000

  • Problem with calling out parameter

    create table ee(id number,name varchar2(10)) insert into ee values(1,'o') create table ee1 as select * from ee where 1=0 CREATE OR REPLACE PROCEDURE p(OUT_count OUT NUMBER) AS CURSOR cur1 IS SELECT id, name from ee1; v_count NUMBER := 0; BEGIN -- MAI

  • Siteminder integration

    We are using Netegrity Siteminder for providing Single SignOn for differnet applications. Lately there has been request of integrating it with the Security Structure of BEA Weblogic 8.1 (For EJB's and certain secured resouces) based on SSO Id. Is the

  • After importing photos from a digital camera the thumbnails are blank.

    I purchased a new iMac a few months ago and had no problem with transferring (and viewing) my iPhoto library onto the new computer. However, now when I import photos from my iPhone or camera, the thumbnails are blanks (with little dotted lines around